IB.reqRealTimeBars
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
- Calls:
Client.getReqId - Calls:
Client.reqRealTimeBars - Cancel operation:
IB.cancelRealTimeBars - Protocol mapping:
EClient.reqRealTimeBars - Response callback:
EWrapper.realtimeBar - Returns:
RealTimeBarList - Error reference: TWS message codes (applicability is request-dependent).
Sources and provenance
- ib-async-repository-2-1-0 (
library-source; retrieved2026-07-15T03:42:42Z) - ib-async-repository-2-1-0 (
library-source; retrieved2026-07-15T03:42:42Z) - ib-async-repository-2-1-0 (
library-source; retrieved2026-07-15T03:42:42Z)
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.