Compare commits
2 Commits
f9d4f7d8ed
...
07ef55bcd2
Author | SHA1 | Date | |
---|---|---|---|
07ef55bcd2 | |||
5be7a95869 |
@ -34,6 +34,11 @@ function f_ccxt {
|
||||
local f_exchange_type="swap"
|
||||
[ -z "$LEVERAGE" ] && f_exchange_type="spot"
|
||||
g_python "${STOCK_EXCHANGE} = ccxt.${STOCK_EXCHANGE}({'apiKey': '${API_KEY}','secret': '${API_SECRET}','enableRateLimit': True,'options': {'defaultType': '${f_exchange_type}',},})" || return 1
|
||||
if [[ $TESTNET = true ]]
|
||||
then
|
||||
g_echo_note "ATTENTION: RUNNING IN TESTNET/SIMULATION/MOCK MODE OF EXCHANGE ${STOCK_EXCHANGE}!!!"
|
||||
g_python "exchange.set_sandbox_mode(True)" || return 1
|
||||
fi
|
||||
g_python "${STOCK_EXCHANGE}markets=${STOCK_EXCHANGE}.load_markets()" || return 1
|
||||
f_ccxt_initialized="${f_ccxt_initialized}${STOCK_EXCHANGE},"
|
||||
fi
|
||||
|
@ -35,7 +35,7 @@ function get_ohlcv-candles {
|
||||
do
|
||||
# fetch only single symbols (for debugging)
|
||||
#[ "$f_symbol" = "BTC/USDT:USDT" ] || continue
|
||||
echo "=== Fetching/Refreshing $f_symbol ==="
|
||||
g_echo_note "Fetching/Refreshing $f_symbol $f_timeframe"
|
||||
for f_timeframe in $f_timeframes
|
||||
do
|
||||
f_asset="${f_symbol//:*}"
|
||||
|
Loading…
Reference in New Issue
Block a user