Skip to main content

Module request

Module request 

Source
Expand description

A single JSON request bundling candles, the strategy spec and optional feeds — the uniform entry point the language bindings call, so every binding can run any feed combination by passing one JSON document.

Structs§

RunRequest
A complete backtest request: the strategy, the candle stream, the starting capital and any optional per-bar feeds. Each present feed must be the same length as candles.
StepFeeds
One bar’s optional side feeds, as a JSON document.
StepRequest
One streaming step as a JSON document: the bar, plus that bar’s feeds.

Functions§

run_json
Run a backtest from a single JSON RunRequest, returning the report JSON. This is the uniform entry point every language binding wraps.