Skip to content

Conversation

@gnzsnz
Copy link
Contributor

@gnzsnz gnzsnz commented Oct 27, 2025

works with protobuf ONLY, requires 10.40 or greater
replaces wrapper._results with a reactive pipeline implemented in eventkit. This simplifies the solution by removing state management

simple test script

import logging
import ib_async


ib_async.util.startLoop()
logging.basicConfig(
    level=logging.DEBUG,
    format='%(asctime)s %(levelname)s %(name)s: %(message)s',
    filename='debug_connection.log',
    filemode='w')
ib = ib_async.IB()

ib.connect('localhost',7497,clientId=0)
print("connection completed")

aapl = ib_async.Stock("AAPL",'SMART','USD')
aapl_details = ib.reqContractDetails(aapl)
print(aapl)
print(aapl_details)

ib.disconnect()
print("disconnected.")

works with protobuf ONLY, requires 10.40 or greater
@gnzsnz
Copy link
Contributor Author

gnzsnz commented Oct 27, 2025

Still a long way to go, but I wanted to share a version that can connect, sync account related objects and perform some basic requests and disconnect.

I'm working on:

  • reqHistoricalData, working for one-off requests. Subscription pending
  • reqHistoricalTicks,
  • reqHeadTimeStamp
  • reqHistogramData
  • reqHistoricalSchedule
  • placeOrder
  • tests: i have a few tests in place. i need to do some clean-up and i will push.

Next level of complexity:

  • reqMktData,
  • reqMktDepth,
  • reqRealTimeBars,
  • reqScannerSubscription,
  • reqPnL,
  • reqPnLSingle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant