Skip to main content

IB.reqRealTimeBars

Back to ib_async.ib.IB

reqRealTimeBars(self, contract: ib_async.contract.Contract, barSize: int, whatToShow: str, useRTH: bool, realTimeBarsOptions: list[ib_async.contract.TagValue] = []) -> ib_async.objects.RealTimeBarList

Completeness: signature-only · Canonical ID: ib_async.ib.IB.reqRealTimeBars

Runtime signature is published; semantic enrichment remains outstanding.

Related API navigation

Sources and provenance

Request realtime 5 second bars.

https://interactivebrokers.github.io/tws-api/realtime_bars.html

Args: contract: Contract of interest. barSize: Must be 5. whatToShow: Specifies the source for constructing bars. Can be 'TRADES', 'MIDPOINT', 'BID' or 'ASK'. useRTH: If True then only show data from within Regular Trading Hours, if False then show all data. realTimeBarsOptions: Unknown.