Skip to main content

user.trade

CHANNEL 

wss://stream.crypto.com/exchange/v1/user

user.tradePrivate
Trade updates for the user. Subscribe with channel ["user.trade"].

Request

Body

required
    id integerrequired

    Request id

    method stringrequired

    Possible values: [subscribe]

    params objectrequired
    channels string[]required

    e.g. ["user.trade"]

    nonce integerrequired

    Current timestamp in milliseconds

WebSocket response
Schema
    id int64
    method string
    code int32
    result object
    instrument_name string
    subscription string
    channel string
    data object[]
  • Array [
  • account_id string

    Account ID.

    event_date string

    Event date.

    journal_type string

    Journal type would be TRADING.

    traded_quantity decimal

    Trade quantity.

    traded_price decimal

    Trade price.

    fees decimal

    Net trade fees (after fee credits applied, if any). The negative sign means a deduction on balance.

    fee_credits decimal

    Fee credits used to offset the trade fees. The negative sign means fee credits were consumed.

    order_id int64

    Order ID.

    trade_id int64

    Trade ID.

    trade_match_id int64

    Trade match ID.

    client_oid string

    Client Order ID.

    taker_side WsTakerSide (string)

    Possible values: [MAKER, TAKER]

    Maker or taker side of the trade

    side WsOrderSide (string)

    Possible values: [BUY, SELL]

    BUY or SELL

    instrument_name string

    E.g. BTCUSD-PERP.

    fee_instrument_name string

    E.g. USD.

    create_time int64

    Create timestamp in milliseconds.

    create_time_ns int64

    Create timestamp in nanoseconds.

    match_count int32

    Optional. Number of orders matched; Maker's order always 1; Taker's is the number of orders matched.

    match_index int32

    Optional. Only for Maker's order; which order entry of the price level was matched; 0-based.

    isolation_id string

    Isolation ID of the order if under isolated position.

    isolation_type WsIsolationType (string)

    Possible values: [ISOLATED_MARGIN]

    Isolation type

    transaction_time string

    Trade transaction time.

  • ]