-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to best implement Kraken fetchOrderTrades? #3414
Comments
The general approach is:
However, with Kraken QueryTrades, the intent and the meaning of Also, note that If I were to align it with the CCXT structure, instead of fetchOrderTrades I would add fetchMyTrades with a required |
I like the idea. Kraken already has |
@miracle2k ok, i'd close this for now, if you don't mind, feel free to reopen it if needed or just ask further questions, will answer asap. Thx! |
Kraken has an API called QueryTrades: https://www.kraken.com/help/api#query-trades-info
By my experiments,
txid
must be a trade id, and thetrades
parameter seems to have no effect at all. In other words, this API does not allow us to query the trades for a given order id.However, the "fetch order" api knows the trade ids (but only the ids). So to implement
fetchOrderTrades
we'd have to do:QueryTrades
to get the trade details.Is this something we should do? We'd have to do two queries (at least). Also, the user likely already did a
fetchOrder
by themselves already, and now for the trades, another one would happen implicitly.Alternative options:
A special parameter for
fetchOrder
,includeTrades
, which will call theQueryTrades
API, and the trades would then be included under thetrades
key (the way Bitstamp includes the trades directly in a fetchOrder response).Do not do anything, Kraken-users can just call
QueryTrades
manually.The text was updated successfully, but these errors were encountered: