From c02a4260efe334383ebbcb2c6362428e687bcf24 Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Thu, 9 Sep 2021 21:41:53 +0100 Subject: [PATCH] Switched random taker oracle to FTX. --- scripts/random-taker | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/random-taker b/scripts/random-taker index 3645b55..5796bfb 100755 --- a/scripts/random-taker +++ b/scripts/random-taker @@ -10,7 +10,7 @@ do cancel-my-orders --name "Random Taker ${MARKET} (cancel)" --market $MARKET --log-level ERROR RANDOM_POSITION_SIZE=$(echo "scale=4; ($(echo "$RANDOM % 1000" | bc) / 1000) * $POSITION_SIZE_CEILING" | bc) - CURRENT_PRICE=$(fetch-price --provider market --symbol $ORACLE_MARKET --log-level ERROR | cut -d"'" -f 2 | sed 's/,//') + CURRENT_PRICE=$(fetch-price --provider ftx --symbol $ORACLE_MARKET --log-level ERROR | cut -d"'" -f 2 | sed 's/,//') place-order --name "Random Taker ${MARKET} (place buy)" --market $MARKET --order-type IOC --log-level ERROR \ --side BUY --quantity $RANDOM_POSITION_SIZE --price $(echo "$CURRENT_PRICE + $IMMEDIATE_BUY_ADJUSTMENT" | bc) @@ -19,7 +19,7 @@ do sleep ${PAUSE_FOR} RANDOM_POSITION_SIZE=$(echo "scale=4; ($(echo "$RANDOM % 1000" | bc) / 1000) * $POSITION_SIZE_CEILING" | bc) - CURRENT_PRICE=$(fetch-price --provider market --symbol $ORACLE_MARKET --log-level ERROR | cut -d"'" -f 2 | sed 's/,//') + CURRENT_PRICE=$(fetch-price --provider ftx --symbol $ORACLE_MARKET --log-level ERROR | cut -d"'" -f 2 | sed 's/,//') place-order --name "Random Taker ${MARKET} (place sell)" --market $MARKET --order-type IOC --log-level ERROR \ --side SELL --quantity $RANDOM_POSITION_SIZE --price $(echo "$CURRENT_PRICE - $IMMEDIATE_BUY_ADJUSTMENT" | bc)