Real-Time System
Connection
const socket = io('https://api.cliqi.bot', {
auth: { token: '<jwt_token>' }
});Server → Client Events
trade:confirmed
{
"tradeId": "clx...",
"txHash": "0x5abc...",
"tokenSymbol": "DEGEN",
"chain": "BASE",
"action": "BUY",
"amountIn": "0.005",
"amountOut": "42000",
"message": "Bought DEGEN for 0.005 ETH",
"timestamp": "2026-03-01T00:00:05.000Z"
}trade:failed
trade:rejected
trade:pending
alert:low_balance
alert:daily_limit
auto-sell:executed
auto-sell:failed
prices:update
Frontend Integration
Recommended Pattern
React Hooks
Hook
Purpose
Event Summary
Event
Trigger
Premium Only?
Last updated
Was this helpful?