Binance Connector JS
    Preparing search index...

    UserStreamsApi - interface UserStreamsApi

    Implements

    Index
    • Real-time push of the user's order updates. Option orders are pushed on orderReportV2, not on orderReport.

      orderReportV2 carries both US stock and US stock option orders; tell them apart with the ac field. To process option orders only, subscribe to orderReportV2 and handle events where ac = us_option.

      A push is sent once when an open order changes (x = ORDER_UPDATE) and once when it reaches a terminal state (x = ORDER_TERMINAL). Pushes are best-effort: a failed push is not retried, events while the listenKey is invalid are not replayed, and an order never pushed in an open state (e.g. rejected immediately) may not get a terminal push. After reconnecting, call Current Open Option Orders for a full snapshot first. Fill-level details are not pushed; use Option Order Detail or Option Trade History.

      For expiration-day auto-liquidation orders by the broker (o = market), p, b, q, tc, u, ct, sp and ed may be null; get contract details from Option Exchange Info by os.

      Prerequisite: obtain a listenKey via the Listen Key endpoint first.

      Parameters

      Returns WebsocketStream<OrderReportV2StreamResponse>

      UserStreamsApi