Code Monkey home page Code Monkey logo

interactive-brokers-trading-bot's Introduction

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Interactive Brokers Trading Bot

A Python library written to handle IB's Client Portal API, manage portfolio and execute trades.
Explore the docs »

View Demo · Report Bug · Request Feature

📚Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgements

💡About The Project

This project is built entirely on Python, it combines other Interactive Brokers libraries written by other contributors as well as my own contribution in making algorithmic trading on Interactive Brokers possible.

Built With

🎉Getting Started

To get a local copy up and running follow these simple steps.

🔖 Prerequisites

Before using this library, ensure you have Java installed and have an account with Interactive Brokers. Check out Interactive Broker Client Portal Web API for setting up. You can skip the download and unzip the CPI WebAPI step from the IB site as this step has been taken care off in the library.

🔧 Installation

  1. Clone the repo

    git clone https://github.com/Vincentho711/Interactive-Brokers-Trading-Bot.git
  2. Navigate to the working directory

  3. In the terminal, run

    python setup.py build
    

    and then

    python setup.py install
    
  4. Enter your IB credentials in write_config.py and run the script

  5. Open run_client.py and run the script. It will download the clientportal.gw to the working directory.

  6. Using Git Bash, navigate to the clientportal.gw folder and run

    "bin/run.bat" "root/conf.yaml"
    
  7. Run run_client.py in tests and the bot should be up and running.

  8. Follow the instructions on run_client.py to configure your trading bot.

📦 Usage

To use it, study the revelant libraries, namely the python objects in robot/ folder. There are also some simple instructions in the run_client.py to get you up and running quick.

🚩 Roadmap

See the open issues for a list of proposed features (and known issues).

✨ Milestone Summary

Status Milestone Goals ETA
🚀 Implement the ability to associate tickers with different indicators and trigger levels 1 / 1 15 April 2021

Implement ticker indicators association

This milestone will be done when

  • Different signals can be attached to a ticker
  • All the indicators' signal can be checked independently, giving correct buy/sell signals

💝 Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📜 License

Distributed under the MIT License. See LICENSE for more information.

😃 Contact

Vincent Ho - LinkedIn

Project Link: https://github.com/Vincentho711/Interactive-Brokers-Trading-Bot

⭐ Acknowledgements

interactive-brokers-trading-bot's People

Contributors

vincentho711 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

interactive-brokers-trading-bot's Issues

Setting up IB Trading Bot

Hi, I was trying to set up this bot per instructions, but I got an issue and I can't move forward. First problem that I ran into was when trying to install setup.py: I got encoding error, where I had to specify utf8 encoding on line 5 (I am barely literate in programming, and software engineering in general, so I might be missing something here). After that, I put in my info in write_config.py, and executed that file (got config.ini in my folder, so that part is good). However, when I try running run_client.py, I get a following error:

File "D:****\IBTB\Interactive-Brokers-Trading-Bot-master\tests\run_client.py", line 15, in
from robot.trader import Trader
ModuleNotFoundError: No module named 'robot'

I don't know if I'm doing something wrong, or if there indeed is a bug. I hope you can help me with this.

Thank you in advance.
Kind regards, Petar :)

LOGIN ERROR

Screen Shot 2022-07-05 at 17 01 22

Hey! How are you? Can you help me please? I've got an ERROR when i'm trying to log to the localhost, it's on MAC OSx
Thanx!!

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.