-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
kraken fetch_trades pagination broken #15827
Comments
Hi @xmatthias Looks like kraken added and returned trade_id 1340. We probably can overwrite the last id. How do you think @carlosmiei ? |
@sc0Vu as I said not sure what is the best approach here, but overriding the last trade id seems a bit tricky. This trade's id would have a different format from the others. |
i'm not quite sure what the new "tradeid" column is supposed to represent. at first glance, it looks somehow like a running number for each pair - but is clearly not valid as pagination "since" - which is (according to the linked article above) also a trade-id (and more aligned with actual id's executed trades get assigned). For my usecase (download trade history), i can also piece the pagination ID out of the info object with something around |
based on the following article, pagination in kraken's fetch_trades endpoint works "id based" (in an odd way though).
This used to work in older versions of ccxt (i can't really pin it down when it stopped working, but i did try kraken not too long ago and it seemed to work fine).
1495136532757496916
is a "last" id i got from a direct call.If we look at the verbose output - i get a new "last" id in
1495155050306532562
.This "id" is however not properly passed into the "id" field - which oddly is now 1340.
ccxt even has some logic for this in place here:
ccxt/js/kraken.js
Lines 1182 to 1185 in 5d4e51f
But it seems to no longer properly work (for no apparent reason).
It's very well possible that this is caused by a change in the kraken API (now returning one more column) - but that's a suspicion, nothing more.
most likely this:
source
The text was updated successfully, but these errors were encountered: