diff --git a/docker/market_data/hist/alpaca_md_day.sh b/docker/market_data/hist/alpaca_md_day.sh index abafe3b..3111f42 100755 --- a/docker/market_data/hist/alpaca_md_day.sh +++ b/docker/market_data/hist/alpaca_md_day.sh @@ -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." diff --git a/release_version.txt b/release_version.txt index 55353b3..43fa430 100644 --- a/release_version.txt +++ b/release_version.txt @@ -1 +1 @@ -1.6.9,minor +1.7.1,alpaca md hist convertitn date to the right format to be used for trading calendar