Skip to content

johnlam1968/option_chain_builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Option Chain App

This is a simple app to build an option chain using IBKR Web API, via ibind client which handles OAuth.

Feature:

Secret files are pre-made and store locally. No user login is required.

Setup

  1. Install the required dependencies:

    pip install ibind
  2. Configure the API client:

    • Update the config.py file with your API base URL and authentication token.

Usage

  1. Run the main script:

    python src/infrastructure/option_chain_app/main.py
  2. The script will retrieve option chain data for the specified symbol (default: "SPX") and save to a PostgreSQL database in a docker container.

  3. docker run -d --name options-db-container -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=secret -e POSTGRES_DB=options_db -p 5432:5432 postgre

IBKR API documentation

https://www.interactivebrokers.com/campus/ibkr-api-page/cpapi-v1/#option-chain

DEV

Trying to find out if httpx can improve retrieval time from IBKR Web API.

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages