项目作者: scawful

项目描述 :
Risk Parity Analysis and Trading Program
高级语言: C++
项目地址: git://github.com/scawful/premia.git
创建时间: 2021-07-03T03:24:02Z
项目社区:https://github.com/scawful/premia

开源协议:

下载


Premia

  • Platform: Windows, macOS, GNU/Linux
  • Dependencies: Boost, SDL2, ImGui, ImPlot, libCURL, OpenSSL

Description

Premia is a general purpose financial market analysis and trading program. Currently, the program supports linking a TDAmeritrade API key to gain access to features like account information, watchlists, positions, and (soon) trading actions. The program also allows InteractiveBrokers users to connect to their TWS or IB Gateway application natively to support the same features as TDAmeritrade users.

Supported Services:

  • TDAmeritrade
  • InteractiveBrokers
  • CoinbasePro
  • IEXCloud

More details about the future of Premia can be found on my website halext.org/labs/Premia

Building and installation

CMake is required to build Premia

  1. Clone the repository

    1. git clone --recurse-submodules https://github.com/scawful/premia.git
  2. Create a build directory in the root workspace folder

    1. mkdir build
  3. Move to the build directory and generate the build files specified in CMakeLists.txt

    1. cmake -G "<MinGW Makefiles/Unix Makefiles>" ../
  4. Build and run.

    1. make Premia
    2. cmake --build <premia_root/build> --config Debug --target Premia

API Key Instructions

For TDAmeritrade users to link their account, the program starts with a login window that takes as input your consumer key and refresh token.

Alternatively, you can create an apikey.txt and place it in the assets/ folder with your consumer key on the first line and the refresh token you generated on the second line for Premia to load those values for you.

Screenshots

image
image