Open femtotrader opened 2 months ago
scrapers module expects a list of base currencies, and one quote currency see how I do it here: https://github.com/panifie/PingPong.jl/blob/b986fc0823f868514e5dc2f14cda4bcd3084afe3/PingPongDev/src/module.jl#L30-L32
symbols like "BTC/USDT" are in the ccxt unified scheme regex which is parsed from the exchange market id:
using Exchanges
e = getexchange!(:binance)
e.markets["BTC/USDT:USDT"]["id"]
I made it so you can also pass the ids now
it's also possible to download using the Fetch
module but downloading 1m
candles from exchanges requires lots of calls which is usually slow, maybe it would be better for quickstart to use an Example1D
strat that uses 1d
timeframes such that one call per asset using fetch_ohlcv
is enough, like
# fetch directly from the exchange
# `sandbox=false` because we don't want fake candles
e = getexchange!(exchangeid(s), sandbox=false)
fetch_ohlcv(e, "1d", raw.(s.universe)) # fetches ohlcv candles from the exchange `e`, saves to storage
fill!(s) # fills all the assets in the strategy universe loading candles from storage
Hello,
Currently following documentation but