erdewit / ib_insync

Python sync/async framework for Interactive Brokers API
BSD 2-Clause "Simplified" License
2.76k stars 726 forks source link

Dividends Payment Schedule #615

Closed atamkapoor closed 1 year ago

atamkapoor commented 1 year ago

I am looking to pull IB's dividend projections for a stock/ETF. I can see this information when I hover over the "Dividend Yield %" column for the ticker in my TWS watchlist/monitor, but don't know how to pull this information through ib_insync .

For example (today's date = 13-Jul-2023): IB Dividend Projection

erdewit commented 1 year ago

This can be done with reqMktData with generic tick 456:

https://ib-insync.readthedocs.io/api.html#ib_insync.ib.IB.reqPnL