- Install anaconda
- Install pycharm
- Install ccxt, ccxt encapsulates the APIs of many exchanges, which can be used to download data or initiate trades
pip3 install ccxt
- Instantiate the exchange, using Binance as an example
exchange = ccxt.binance({
'apiKey': '',
'secret': '',
'enableRateLimit': True,
})
exchange.load_markets()
- Download the candlestick chart for BTC/USDT
symbol = 'BTC/USDT'
time_interval = '1d'
start = exchange.parse8601('2020-01-01T00:00:00')
data = exchange.fetch_ohlcv(symbol=symbol, timeframe=time_interval,since=start)