Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b4dfecf12a | |||
| 7f47905579 |
@@ -1 +1 @@
|
|||||||
2.2.2,docker prepare sim - eqt - fix
|
2.2.2.T2,docker prepare sim - eqt - fix
|
||||||
|
|||||||
@@ -20,7 +20,11 @@ is_business_day() {
|
|||||||
|
|
||||||
CalendarURL=https://trading-calendar.cvtt.net/api/v1/markets/hours?mic=XNYS
|
CalendarURL=https://trading-calendar.cvtt.net/api/v1/markets/hours?mic=XNYS
|
||||||
URL="${CalendarURL}&start=${date}&end=${date}"
|
URL="${CalendarURL}&start=${date}&end=${date}"
|
||||||
|
echo "URL=${URL}"
|
||||||
|
curl $URL
|
||||||
open_time=$(curl -s "${URL}" | jq '.[] | .open_time')
|
open_time=$(curl -s "${URL}" | jq '.[] | .open_time')
|
||||||
|
echo "open_time=${open_time}"
|
||||||
|
|
||||||
if [ -n "${open_time}" ]; then
|
if [ -n "${open_time}" ]; then
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user