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

take incorrect data from future api

Open hossain93 opened this issue 3 years ago • 4 comments

why I take different data from my code than chart import pandas as pd import requests url = "https://api-futures.kucoin.com/api/v1/kline/query?symbol=.KETHUSDT&granularity=1440&from=1647670122760"

payload={} files={} headers ={}

df = requests.request("GET", url, headers=headers, data=payload, files=files) df=df.json() df=df['data'] df=pd.DataFrame(df) df[0] = pd.to_datetime(df[0], unit='ms') df['date'] = df[0].dt.strftime("%d/%m/%Y") df['time-utc'] = df[0].dt.strftime("%H:%M:%S") df Capture

and in chart: Capture

hossain93 avatar Mar 21 '22 11:03 hossain93

@1bazinga25

hossain93 avatar Mar 23 '22 06:03 hossain93

Hello

Is this issue still unresolved?

progressivehed avatar May 19 '22 14:05 progressivehed

Hello

Is this issue still unresolved?

yes

https://api-futures.kucoin.com/api/v1/kline/query?symbol=.KXBTUSDT&granularity=1440

https://futures.kucoin.com/trade/XBTUSDTM?spm=kcWeb.B1homepage.Header5.1

hossain93 avatar May 21 '22 18:05 hossain93

I report this isuue.

If there was more error or issue please report here with details

Thanks

progressivehed avatar Jun 02 '22 04:06 progressivehed