Live Pair Trades 🆕
Get live trades for a pair (OpenAPI does not support websocket, Plese test with websocket client)
Query parameters
api_keystringRequired
API key required for Pro/Enterprise plans (WebSocket)
Body
typestringOptional
Type of message "topic"
topicstringOptional
Topic of message "trades"
Responses
101
WebSocket connection established
application/json
Responseobject
400
Invalid request parameters
application/json
401
Unauthorized
application/json
get
GET /v1/ws/trades HTTP/1.1
Host: api.dexcheck.ai
Content-Type: application/json
Accept: */*
Content-Length: 108
{
"type": "topic",
"topic": "trades",
"data": {
"pair": "0xc3db44adc1fcdfd5671f555236eae49f4a8eea18",
"chain": "eth"
}
}
{
"type": "message",
"topic": "trades",
"data": {
"pair": "0xc3db44adc1fcdfd5671f555236eae49f4a8eea18",
"side": "buy",
"price_usd": 0.6157,
"amount_token": 21396.629654,
"amount_usd": 13206.3,
"tx_hash": "0x4f50b13a1880a0090624440be8dd6d1b0bdcca53196e67cd5037de6aa5a777e1",
"maker": "0xe58e5ed4544f58831a84c18178b911a5957ada08",
"to": "0xa69babef1ca67a37ffaf7a485dfff3382056e78c",
"block": 23088099,
"timestamp": 1754556611,
"subscription_id": "c8569e26-e007-4cfb-8e18-97b1b43ceef8"
},
"params": {
"chain": "eth",
"pair": "0xc3db44adc1fcdfd5671f555236eae49f4a8eea18"
},
"subscription_id": "c8569e26-e007-4cfb-8e18-97b1b43ceef8"
}