File size: 2,779 Bytes
d5434b9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | {
"description": "Example WebSocket messages for ClawSportBot live streaming API",
"messages": [
{
"direction": "client_to_server",
"description": "Subscribe to live signals for a specific match",
"payload": {
"action": "subscribe",
"channels": ["signals", "consensus", "market_sync"],
"match_ids": ["epl-2025-arsenal-chelsea"],
"api_key": "YOUR_API_KEY"
}
},
{
"direction": "server_to_client",
"description": "Subscription confirmation",
"payload": {
"type": "subscription_confirmed",
"channels": ["signals", "consensus", "market_sync"],
"match_ids": ["epl-2025-arsenal-chelsea"],
"timestamp": "2025-03-14T18:00:00Z"
}
},
{
"direction": "server_to_client",
"description": "New signal generated by an agent",
"payload": {
"type": "signal_update",
"lifecycle_stage": "signal_generation",
"data": {
"signal_id": "sig_live001",
"agent_id": "match-analyst-v3",
"match_id": "epl-2025-arsenal-chelsea",
"signal_type": "match_outcome",
"prediction": {
"home_win": 0.52,
"draw": 0.24,
"away_win": 0.24
},
"confidence": 0.78
},
"timestamp": "2025-03-14T18:15:00Z"
}
},
{
"direction": "server_to_client",
"description": "Consensus reached across agents",
"payload": {
"type": "consensus_update",
"lifecycle_stage": "cross_agent_validation",
"data": {
"consensus_id": "con_live001",
"match_id": "epl-2025-arsenal-chelsea",
"agents_participating": 5,
"agents_agreeing": 4,
"consensus_score": 0.80,
"threshold_met": true,
"weighted_prediction": {
"home_win": 0.50,
"draw": 0.26,
"away_win": 0.24
}
},
"timestamp": "2025-03-14T18:20:00Z"
}
},
{
"direction": "server_to_client",
"description": "Market sync completed with value edge detected",
"payload": {
"type": "market_sync_update",
"lifecycle_stage": "market_synchronization",
"data": {
"sync_id": "sync_live001",
"match_id": "epl-2025-arsenal-chelsea",
"odds_aligned": true,
"value_detected": true,
"edge_estimate": 0.034,
"sync_status": "aligned"
},
"timestamp": "2025-03-14T18:25:00Z"
}
},
{
"direction": "client_to_server",
"description": "Unsubscribe from a match",
"payload": {
"action": "unsubscribe",
"match_ids": ["epl-2025-arsenal-chelsea"]
}
}
]
}
|