Skip to content

Instantly share code, notes, and snippets.

@fatherofluqmaan
Last active September 9, 2021 23:32
Show Gist options
  • Save fatherofluqmaan/3b279f4e60f75aaf0d3a9c48a17ea6fe to your computer and use it in GitHub Desktop.
Save fatherofluqmaan/3b279f4e60f75aaf0d3a9c48a17ea6fe to your computer and use it in GitHub Desktop.
A script to run all pairs on Coinbase Pro with the pycryptobot created by Michael Whittle
#!/usr/bin/env bash
rm short-simbot-run.txt
dte=$(date +"%Y-%m-%d %T")
dt=$(date +"%Y-%m-%d")
c=$(< "pairs.txt" wc -l)
a="$c"
simst='2021-07-25'
simen='2021-08-05'
grn="$1"
nme="$2"
mkdir -p raw-sim-outputs
echo "[+] Current config set"
echo -e "\n"
cat config.json | grep -B30 '.telegram' | awk -F'\"telegram' '{print $1}'
sleep 3
echo "[+] Running simulations, total pairs count: $c"
while IFS= read -r PP; do
python3 pycryptobot.py --sim fast-sample --exchange coinbasepro --simstartdate "$simst" --simenddate "$simen" --granularity "$grn" --market "$PP" --disabletelegram 2> multi-simbot-run-"$nme".txt
cat multi-simbot-run-"$nme".txt | grep "Margin.*" | sed -e "s@^@$dte-'gran:$grn'--$PP @" >> multi-simbot-results-"$nme".txt
cat multi-simbot-run-"$nme".txt > "./raw-sim-outputs/$PP-$dt-rawout-$nme.txt"
let "--c"
echo "Simulations remaining: $c"
done < pairs.txt
sort -u multi-simbot-results-"$nme".txt >> multi-sim-results-"$nme"_"$dt".txt
fte=$(date +"%Y-%m-%d %T")
echo -e "$dte: All $a multi-simulations complete.\nDate Range: $simst to $simen, file suffix is $nme" | notify
1INCH-BTC
1INCH-EUR
1INCH-GBP
1INCH-USD
AAVE-BTC
AAVE-EUR
AAVE-GBP
AAVE-USD
ADA-BTC
ADA-ETH
ADA-EUR
ADA-GBP
ADA-USD
ADA-USDC
ALGO-BTC
ALGO-EUR
ALGO-GBP
ALGO-USD
AMP-USD
ANKR-BTC
ANKR-EUR
ANKR-GBP
ANKR-USD
ATOM-BTC
ATOM-USD
BAL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
MIR-USD
MKR-BTC
MKR-USD
MLN-USD
NKN-BTC
NKN-USD
NMR-BTC
NMR-EUR
NMR-GBP
NMR-USD
NU-BTC
NU-EUR
NU-GBP
NU-USD
OGN-BTC
OGN-USD
OMG-BTC
OMG-EUR
OMG-GBP
OMG-USD
OXT-USD
PAX-USD
PAX-USDT
POLY-USD
POLY-USDT
QNT-USD
REN-BTC
REN-USD
REP-BTC
REP-USD
RLC-BTC
RLC-USD
RLY-EUR
RLY-GBP
RLY-USD
RLY-USDT
SKL-BTC
SKL-EUR
SKL-GBP
SKL-USD
SNX-BTC
SNX-EUR
SNX-GBP
SNX-USD
SOL-BTC
SOL-EUR
SOL-GBP
SOL-USD
SOL-USDT
STORJ-BTC
STORJ-USD
SUSHI-BTC
SUSHI-ETH
SUSHI-EUR
SUSHI-GBP
SUSHI-USD
TRB-BTC
TRB-USD
UMA-BTC
UMA-EUR
UMA-GBP
UMA-USD
UNI-BTC
UNI-USD
USDC-EUR
USDC-GBP
USDT-EUR
USDT-GBP
USDT-USD
USDT-USDC
WBTC-BTC
WBTC-USD
XLM-BTC
XLM-EUR
XLM-USD
XTZ-BTC
XTZ-EUR
XTZ-GBP
XTZ-USD
YFI-BTC
YFI-USD
ZEC-BTC
ZEC-USD
ZEC-USDC
ZRX-BTC
ZRX-EUR
ZRX-USD
@celias75
Copy link

celias75 commented Aug 5, 2021

great work. Thanks for share !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment