Order Update Event
    WSS

    Description

    Received when your order status changes (created, filled, partially filled, cancelled, etc.)

    Subscribe

    { "event": "subscribe", "channel": "order_update" }

    Response

    {
        "event": "order_update",
        "code": "200",
        "message": "Success",
        "data": {
            "user_id": "string",
            "order_id": "string",
            "client_id": "string | null",
            "symbol": "BTC_THB",
            "side": "buy | sell",
            "type": "limit | stoplimit | market",
            "status": "new | open | rejected | partial_filled | filled | partial_filled_canceled | canceled | untriggered",
            "price": "1000000.00",
            "stop_price": "string | null",
            "order_currency": "THB",
            "order_amount": "10000.00",
            "executed_currency": "THB",
            "executed_amount": "5000.00",
            "received_currency": "BTC",
            "received_amount": "0.005",
            "total_fee": "12.50",
            "credit_used": "0.00",
            "net_fee_paid": "12.50",
            "avg_filled_price": "1000000.00",
            "post_only": false,
            "order_created_at": 1704067200000,
            "order_updated_at": 1704067250000
        },
        "connection_id": "Y33pLftYyQ0CEpQ=",
        "timestamp": "2024-01-01T12:00:00.000000000Z"
    }

    Field Descriptions

    FieldTypeDescription
    user_idstringUser identifier
    order_idstringUnique order identifier
    client_idstring | nullClient-provided order identifier
    symbolstringTrading pair (e.g., BTC_THB)
    sidestringOrder side: buy or sell
    typestringOrder type: limit, stoplimit, or market
    statusstringOrder status (see Status Mapping below)
    pricestring | nullLimit price (null for market orders)
    stop_pricestring | nullStop price (for stop-limit orders)
    order_currencystringCurrency used for the order
    order_amountstringOriginal order amount
    executed_currencystringCurrency of executed amount
    executed_amountstringTotal executed amount (including fees for buy orders)
    received_currencystringCurrency received
    received_amountstringAmount received after fees
    total_feestringTotal fee (wallet + credit)
    credit_usedstringFee paid using credit
    net_fee_paidstringNet fee paid from wallet
    avg_filled_pricestringAverage filled price
    post_onlybooleanWhether the order is post-only
    canceled_bystring | nullCancellation source (if cancelled)
    order_created_atnumberOrder creation timestamp (Unix milliseconds)
    order_triggered_atnumber | nullTrigger timestamp for stop orders (Unix milliseconds)
    order_updated_atnumber | nullLast update timestamp (Unix milliseconds)