事件结构:
{
"eventId": "uuid",
"eventType": "market-data-failover",
"exchange": "pacifica",
"symbol": "BTC",
"primaryChannel": "websocket",
"backupChannel": "http",
"detectTimestamp": "2025-09-27T12:10:00Z",
"failoverDeadlineMs": 10000,
"reason": "ws-stale-data",
"metrics": {
"wsLastUpdateMs": 3000,
"httpLatencyMs": 400
}
}
{
"eventId": "uuid",
"eventType": "market-data-failover-complete",
"exchange": "pacifica",
"symbol": "BTC",
"completedTimestamp": "2025-09-27T12:10:07Z",
"failoverMethod": "http",
"synthPrice": {
"mid": 109305.2,
"bid": 109302.1,
"ask": 109308.3
},
"durationMs": 7000,
"triggeredOrders": [
"recalc-delta",
"resume-trading"
]
}
{
"eventId": "uuid",
"eventType": "market-data-failover-failed",
"exchange": "pacifica",
"symbol": "BTC",
"elapsedMs": 12000,
"attempts": [
{ "channel": "http", "result": "timeout" },
{ "channel": "synth", "result": "insufficient-data" }
],
"recommendedAction": "halt-trading",
"severity": "CRITICAL"
}
MonitoringEvent
,供仪表盘展示。market-data-failover-failed
触发,控制平面需暂停相关交易对的所有新订单,直到人工或自动恢复。