Git Product home page Git Product logo

ibkr-algotrading's Introduction

flake8 and pytests

IBKR Algotrading

This is a personal project which builds a simple framework to do algotrading on Interactive Brokers, using ibeam.

At the moment, this project does not perform any real transactions.

Feel free to check the notebooks for a showcase of the different features.

Install

Run make.

Create a file env.list with the following contents:

## this file contains sensitive information!
# you can sign in to paper accounts as well
IBEAM_ACCOUNT=<your-IBKR-username>
IBEAM_PASSWORD=<your-IBKR-password>
MAX_FAILED_AUTH=1
MAX_IMMEDIATE_ATTEMPTS=1
IBEAM_INPUTS_DIR=/srv/inputs

Change <your-IBKR-username> and <your-IBKR-password>.

Download ibeam's docker image:

sudo docker pull voyz/ibeam

More info in the ibeam github page.

Run

Generate the certificates first.

In one terminal start the ibeam server,

./start_ibeam.sh

In another terminal, execute:

. env/bin/activate
python3 main.py

You could instead try a small interactive program by running:

. env/bin/activate
python3 interactive.py

Generating certificates

Save them under container_inputs.

Tutorial: link

Or run generate-certificates.sh (better option).

ibkr-algotrading's People

Contributors

sager611 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.