cryptocurrencyeda.retrieve_data
Module Contents
Functions
|
Retrieves historical data from the KuCoin API. |
- cryptocurrencyeda.retrieve_data.retrieve_data(symbol: str = 'BTC-USDT', time_period: str = '1day', start_date: str = '2018-01-01', end_date: str = '2022-01-10')
Retrieves historical data from the KuCoin API. Using open API adress “https://openapi-v2.kucoin.com/api/v1/market/history/trade”
- Parameters
name (array-like) – Inputted cryptocurrency symbol.
time_period (str) – Inputted time period. 1min, 3min, 5min, 15min, 30min, 1hour, 2hour, 4hour, 6hour, 8hour, 12hour, 1day, 1week
start_date (string "%Y-%m-%d") – Inputted datetime. Minimum is 2018-01-01
end_date (string "%Y-%m-%d") – Inputted time frame.
- Returns
Historical data of the cryptocurrency.
- Return type
pandas.DataFrame