Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fce17db6ec | |||
| ed43a900a2 | |||
| 9de86bf3e3 | |||
| 4873af1673 |
+1
-1
@@ -1 +1 @@
|
|||||||
0.6.8
|
0.7.3
|
||||||
@@ -55,13 +55,14 @@ run_proc() {
|
|||||||
|
|
||||||
Cmd="${Python} ${PyScript}"
|
Cmd="${Python} ${PyScript}"
|
||||||
Cmd="${Cmd} --config=${Config}"
|
Cmd="${Cmd} --config=${Config}"
|
||||||
Cmd="${Cmd} --output_dir=${OutputDir}"
|
Cmd="${Cmd} --output_dir=${OutputDir}/${Start:0:4}"
|
||||||
Cmd="${Cmd} --instruments=ALPACA:${Inst}"
|
Cmd="${Cmd} --instruments=ALPACA:${Inst}"
|
||||||
Cmd="${Cmd} --start=${Start}"
|
Cmd="${Cmd} --start=${Start}"
|
||||||
if [ "${End}" != "" ]; then
|
if [ "${End}" != "" ]; then
|
||||||
Cmd="${Cmd} --end=${End}"
|
Cmd="${Cmd} --end=${End}"
|
||||||
fi
|
fi
|
||||||
Cmd="${Cmd} --log_file=${LogDir}/${Start}.${Inst}.log"
|
Cmd="${Cmd} --log_file=${LogDir}/${Inst}.log"
|
||||||
|
Cmd="${Cmd} --log_level=WARNING"
|
||||||
echo ${Cmd}
|
echo ${Cmd}
|
||||||
eval ${Cmd}
|
eval ${Cmd}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
is_business_day() {
|
is_business_day() {
|
||||||
dt=${1}
|
dt=${1}
|
||||||
|
|
||||||
|
CalendarURL=http://cloud16.cvtt.vpn:8000/api/v1/markets/hours?mic=XNYS
|
||||||
open_time=$(curl -s "${CalendarURL}&start=${dt}&end=${dt}" | jq '.[] | .open_time')
|
open_time=$(curl -s "${CalendarURL}&start=${dt}&end=${dt}" | jq '.[] | .open_time')
|
||||||
if [ -n "${open_time}" ]; then
|
if [ -n "${open_time}" ]; then
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -152,4 +152,4 @@ done
|
|||||||
cd ${HOME}
|
cd ${HOME}
|
||||||
rm -rf ${tmp_dir}
|
rm -rf ${tmp_dir}
|
||||||
|
|
||||||
echo $0 Done
|
echo "$0 Done ${project} ${release_version}"
|
||||||
|
|||||||
Reference in New Issue
Block a user