Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Module: runtime

Source: runtime.rs

QFL runtime — high-level interface between the trading engine and the VM.

Owns a [Vm], a compiled strategy path, symbol context, an order-sending channel, and a RiskEngine. Exposes feed_* methods that push external events (trade, depth, fill, eval) into the VM.

Entry point: [QflRuntime::load()].

Structs

pub struct QflRuntime

#![allow(unused)]
fn main() {
pub struct QflRuntime {
    vm: Vm,
    path_qfl: PathBuf,
    current_symbol: Arc < str >,
    orders_tx: Option < crossbeam_channel :: Sender < quince_core :: types :: Order > >,
    pub risk_engine: crate :: risk :: RiskEngine,
};
}

Enums

pub enum Event

#![allow(unused)]
fn main() {
pub enum Event {
    Trade(Trade,),
    Depth(Depth,),
    Fill(OrderFill,),
    Eval,
}
}

Unified exchange event dispatched to the QFL runtime. Each variant triggers a different handler (on_trade, on_depth, etc.) inside the VM.