Pagination for Get Income History

Hello everyone,

We need to fetch the entire income history from both USD and coin margined futures for our web application’s users.

We are now fetching data from these endpoints:

There is no mention of how to paginate the results in the API documentation. The only parameters mentioned are startTime, endTime, and limit. For now, we are looping requests with x days intervals, but this does not guarantee that we get all transactions in the case that we get 1000 results (assuming limit=1000 is passed).

Any good suggestion for how to get the complete history?

Thanks in advance!

Hi there, unfortunately pagination is not available for those income endpoints.
Maybe you can decrease the days interval to a suitable time and maintain limit=1000 to lower the chance of missing data.

Thanks for answering. Yes, that’s what I was afraid of. We will try to come up with a solution that works.

1 Like