Skip to content

jiechau/f_node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Objective:

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.

# root:

install git

apt-get install git

install nodejs 11.x and npm

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

set the correct time zone

dpkg-reconfigure tzdata

cron need to be restarted

service cron stop
service cron start

#user:

clone source

cd ~
git clone https://github.com/jiechau/f_node.git

install packets, mpn >5

cd ~/f_node
npm install

create and edit fconfig_local (or copy from fconfig_local.example)

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)

add cron

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

About

f_node faifex future option grab/analyze

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages