This commit is contained in:
Oleg Sheynin 2025-06-25 21:40:49 +00:00
parent 50435f8b3b
commit fc24017638
2 changed files with 8 additions and 2 deletions

View File

@ -12,7 +12,10 @@
# -------------------------------------
# --- Current month - all files
# -------------------------------------
cd $(realpath $(dirname $0))
mkdir -p ./data/crypto
pushd ./data/crypto
rsync -ahvv cvtt@hs01.cvtt.vpn:/works/cvtt/md_archive/crypto/sim/*.gz ./
# -------------------------------------
@ -25,4 +28,4 @@ for srcfname in $(ls *.db.gz); do
rm -f ${tgtfile} && sqlite3 temp.db ".dump md_1min_bars" | sqlite3 ${tgtfile} && rm ${srcfname}
done
rm temp.db
popd
popd

View File

@ -12,7 +12,10 @@ if [ -z "${DatePattern}" ]; then
fi
FilePattern="${DatePattern}*.alpaca_sim_md.db.gz"
cd $(realpath $(dirname $0))/..
mkdir -p ./data/equity
pushd ./data/equity
Cmd="rsync -ahvv cvtt@hs01.cvtt.vpn:/works/cvtt/md_archive/equity/alpaca_md/sim/${FilePattern} ./"
echo ${Cmd}
eval ${Cmd}
@ -27,4 +30,4 @@ for srcfname in $(ls *.db.gz); do
rm -f ${tgtfile} && sqlite3 temp.db ".dump md_1min_bars" | sqlite3 ${tgtfile} && rm ${srcfname}
done
rm temp.db
popd
popd