This commit is contained in:
Oleg Sheynin 2024-09-23 08:04:54 -04:00
parent 6125b10935
commit 97aa3168d8
2 changed files with 3 additions and 2 deletions

View File

@ -46,7 +46,7 @@ get_prev_business_day() {
export -f get_prev_business_day
if [ -z ${date_to_load} ] ; then
echo "Yesterday data has priority. Running historical container will be stopped"
echo "Date is not specified. Yesterday data has priority. Running historical container will be stopped"
Cmd="docker stop ${ContainerName}"
echo ${Cmd} && eval ${Cmd}
Cmd="docker kill ${ContainerName}"
@ -62,6 +62,7 @@ if [ -z ${date_to_load} ] ; then
exit 3
fi
else
date_to_load=$(date -d ${date_to_load} '+%Y-%m-%d') #expected format
echo "Historical run ${date_to_load}"
if is_container_running "$ContainerName"; then
echo "Container ${ContainerName} is already running."

View File

@ -1 +1 @@
1.6.9,minor
1.7.1,alpaca md hist convertitn date to the right format to be used for trading calendar