Fugle Cpp

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

Quick start

Install thirdparty libs

  1. Clone submobules
git submodule update --init --recursive --jobs 0

It will download SQLiteCpp.

  1. Install restcppsdk

Ubuntu

sudo apt-get install libcpprest-dev

OSX

brew install cpprestsdk
  1. 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

Plans

  1. Data downloader
  2. Database and unified data format
  3. Backtesting
  4. Reproduce apps