1.Grab Futures/Options data from Taiwan Futures Exchange (https://www.taifex.com.tw/enl/eIndex) to csv text file.
2.Plot Futures/OPtions charts
You don't really need the fweb_* codes (programs to plot the stock/futures/options charts). The most important objective of this project is to crab data and store in plain text file, in CSV format. From there you can utilize and do all the analyses you want, even test your own strategy (with your own program of course)
Once setup correctly, this program runs automatically.
P.S. codes were migrated from bitbucket, and were originally managed by mercurial, not git.
apt-get install git
apt-get install curl
curl -sL https://deb.nodesource.com/setup_11.x | bash -
apt-get install -y nodejs
ln -s /usr/bin/node /usr/local/bin/node
/usr/local/bin/node -v # should be v11. up
dpkg-reconfigure tzdata
service cron stop
service cron start
cd ~
git clone https://github.com/jiechau/f_node.git
cd ~/f_node
npm install
vi fconfig_local
var filedir = '/home/jie/f_data'; // 存放交易資料的地方
var nodedir = '/home/jie/f_node'; // 存放 程式 的地方, fweb_template_stem 的 爸爸
var addrlocalhost = '128.199.201.92'; // http server ip address (in this case my do1)
0 16 * * * /home/jie/f_node/fe.sh >> /home/jie/f_data/quote_daily0_log/fe_/bin/date "+\%Y_\%m_\%d".log 2>&1
5 16 * * * /home/jie/f_node/f_web.sh