tegan-lamoureux / optional

C++ interface to the TD Ameritrade APIs for algorithmic trading of stock and options.
MIT License
12 stars 8 forks source link

optional

A fast and simple c++ interface to the TD Ameritrade APIs for stock and options trading.

here you can see some awful trades i made

Note: I was informed recently the OAUTH might be broken due to an API change. I don't plan on fixing it in the near future but feel free to make a PR.


What this is.

Two main components:

  1. A c++ back-end for algorithmic trading through TD Ameritrade (paper money or live trading).

    • Goal is a simple interface that allows for quick backtesting and algorithm setup.
    • Note: It's mostly there, although there are likely bugs, and I've continued some development offline. If you're keen on anything not here contact me and let me know.
  2. A simple ncurses frontend to provide a basic terminal GUI for order placement/status, account stats, etc.

    • Display list of current positions.
    • Display list of current orders.
    • Display balances (Cash & Sweep, Net Liq, Buying Power).
    • Show option chains for a symbol.
    • Note: This has largely just turned into a monitoring service for an account. The functionality is mostly in the backend.

Backend implemented as a static library. Main app links against it, as an example of how an automated trading program could do the same.


Build Requirements

Building App and Unit Tests (On Linux)


More Info

User guide (empty, tbd) is on the wiki.