Skip to main content
Two utility endpoints: one exposes the cached orderbook Krisis evaluates strategies against, so you can see the same numbers the engine sees; the other replays a DSL strategy over candles you supply. Use them while developing a strategy — neither needs a strategy to exist. Both endpoints are public — no Authorization header required.

Get orderbook

The cached top-of-book snapshot for a market — the same book the engine reads when it evaluates bid, ask, and spread.

Request

Example

Response

Errors

Backtest

Replays a DSL strategy over a supplied series of historical candles and reports the trades it would have taken.
Stateless — you supply the history. Nothing is persisted, and the candles are whatever you pass in the request; Krisis does not look up history for you.
Gotcha: backtest is the only place candle indicators work. Because you supply the bar series, an expression here can use candle-derived indicators. The live engine has no candle history and rejects those at compile time, so an expression that backtests fine can still be refused when you arm it. See DSL variables for what an armed strategy can actually reference.

Request

Each entry in candles:

Example

Response

Errors