/ Fetch / compile.jl
compile.jl
 1  using Fetch
 2  using Fetch.Python
 3  using Fetch.Data
 4  using Fetch.Exchanges
 5  
 6  Python.py_stop_loop()
 7  Python.py_start_loop()
 8  pair = "BTC/USDT"
 9  using .Data: zinstance
10  using Exchanges.ExchangeTypes: _closeall
11  tmp_zi = zinstance(mktempdir())
12  atexit(() -> rm(tmp_zi.store.a))
13  e = getexchange!(:cryptocom)
14  fetch_ohlcv(e, "1d", [pair]; zi=tmp_zi, from=-100, to=-10)
15  fetch_candles(e, "1d", [pair]; from=-100, to=-10)
16  _closeall()
17  Python.py_stop_loop()