From e9ef88fd521d203feb563f920dd82f82055c11b7 Mon Sep 17 00:00:00 2001 From: Oleg Sheynin Date: Sat, 29 Apr 2023 18:06:52 -0400 Subject: [PATCH] progress --- release_version.txt | 2 +- scripts/md_recorder_start.sh | 29 +++++++++++++++++------------ 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/release_version.txt b/release_version.txt index 963409b..446ba66 100644 --- a/release_version.txt +++ b/release_version.txt @@ -1 +1 @@ -0.1.3.1 \ No newline at end of file +0.1.4 \ No newline at end of file diff --git a/scripts/md_recorder_start.sh b/scripts/md_recorder_start.sh index 079d227..399cceb 100755 --- a/scripts/md_recorder_start.sh +++ b/scripts/md_recorder_start.sh @@ -38,6 +38,13 @@ do done +declare -A InstrSetInstrs +InstrSetInstrs[1]=PAIR-BTC-USD +InstrSetInstrs[2]=PAIR-ETH-USD +InstrSetInstrs[3]=PAIR-DOGE-USD,PAIR-AVAX-USD,PAIR-USDT-USD,PAIR-MATIC-USD +InstrSetInstrs[4]=PAIR-BCH-USD,PAIR-LTC-USD,PAIR-UNI-USD,PAIR-AAVE-USD,PAIR-LINK-USD,PAIR-SOL-USD + + if [ "${InstrSet}" == "" ] then usage @@ -48,15 +55,6 @@ then SleepSec=3 fi -RootDir=/home/cvtt/prod -ConfigFile="${RootDir}/md_recorder/config/md_recorder.cfg" - -declare -A InstrSetInstrs -InstrSetInstrs[1]=PAIR-BTC-USD -InstrSetInstrs[2]=PAIR-ETH-USD -InstrSetInstrs[3]=PAIR-DOGE-USD,PAIR-AVAX-USD,PAIR-USDT-USD,PAIR-MATIC-USD -InstrSetInstrs[4]=PAIR-BCH-USD,PAIR-LTC-USD,PAIR-UNI-USD,PAIR-AAVE-USD,PAIR-LINK-USD,PAIR-SOL-USD - Instruments=${InstrSetInstrs[${InstrSet}]} if [ "${Instruments}" == "" ] then @@ -64,11 +62,17 @@ then usage fi -Script="${Script} - (${Instruments})" +# -------------------- S e t t i n g s +RootDir=/home/cvtt/prod +ConfigFile="${RootDir}/md_recorder/config/md_recorder.cfg" AdminPort="720${InstrSet}" -LogFile="${RootDir}/logs/$(date '+%Y%m%d_%H%M%S').influx_rec.coinbs_${InstrSet}.log" -Exchange=COINBASE +Exchange=COINBASE-MD +CredKey=TSDB_COINBS_1 +Name=md_recorder_coinbase +# -------------------- S e t t i n g s + +LogFile="${RootDir}/logs/$(date '+%Y%m%d_%H%M%S').${name}_${InstrSet}.log" source ${HOME}/.pyenv/python3.10-venv/bin/activate export PYTHONPATH=${RootDir} @@ -82,6 +86,7 @@ Cmd="${Cmd} --instruments=${Instruments}" Cmd="${Cmd} --admin_port=${AdminPort}" Cmd="${Cmd} --log_level=INFO" Cmd="${Cmd} --log_file=${LogFile}" +Cmd="${Cmd} --credentials_key=TSDB_COINBS_1" Cmd="${Cmd} &" function start_it {