ib_async icon indicating copy to clipboard operation
ib_async copied to clipboard

Python sync/async framework for Interactive Brokers API (replaces ib_insync)

Results 88 ib_async issues
Sort by recently updated
recently updated
newest added

I just started to use the library to fetch some historical data and was wondering why `whatToShow` isn't implemented as an `enum`, since those are all string constants. What do...

Issue: Cannot seem to connect to IBGateway API from GoogleCollab notebook. _(Netstat shows 4002 as listening when I run IBGateway, so I'm assuming the port is open)._ Error I'm receiving:...

I have a loop to subscribe for streaming news for a set of tickers: ``` for ticker in tickers: contract = Stock(ticker, 'SMART', 'USD') ib.qualifyContracts(contract) ib.reqMktData(contract, f'mdoff,292:{codes}', False, False) ib.sleep(5)...

The output is identical for these two requests: ``` contract = Stock('AAPL', 'SMART', 'USD') ib.qualifyContracts(contract) start = datetime.datetime.strptime('2025-01-14 09:30:00', '%Y-%m-%d %H:%M:%S') end = datetime.datetime.strptime('2025-01-30 09:30:00', '%Y-%m-%d %H:%M:%S') headlines = ib.reqHistoricalNews(conId=contract.conId,...

The problem that I am having goes something like this: 1. Open IBGateway and authenticate 2. Run my program which uses `reqHistoricalData` with `keepUpToDate=True` 3. Program runs fine and data...

I occasionally get positions request timed out errors when connecting to the gateway. This may be related to issue #54 and issue #82, however because of those issues I do...

Hi, I don’t know why, but I can never get real-time data and always get "NaN" as the value. I also get the error message: "Requested market data is not...

i have a code like this: ``` async def wait_for_midpoint_price(self, ticker: Ticker, wait_time: int) -> bool: event = asyncio.Event() def onTicker(ticker: Ticker) -> None: if not util.isNan(ticker.midpoint()): event.set() ticker.updateEvent +=...

I’m looking for a way to watch for options assignment/settlement on expiration. Is there an event that I can subscribe to that will notify me when this occurs and provide...

Recently I'm encountering some weird connectivity errors that I've never seen before in past 2-3yrs running my bot. I highly suspect its TWS side issue but I can't really figure...