kucoin-python-sdk icon indicating copy to clipboard operation
kucoin-python-sdk copied to clipboard

get_kline function isn't returning specified dates/times

Open 05remla opened this issue 4 years ago • 2 comments

import datetime import time

t_start = datetime.datetime(2021, 1, 1) t_start = time.mktime(t_start.timetuple())

t_stop = datetime.datetime(2021, 2, 1) t_stop = time.mktime(t_start.timetuple())

data = marketclient.get_kline('REQ-BTC', '1min', startAt=t_start, endAt=t_stop)

all returned data is the present day - 1500 pieces of data, whether that be 1min or 1day etc...

05remla avatar Dec 09 '21 17:12 05remla

Yeah I have the exact same problem, except it is 100 items being returned for me. Also the docs shows :param kwargs: [Optional] startAt, endAt, currentPage, pageSize where the paging does not exist.

Tjorriemorrie avatar Jul 09 '22 07:07 Tjorriemorrie

I am also experiencing this issue. If anyone has any information please update

kevwilhelm95 avatar Mar 17 '23 17:03 kevwilhelm95