Trady Docs

User Channel

Stream private order and trade updates for an authenticated account

Use the User channel to track order placement, fills, cancellations, and trade settlement for the account associated with your L2 credentials.

Endpoint

/ws/user

Authenticate and subscribe

Auth fieldRequiredDescription
apikeyYesUUID returned by the L1 credential flow
secretYesBase64 secret paired with the API key
passphraseYesPassphrase paired with the API key

The markets array limits updates to selected condition IDs. Reuse the same L2 credentials used by private CLOB REST routes.

The subscription includes secrets. Open it only from a protected runtime and never log the full payload.

Message types

TypeLifecycle values
orderPLACEMENT, UPDATE, CANCELLATION
tradeMATCHED, MINED, CONFIRMED, FAILED

Numeric fields are strings. owner, trade_owner, and order_owner are normalized to the caller API key.

Reconnect safely

Messages include sequence, stream_id, and server_ts_ms. If the connection drops, the stream changes, or a sequence is missing:

  1. fetch current open orders and relevant account state through REST;
  2. rebuild local state;
  3. reconnect and resume processing new messages.

Treat WebSocket messages as change notifications, not as the only durable record of an order or trade.

Try it

WebSocket 플레이그라운드

브라우저 소켓에서는 사용자 지정 Authorization 헤더를 설정할 수 없습니다. 이 위젯은 토큰을 쿼리 매개변수로 추가합니다.

연결 끊김
/ws/user

연결 로그

아직 이벤트가 없습니다.