Interface OrderEngineOptions

interface OrderEngineOptions {
    armed?: boolean;
    constraints: OrderConstraints;
    feed: OrderFeed;
    gate?: GateFn;
    idGen?: () => string;
    minModifyIntervalMs?: number;
    mode?: TradeMode;
    now?: () => number;
    onValidationError?: (reason: string) => void;
}

Properties

armed?: boolean

Armed = fire immediately; otherwise the gate must approve each order.

constraints: OrderConstraints
feed: OrderFeed
gate?: GateFn
idGen?: () => string
minModifyIntervalMs?: number
mode?: TradeMode
now?: () => number
onValidationError?: (reason: string) => void

Called when a drag-modify price fails validation (so the UI can snap back).