Skip to main content
POST
/
ws
/
withdrawals
Subscribe: Withdrawals
curl --request POST \
  --url wss://api.ondoperps.xyz/ws/withdrawals \
  --header 'Content-Type: application/json' \
  --data '
{
  "op": "subscribe",
  "channel": "withdrawals"
}
'
{
  "data": {
    "coin": "USDC",
    "size": "500.00",
    "status": "confirmed",
    "address": "<string>",
    "withdrawal_id": "<string>",
    "txid": "<string>",
    "customer_withdrawal_id": "<string>",
    "time": "2023-11-07T05:31:56Z",
    "accountId": "<string>",
    "usdValue": "<string>",
    "usdFee": "<string>",
    "chainId": "<string>",
    "from": {
      "id": "<string>"
    }
  }
}

Body

application/json
op
enum<string>
required

Operation type.

Available options:
subscribe,
unsubscribe
Example:

"subscribe"

channel
enum<string>
required

Channel for this subscription.

Available options:
withdrawals
Example:

"withdrawals"

Response

200 - application/json

Channel update for withdrawals

type
enum<string>
Available options:
update
channel
enum<string>
Available options:
withdrawals
data
object