Pacifica
  • Getting Started
    • Closed Alpha Guide
      • Link To Guide PDF
    • Closed Alpha Trading Competition
  • Trading on Pacifica
    • Overview
    • Contract Specifications
      • Oracle Price & Mark Price
      • Settlement Mechanism
    • Order Types
      • Market Order
      • Limit Order
      • Order Rules & Constraints
    • Margin & Leverage
    • Funding Rates
    • Liquidations
  • API Documentation
    • API
      • REST API
        • Markets
          • Get market info
          • Get prices
          • Get kline (candle) data
          • Get recent trades
        • Account
          • Get account info
          • Get account settings
          • Update leverage
          • Update margin mode
          • Get positions
          • Get trade history
          • Get funding history
          • Get account equity history
          • Create subaccount
          • Request withdrawal
        • Orders
          • Get open orders
          • Get order history
          • Get order history by ID
          • Create order
          • Create stop order
          • Create position TP/SL
          • Cancel order
          • Cancel all orders
          • Cancel stop order
          • Batch orders
      • Websocket
        • Subscriptions
          • Prices
          • Orderbook
          • Trades
          • Candle
          • Order updates
          • Account balance
          • Account margin
          • Account leverage
          • Account positions
          • Account orders
          • Account order updates
          • Account trades
        • Trading operations
          • Create order
          • Cancel order
          • Cancel all orders
      • Signing
      • Rate limits
    • Specification
  • Other
    • Audits
    • Brand Assets
    • Contact Us
    • Glossary of Terms
Powered by GitBook
On this page
  • Params
  • Stream
  1. API Documentation
  2. API
  3. Websocket
  4. Subscriptions

Order updates

Streams all updates to the status of an open order using order ID

PreviousCandleNextAccount balance

Last updated 1 day ago

Refer to for establishing the websocket connection.

Params

{
    "method": "subscribe",
    "params": {
        "source": "order_updates",
        "order_id": 123
    }
}

Stream

{
    "channel": "order_updates",
    "data": [
        {
            "i": 123,    
            "I": null,
            "u": "42trU9A5...",          
            "s": "BTC",       
            "d": "bid",        
            "p": "50000.50",
            "o": "1.5",                   
            "f": "0.5",
            "c": "0",
            "oe": "fulfill_market",
            "ot": "limit",
            "os": "partially_filled",
            "sp": null,
            "si": null,            
            "r": false,
            "t": 1234567890
        }
        // ... other order updates
    [
}
Field
Type
Description

'i'

integer

Order ID

'I'

UUID | null

Client order ID

'u'

base58 encoded address

Account

's'

string

Symbol

'd'

string

Side: [bid, ask]

'p'

decimal string

Average filled price

'o'

decimal string

Original amount

'c'

decimal string

Cancelled amount

'f'

decimal string

Filled amount

'oe'

string

Order event

'os'

string

Order status

'ot'

string

Order type

'sp'

string

Stop price

'si'

string

Stop parent order ID

'r'

bool

Reduce only

't'

number

Timestamp of event (milliseconds)

Websocket