Giter Club home page Giter Club logo

Comments (5)

sc0Vu avatar sc0Vu commented on May 25, 2024

@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:

request
https://api.binance.com/sapi/v1/convert/tradeFlow?startTime=1672527600000&endTime=1675119600000&limit=200

response
{"list":[],"startTime":1672527600000,"endTime":1675119600000,"limit":200,"moreData":false}

Let us know if you have other issues.

from ccxt.

egabosh avatar egabosh commented on May 25, 2024

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?

from ccxt.

egabosh avatar egabosh commented on May 25, 2024

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.

from ccxt.

sc0Vu avatar sc0Vu commented on May 25, 2024

@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.

from ccxt.

egabosh avatar egabosh commented on May 25, 2024

In order to implement this in addition to ccxt, I need an information about the limit of the respective exchange from somewhere.
For an application that should work for all exchanges, it would be optimal if CCXT could provide this information. Is there a possibility?

from ccxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.