Constructors

Accessors

Methods

  • Force-send any pending modify (e.g. on drag end).

    Parameters

    • clientId: string

    Returns Promise<void>

  • Link two orders as OCO: when one fills/cancels, the other is cancelled.

    Parameters

    • clientIdA: string
    • clientIdB: string

    Returns void

  • Broker fill event (by broker id). Advances state and triggers OCO.

    Parameters

    • brokerId: string
    • full: boolean

    Returns void

  • On reconnect, mark any non-terminal order absent from the fresh book as STALE.

    Parameters

    • presentBrokerIds: ReadonlySet<string>

    Returns void

  • Rate-limited modify (drag): coalesces to the latest, sends at most every minModifyMs. An invalid price (tick/band/freeze) is NOT enqueued or sent — it surfaces via onValidationError so the UI can snap the line back.

    Parameters

    • clientId: string
    • price: number

    Returns void