Wallet Analyzer Websocket 🆕
Get details of a wallet's PnL (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 "wallet_pnl"
Responses
101
WebSocket connection established
application/json
Responseobject
400
Invalid request parameters
application/json
401
Unauthorized
application/json
get
GET /v1/ws/wallet_pnl HTTP/1.1
Host: api.dexcheck.ai
Content-Type: application/json
Accept: */*
Content-Length: 128
{
"type": "topic",
"topic": "wallet_pnl",
"data": {
"maker": "HAWK3BVnwptKRFYfVoVGhBc2TYxpyG9jmAbkHeW9tyKE",
"tf": "30",
"chain": "solana"
}
}
{
"type": "message",
"topic": "wallet_pnl",
"data": [
{
"token_id": "a4WcyMS183n6anrtQ5r9i4YVX2VuT7b2h3NywnEBAGS",
"last_trade_timestamp": 1754554651,
"total_volume": 4079.0531810836515,
"trades": 134,
"last_trade_side": "buy",
"base_name": "FEED GAZA",
"base_symbol": "GAZA",
"buy_total_trades": 28,
"buy_total_usd": 1642.8874570938933,
"buy_size": 1078033.9454454388,
"buy_price": 0.0015239663500717128,
"sell_total_trades": 106,
"sell_total_usd": 2436.165723989758,
"sell_size": 2511420.723699366,
"sell_price": 0.0009700348894155989,
"profit_usd": -597.1569180374652,
"investment_usd": 1642.8874570938933,
"pair_id": "FvXZ13azbnrghhSLW9wZjGJbVdPw4wjuumnQL2yuS5JM",
"token_last_price": 0.0006725771394756727,
"daily_volume": 619326.0305538224,
"unrealized_profit": 0,
"external_profit": 1390.43518493333,
"overall_profit": 793.2782668958648,
"maker": "HAWK3BVnwptKRFYfVoVGhBc2TYxpyG9jmAbkHeW9tyKE",
"first_buy": 1754332615
}
]
}