Kucoin / kucoin-php-sdk

PHP SDK for KuCoin API.
https://docs.kucoin.com
MIT License
79 stars 41 forks source link

How to get all (historical) trades/actions #118

Closed bernhardh closed 1 month ago

bernhardh commented 2 years ago

How can I get all finished trades/actions with this api?

codewc commented 2 years ago

use GET /api/v1/fills endpoint

Data time range

The system allows you to retrieve data up to one week (start from the last day by default). If the time period of the queried data exceeds one week (time range from the start time to end time exceeded 724 hours), the system will prompt to remind you that you have exceeded the time limit. If you only specified the start time, the system will automatically calculate the end time (end time = start time + 7 24 hours). On the contrary, if you only specified the end time, the system will calculate the start time (start time= end time - 7 * 24 hours) the same way.

Refer to: https://docs.kucoin.com/#list-fills

bernhardh commented 2 years ago

Thanks for your feedback! I found this already, but didn't get any data. Possible because there are no actions the last 7 days.

So there is no chance to get the full history?

ISAAC-XXYYZZ commented 1 month ago

Since this issue has already been addressed and there have been no updates for a long time, we will now close it. If you need any further assistance, feel free to ask!