This commit is contained in:
Oleg Sheynin 2024-06-05 17:47:51 -04:00
parent 5956d9d200
commit 553748fdcd

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
date=${1} date=${1}
if [ "${date}" == "" ] ; then if [ "${date}" == "" ] ; then
date="yesterday" date="yesterday"
@ -11,7 +12,7 @@ SourceFile=$(date -d ${date} "+%Y%m%d.mktdata.db")
SourceFileZip="${SourceFile}.gz" SourceFileZip="${SourceFile}.gz"
SourceFilePath=$(date -d ${date} "+${SourceRootDir}/%Y/%m/${SourceFileZip}") SourceFilePath=$(date -d ${date} "+${SourceRootDir}/%Y/%m/${SourceFileZip}")
TargetDir=/tmp # URGENT change to /opt/jupyter_gpu/data TargetDir="/opt/jupyter_gpu/data/crypto_md"
TargetFile=$(date -d ${date} "+%Y%m%d.mktdata.ohlcv.db") TargetFile=$(date -d ${date} "+%Y%m%d.mktdata.ohlcv.db")
TargetFilePath="${TargetDir}/${TargetFile}" TargetFilePath="${TargetDir}/${TargetFile}"
@ -48,6 +49,7 @@ function download_file {
echo ${Cmd} echo ${Cmd}
eval ${Cmd} eval ${Cmd}
done done
chmod 600 ${TargetFilePath}
ls -lh ${TargetFilePath} ls -lh ${TargetFilePath}