kucoin-api-docs
kucoin-api-docs copied to clipboard
Orders and Trade History data since user account creation date in KuCoin
we are planning to call below mentioned two APIs to get all the transactions of a user and i can see there are limitation on the time range to get the data from both API.
- GET /api/v1/accounts/ledgers - Can give you max data for 24 hours
- GET /api/v1/orders - Can give you max orders of 7* 24 hours
Can anyone help if there is any alternative where if we want to get last one year transactions or transactions with higher time range otherwise we have start from the begin when KuCoin launched to get all the transactions of a user.?
Even we don't have any information in any API which can tell us as when did customer created the account in KuCoin?
Go with /accounts/ledgers?startAt=12321421421&bizType= TRADE_EXCHANGE. This has a rate limit of 6 requests per sec. as far as I know.
- first generate 1hr timestamp for 1-year period and loop through all and call above end-point. 6 timestamps per sec.
Also know that trade data before Feb 2019 (v1 trades data) is not provided by Kucoin. 👍