backtrader.bokeh.live.client module

Live client.

Manages Bokeh documents and user interactions.

class backtrader.bokeh.live.client.LiveClient[源代码]

基类:object

Live client.

Provides real-time plotting functionality, including: - Data filtering - Navigation controls (pause/play/forward/backward) - Data updates

doc

Bokeh document instance

model

Bokeh root model

lookback

Historical data retention

fill_gaps

Whether to fill data gaps

plotgroup

Plot group for filtering

NAV_BUTTON_WIDTH = 38
__init__(doc, app, strategy, lookback)[源代码]

Initialize live client.

参数:
  • doc -- Bokeh document instance

  • app -- BacktraderBokeh application instance

  • strategy -- Strategy instance

  • lookback -- Historical data retention

updatemodel()[源代码]

Update model.

next()[源代码]

Receive new data and update.

Called by LivePlotAnalyzer.next()

stop()[源代码]

Stop client.