skka3134

skka3134

email
telegram

1. Downloading data from ccxt.

  1. Install Anaconda.
  2. Install PyCharm.
  3. Install ccxt, which encapsulates APIs for many exchanges and allows you to download data or initiate trades.
pip3 install ccxt
  1. Instantiate the exchange, in this case, we are using Binance.
exchange = ccxt.binance({
    'apiKey': '',
    'secret': '',
    'enableRateLimit': True,
})
exchange.load_markets()
  1. 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)
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.