Skip to content

mnkil/tcn_delta_hedger

Repository files navigation

tcn delta hedger

Toucan OMS Interface

Technical Stack

  • Frontend: HTML5, CSS3, JavaScript
  • Backend: Python, Flask
  • APIs: IBKR, Tastytrade, Schwab

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/toucan_oms_dev.git
cd toucan_oms_dev
  1. Set up Python virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Configure credentials:
    • Create creds.yaml for API credentials
    • Create tos-creds.yaml for Tastytrade credentials
    • Add necessary API tokens to tokens.json

Configuration

Create the following configuration files (these are git-ignored for security):

creds.yaml

user:
  - your_username
pw:
  - your_password

tos-creds.yaml

username: your_tastytrade_username
password: your_tastytrade_password

Usage

  1. Start the backend server:
python backend/backend.py
  1. Open index.html in your browser or serve it using a local server.

  2. Use the toolbar controls to:

    • Start trading system
    • Pause execution
    • Stop all operations

Options Workflow

  • Total PnL monitoring
  • Exposure tracking
  • Delta hedging
  • Trade execution

About

simple bsm delta hedger & trade blotter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published