backtrader.bokeh.live.datahandler module¶
Live data handler.
Handles real-time data updates and pushes.
- class backtrader.bokeh.live.datahandler.UpdateType[source]¶
Bases:
EnumData update type.
- ADD = 1¶
- UPDATE = 2¶
- class backtrader.bokeh.live.datahandler.LiveDataHandler[source]¶
Bases:
objectLive data handler.
Responsible for receiving, storing and pushing real-time data.
- _doc¶
Bokeh document
- _app¶
BacktraderBokeh application
- _figid¶
Figure page ID
- _lookback¶
Historical data retention
- _fill_gaps¶
Whether to fill data gaps
- __init__(doc, app, figid, lookback, fill_gaps=True, timeout=1)[source]¶
Initialize data handler.
- Parameters:
doc – Bokeh document
app – BacktraderBokeh application
figid – Figure page ID
lookback – Historical data retention
fill_gaps – Whether to fill data gaps
timeout – Thread timeout