Skip to main content
Refer to Websocket for establishing the websocket connection.

Params

TWAP Order Snapshots

Pacifica sends a message when any open TWAP order on the account is created, updated, or closed. Each message is a complete replacement of the account’s open TWAP orders. Replace your whole local list on each message. An empty data: [] array means the account has no open TWAP orders. Pacifica does not send a snapshot when you subscribe. To get the starting list, call Get open TWAP orders. This channel covers TWAP orders from Create TWAP order. It does not cover TWAP order strategies. Those stream on Account order strategy updates.

Stream

FieldTypeDescription
’i’integerTWAP order ID
’I’Full UUID stringClient order ID
’s’stringSymbol
’d’stringSide: [bid, ask]
‘a’decimal stringTotal amount
’f’decimal stringFilled amount
’tv’decimal stringTotal filled value (price × amount) across all sub-orders
’ro’boolReduce only
’sp’decimal stringMaximum slippage for each sub-order, in percent
’psa’decimal stringPlanned amount of each sub-order
’psc’integerNumber of planned sub-orders
’poc’integerNumber of planned sub-orders processed so far
’e’integerExpiration time (milliseconds)
‘t’integerUpdated at time (milliseconds)
‘li’ (envelope)integerThe highest order ID in the account’s order history when Pacifica built the message. Absent if the account has no order history