This repo is the stock lab which used for stock info collection and strategy developments.
Several topics will be focused
- fugle APIs for TSE stocks
- polygon APIs for US stocks
Install thirdparty libs
- Clone submobules
git submodule update --init --recursive --jobs 0
It will download SQLiteCpp
.
- Install restcppsdk
Ubuntu
sudo apt-get install libcpprest-dev
OSX
brew install cpprestsdk
- Prepare API key
The API Key file is needed. Please apply API key from official website: https://developer.fugle.tw/docs/key/
Set the key with environment variable or save to bashrc.
export FUGLE_API_KEY='...'
Build from source
mkdir build; cd bui;d
cmake .. -DPYTHON_EXECUTABLE=/usr/bin/python3
make
- Data downloader
- Database and unified data format
- Backtesting
- Reproduce apps