vnpy/prod/jobs/daily_download_stock_adjust_factors.sh

22 lines
466 B
Bash

#!/bin/bash
CONDA_HOME=~/anaconda3
#$CONDA_HOME/bin/conda deactivate
#$CONDA_HOME/bin/conda activate py37
############ Added by Huang Jianwei at 2018-04-03
# To solve the problem about Javascript runtime
export PATH=$PATH:/usr/local/bin
############ Ended
BASE_PATH=$(cd `dirname $0`; pwd)
echo $BASE_PATH
cd `dirname $0`
PROGRAM_NAME=../../vnpy/data/stock/adjust_factor.py
# 全量下载baostock得复权因子
$CONDA_HOME/envs/py37/bin/python $PROGRAM_NAME