ib_insync icon indicating copy to clipboard operation
ib_insync copied to clipboard

Python sync/async framework for Interactive Brokers API

Results 23 ib_insync issues
Sort by recently updated
recently updated
newest added

I'm hitting a weird problem where ib_insync will disconnect immediately. The disconnect seems to happen starting at around 10:00-10:30 AM EST. It disconnects immediately after `ib.connect`. The connection works just...

Hello. AFAIK Ib Insync methods doesn't raise errors, let me explain better: A call like this one: ``` bars = await self.ib.reqHistoricalDataAsync( contract, endDateTime=to_date.strftime('%Y%m%d %H:%M:%S UTC'), durationStr=f'{int(duration)} S', barSizeSetting='5 mins',...

Steps to reproduce - run ipython3 in terminal - type `import ib_insyc` We will see the error Python version is py3.11

Hello, i'm plenty of errors like this one, using the latest ib_insync. I've seen it while I was investigating on why I can't be able to find filled orders by...

Before: ``` [...] 'fills': [{'contract': {'Future': {'secType': 'FUT', 'conId': 603558783, 'symbol': 'YM', 'lastTradeDateOrContractMonth': '20231215', 'right': '?', 'multiplier': '5', [...] ``` After: ``` [...] 'fills': [{'Fill': {'contract': {'Future': {'secType': 'FUT', 'conId':...

Problem - The current contract details decoder contains a bit of code that should only be used in the bond contract details decoder. Effect - The function first correctly assigns...

Contracts about to expire may not have `tradingHours`, `liquidHours`, and `timeZoneId` set. This was causing an error when `_parseSessions` is called: ```python Exception has occurred: ValueError ZoneInfo keys must be...

Hi, I'm having trouble understanding what the "update" operation does. Does it add volume, remove volume, or update the volume of an order? How can I differentiate these actions within...

Hi I want to fetch Live data with 5 min resolution, 15 mints resolution etc. How can I ![image](https://github.com/erdewit/ib_insync/assets/66534506/f490978c-a133-471c-8936-85a6028b30d5) Here mentioned that bar size must be 5 sec

```python @cache(ttl=CACHING_TTL) async def get_stock_contract(self, symbol: str) -> Contract | None: stk_contract = ib_insync.Stock() stk_contract.symbol = symbol stk_contract.exchange = "SMART" stk_contract.currency = "USD" stk_contract.primaryExchange = "NASDAQ" contracts = await self.qualifyContractsAsync(stk_contract)...