This commit is contained in:
Oleg Sheynin 2023-04-29 18:06:52 -04:00
parent 74c6cccb73
commit e9ef88fd52
2 changed files with 18 additions and 13 deletions

View File

@ -1 +1 @@
0.1.3.1 0.1.4

View File

@ -38,6 +38,13 @@ do
done 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}" == "" ] if [ "${InstrSet}" == "" ]
then then
usage usage
@ -48,15 +55,6 @@ then
SleepSec=3 SleepSec=3
fi 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}]} Instruments=${InstrSetInstrs[${InstrSet}]}
if [ "${Instruments}" == "" ] if [ "${Instruments}" == "" ]
then then
@ -64,11 +62,17 @@ then
usage usage
fi 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}" AdminPort="720${InstrSet}"
LogFile="${RootDir}/logs/$(date '+%Y%m%d_%H%M%S').influx_rec.coinbs_${InstrSet}.log" Exchange=COINBASE-MD
Exchange=COINBASE 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 source ${HOME}/.pyenv/python3.10-venv/bin/activate
export PYTHONPATH=${RootDir} export PYTHONPATH=${RootDir}
@ -82,6 +86,7 @@ Cmd="${Cmd} --instruments=${Instruments}"
Cmd="${Cmd} --admin_port=${AdminPort}" Cmd="${Cmd} --admin_port=${AdminPort}"
Cmd="${Cmd} --log_level=INFO" Cmd="${Cmd} --log_level=INFO"
Cmd="${Cmd} --log_file=${LogFile}" Cmd="${Cmd} --log_file=${LogFile}"
Cmd="${Cmd} --credentials_key=TSDB_COINBS_1"
Cmd="${Cmd} &" Cmd="${Cmd} &"
function start_it { function start_it {