craysiii / binance

API Wrapper for the Binance cryptocurrency exchange written in Ruby.
MIT License
97 stars 79 forks source link

My Trades Data Fetch Issue #28

Closed mchalise closed 5 years ago

mchalise commented 5 years ago

I have done like 1900 trades with ETHUSD pair. This endpoint is only giving me like 1000 transaction client.my_trades(symbol: 'ETHUSDT') Is there any way to fetch all my transactions. Thanks

craysiii commented 5 years ago

You have to provide a from_id in the query in order to see older trades. 1000 is the max amount of trades that the API will return in a single call. You can read more here: https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md#account-trade-list-user_data

mchalise commented 5 years ago

Already did but from_id only return up to 1000th record. eg. if I provide 600th id then it will return data from 600th id to 1000th id not more than that. I think I need to play with start-end time. I don't know.

mchalise commented 5 years ago

@craysiii Just got reply from support team

Hello,

Thanks for your inquiry.

About your question, currently, for the GET /api/v3/myTrades (HMAC SHA256) interface, the limit is maxed 1000.

Temporarily uneditable, you can use start time and end time to set the period and query your trade history separately.

Thank you for your understanding.

Best Regards, Binance Support Team

Help needed man. Support team is not help full at all.

mchalise commented 5 years ago

The little hack did the magic. got the data.