-
-
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
exchange.fetchConvertTradeHistory - no data if the period is longer than about half a year - on binance #22289
Comments
@egabosh based on the documentation (https://binance-docs.github.io/apidocs/spot/en/#get-convert-trade-history-user_data), the max interval between start time and end time should be 30 days. The timestamp looks normal if I use 30 days interval:
Let us know if you have other issues. |
Thanks for the quick reply. However, this behavior probably varies from exchange to exchange. Is there a way to query this beforehand using a CCXT method or similar? Or does it make sense to add an error message via CCXT if more than 30 days are queried? |
Perhaps it would also be a great feature if CCXT automatically split in several queries for periods longer than the 30-day limit and then summarized the results. |
@egabosh the behavior would change acorss different exchanges. I think that would be great if we validate interval and throw error. I'll open a PR for this! For the split query, it's not unified behavior like pagination, maybe you can implement this on top of ccxt. |
In order to implement this in addition to ccxt, I need an information about the limit of the respective exchange from somewhere. |
Operating System
Debian 12
Programming Languages
Python
CCXT Version
4.3.8
Description
If I enter a period longer than half a year, e.g. 8 months, I get no data back. Here as an example 2023-01-01 to 2023-12-31.
Code
The text was updated successfully, but these errors were encountered: