Get details of a wallet's PnL
Getting a wallets PnL
- base url: ws://api.dexcheck.ai/v1/ws?x-api-key=your_api_key
- sample subscribe message (SEND)
{ "type": "topic", "topic": "wallet_pnl", "data": { "maker": "HAWK3BVnwptKRFYfVoVGhBc2TYxpyG9jmAbkHeW9tyKE", "tf": "30", "chain": "solana" } }
- sample response message (RECV)
{ "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 } ] }
Note: Available timeframes are 1, 7, 30, 60, 90, all (all gives complete pnl info)