Comments (5)
To be honest I'm not seeing that at all, bear in mind that you can only see trades involved in orders which you own.
Try turning on debug mode for the api wrapper and let me know if it says,
{"error":"Order not found, or you are not the person who placed it."}
debug mode can be turned on by calling the .Debug() method before making a request
from poloniex-api.
I will take a look at the error message coming back as I'd agree that it isn't good enough in this instance.
from poloniex-api.
OK, I've made a small change to the error handling so that the error returned from poloniex will now be returned to the application.
from poloniex-api.
Yes that was it. I think that the error if there were no orders on was causing it to fail in Unmarshal. I usually see it when my program submits a limit order that is immediately executed as a market order. Is there any way to see "resultingTrades" when an order is immediately executed? I haven't had time to go through the sourcecode enough to create a pull request.
Thanks!
from poloniex-api.
There's nothing in the poloniex API which returns the trades on submitting an order. The only thing it returns is the OrderNumber and that could then be used to get the trades that make the order.
Although it would be possible (maybe) to do what you ask in the buy/sell methods it would be tiresome taking the different order types into account.
See this from the Poloniex API docs:
You may optionally set "fillOrKill", "immediateOrCancel", "postOnly" to 1. A fill-or-kill order will either fill in its entirety or be completely aborted. An immediate-or-cancel order can be partially or completely filled, but any portion of the order that cannot be filled immediately will be canceled rather than left on the order book. A post-only order will only be placed if no portion of it fills immediately; this guarantees you will never pay the taker fee on any part of the order that fills.
from poloniex-api.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poloniex-api.