kucoin-api-docs icon indicating copy to clipboard operation
kucoin-api-docs copied to clipboard

Orders and Trade History data since user account creation date in KuCoin

Open shreycrptm opened this issue 3 years ago • 1 comments

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.

  1. GET /api/v1/accounts/ledgers - Can give you max data for 24 hours
  2. 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?

shreycrptm avatar Feb 24 '22 13:02 shreycrptm

Go with /accounts/ledgers?startAt=12321421421&bizType= TRADE_EXCHANGE. This has a rate limit of 6 requests per sec. as far as I know.

  1. 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. 👍

mchalise avatar Feb 24 '22 15:02 mchalise