Trading_engine.Execution_modelContract-selected resumable execution model modules.
Models are compiled into an engine binary and selected by their stable contract name. A model returns an immutable matching cursor so the reducer can stop at strategy callbacks without losing priority or capacity state. Embedders can supply another module explicitly without changing the reducer.
module type S = sig ... endval name : t -> stringval find : string -> (t, string) Stdlib.resultval configuration_contract : t -> configuration_contractval supports_configuration : t -> string -> boolval required_fields : t -> string -> (string list, string) Stdlib.resultval supports_contract : t -> string -> boolval start_slice :
t ->
Execution.t ->
instruments:Instrument.t list ->
oms:Oms.t ->
Market_slice.t ->
(Execution.cursor, string) Stdlib.result