Address Tracker Trades Channel#
Real-time push of on-chain transaction activity from tracked wallet addresses. Subscribe after login; data is pushed whenever a new transaction occurs.
URL Path
wss://wsdex.okx.com/ws/v6/dex
Request Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
| op | String | Yes | Operation: subscribe unsubscribe |
| args | Array | Yes | List of subscription parameters |
| > channel | String | Yes | Channel name: address-tracker-activity |
Response Parameters#
| Parameter | Type | Description |
|---|---|---|
| event | String | Event type: subscribe unsubscribe error |
| arg | Object | Successfully subscribed channel parameters |
| > channel | String | Channel name |
| code | String | Error code (only returned when event=error) |
| msg | String | Error message (only returned when event=error) |
| connId | String | WebSocket connection ID |
Push Data Parameters#
| Parameter | Type | Description |
|---|---|---|
| arg | Object | Channel info that triggered the push |
| > channel | String | Channel name |
| data | Array | List of pushed trade activity |
| > txHash | String | Transaction hash |
| > walletAddress | String | Trading wallet address |
| > quoteTokenSymbol | String | Quote token symbol (native chain token) |
| > quoteTokenAmount | String | Quote token trade amount |
| > tokenSymbol | String | Traded token symbol |
| > tokenContractAddress | String | Traded token contract address |
| > chainIndex | String | Chain identifier of the traded token |
| > tokenPrice | String | Trade price of the token (USD) |
| > marketCap | String | Market cap of the token at the trade price (USD) |
| > realizedPnlUsd | String | Realized PnL for the token (USD) |
| > tradeType | String | Trade type: 1 buy 2 sell |
| > tradeTime | String | Trade time (Unix timestamp in milliseconds) |
| > trackerType | Array | Tracker wallet type: 1 Smart Money 2 KOL |
Request Example#
Json
{
"op": "subscribe",
"args": [
{
"channel": "address-tracker-activity"
}
]
}
Response Example#
Successful response example
Json
{
"event": "subscribe",
"arg": {
"channel": "address-tracker-activity"
},
"connId": "a4d3ae55"
}
Failure response example
Json
{
"event": "error",
"code": "60012",
"msg": "Invalid request: {\"op\": \"subscribe\", \"argss\":[{ \"channel\" , \"chainIndex\" : \"1\", \"tokenContractAddress\" : \"0x382bb369d343125bfb2117af9c149795c6c65c50\"}]}",
"connId": "a4d3ae55"
}
Push data example
Json
{
"arg": {
"channel": "address-tracker-activity"
},
"data": [
{
"baseTokenChainIndex": "501",
"baseTokenContractAddress": "FmxDdxpFmmuN4DeXoHFzuEyrH8RfRsej6oxg4MaUpump",
"baseTokenSymbol": "XAIC",
"marketCap": "3229.75150297000000000000000000000000000",
"quoteTokenAmount": "1.576294",
"quoteTokenSymbol": "SOLANA",
"realizedPnlUsd": "-0.481221442431056693018746",
"trackerType": [1],
"tradePrice": "0.00000322975150297",
"tradeTime": 1773628806000,
"tradeType": "2",
"walletAddress": "DHfshpzoC9Q7rz32j5juq2do3Bo8bA1KLmkNiRYaA8tf"
}
]
}