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

429 req in klines call

Open cuxito opened this issue 3 years ago • 1 comments

Hello,

I have the problem that I want to get 8 klines initially and then the last 2 candles every 30 mins but every so often I get a 429 error sometimes on the first call, other times when a time passes. I need to know why this happens

server_time = round(client.get_server_timestamp() / 1000) timerest= round(server_time - 4h) klines = client.get_kline(symbol='BTC-USDT', kline_type='30min', startAt=timerest, endAt=server_time)

and every 30 mins server_time = round(client.get_server_timestamp() / 1000) timerest = server_time - (30 * 60 * 2) klines = client.get_kline(symbol='BTC-USDT', kline_type='30min', startAt=timerest, endAt=server_time)

cuxito avatar Mar 02 '22 12:03 cuxito

Hello

Do you get 429 or 429000 error on REST Kline?

We have recently optimized Kline rate limit. However you can also use Kline on websocket. It will provide you more real data.

For more information please refere to main API TELEGRAM GROUP and state your issue there to get guide from Admins there.

Also you can refer to API Learning Center Channel

progressivehed avatar May 18 '22 12:05 progressivehed