eqt
This commit is contained in:
parent
b4dfecf12a
commit
93f0969261
2
VERSION
2
VERSION
@ -1 +1 @@
|
||||
2.2.2.T2,docker prepare sim - eqt - fix
|
||||
2.2.3,docker prepare sim - eqt - fix
|
||||
|
||||
@ -1,19 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# --------------------- Settings
|
||||
SOURCE_HOST=cloud21.cvtt.vpn
|
||||
SOURCE_ROOT_DIR=/opt/store/cvtt/md_archive/equity/alpaca_md
|
||||
SYMBOL_LIST=CAN #,COIN,GBTC,HOOD,MSTR,PYPL,XYZ
|
||||
OUTPUT_DIR=/tmp
|
||||
DATE=20250514
|
||||
RSYNC_TARGETS="cvtt@hs01.cvtt.vpn:/works/cvtt/md_archive/equity/test/alpaca_md/sim/"
|
||||
# SOURCE_HOST=cloud21.cvtt.vpn
|
||||
# SOURCE_ROOT_DIR=/opt/store/cvtt/md_archive/equity/alpaca_md
|
||||
# SYMBOL_LIST=CAN #,COIN,GBTC,HOOD,MSTR,PYPL,XYZ
|
||||
# OUTPUT_DIR=/tmp
|
||||
# DATE=20250514
|
||||
# RSYNC_TARGETS="cvtt@hs01.cvtt.vpn:/works/cvtt/md_archive/equity/test/alpaca_md/sim/"
|
||||
# RSYNC_TARGETS="cvtt@hs01.cvtt.vpn:/works/cvtt/md_archive/equity/alpaca_md/sim/
|
||||
#cvtt@cloud21.cvtt.vpn:/opt/store/cvtt/md_archive/equity/alpaca_md/sim/"
|
||||
# --------------------- Settings
|
||||
|
||||
# --------------------- Settings
|
||||
|
||||
|
||||
is_business_day() {
|
||||
dt=${1}
|
||||
date=$(date -d "${dt}" +"%Y-%m-%d")
|
||||
@ -21,7 +18,7 @@ is_business_day() {
|
||||
CalendarURL=https://trading-calendar.cvtt.net/api/v1/markets/hours?mic=XNYS
|
||||
URL="${CalendarURL}&start=${date}&end=${date}"
|
||||
echo "URL=${URL}"
|
||||
curl $URL
|
||||
# curl $URL
|
||||
open_time=$(curl -s "${URL}" | jq '.[] | .open_time')
|
||||
echo "open_time=${open_time}"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user