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

klines - 1week not accurate

Open cbusenbark opened this issue 4 years ago • 0 comments

Hello,

I'm looking to utilize the klines api (https://docs.kucoin.com/#get-klines) to get weekly candles (type=1week) and it seems like the 'start time' of the candles is on every Thursday at 00:00:00 GMT which leads it to not matching data on existing charts. Is this desired? My assumption is that they would start when others do at 00:00:00 GMT Monday

See first couple entries in https://api.kucoin.com/api/v1/market/candles?type=1week&symbol=BTC-USDT

{"code":"200000","data":[ ["1642032000","43917","42277.7","44421","41500","31788.63488114","1365382826.916780583"],["1641427200","43456.2","43916.9","44330.1","39651","69569.28409903","2932651428.242460955"],

1642032000 = GMT Thu Jan 13 2022 00:00:00 GMT+0000 1641427200 = GMT Thu Jan 06 2022 00:00:00 GMT+0000

Neither of the open/close/high/low match candles seen on Kucoin.

Thank you

cbusenbark avatar Jan 18 '22 01:01 cbusenbark