Skip to content

Instantly share code, notes, and snippets.

View erdewit's full-sized avatar
🍒
Dead

Ewald de Wit erdewit

🍒
Dead
  • The Hague ✝2024
View GitHub Profile
@erdewit
erdewit / ib_threaded.py
Last active June 21, 2019 07:17
Keep It Simple threading with the IB API
from queue import Queue
from threading import Thread, Event
from ibapi.client import EClient
from ibapi.wrapper import EWrapper
from ibapi.contract import Contract
class App:
def __init__(self, host='127.0.0.1', port=7497, clientId=1):