跳到正文

Get exchange and pair feed status​

GET
/v2/source-status

Reports the shared realtime and history source states (source_states with source_view provenance), the history isolation scopes, and the legacy per-exchange and per-pair summary. History isolation is request based: one failed history request puts the scope in observing, two distinct failures within 30 seconds isolate it, and recovery requires a validated history request from a bounded probe. Official status endpoints are polled on each history check, at most once every 30 seconds, where one describes API availability: GMO Coin /public/v1/status (MAINTENANCE) and Binance /sapi/v1/system/status (status: 1) isolate that exchange's history scope immediately with reason maintenance; a normal status never validates recovery by itself. bitbank and Coincheck publish trading status only and SBI VC Trade has no confirmed status API, so those rely on request evidence. Top-level history_progress and closed_history_lag_seconds say whether closed Klines keep advancing while sources are isolated. A stale pair has not produced a valid market event for 90 seconds and does not by itself prove a disconnected WebSocket.

授权​

bearerAuth

Required when cp_auth.enabled=true. The token must have the oracle scope.

类型
HTTP (bearer)

响应​

Current exchange and pair status snapshot.

application/json
JSON
{
  
"source_states": [
  
],
  
"source_view": {
  
  
"schema_version": 0,
  
  
"publisher_id": "string",
  
  
"epoch": "string",
  
  
"revision": 0,
  
  
"kind": "string",
  
  
"complete": true,
  
  
"observed_at": "string",
  
  
"resync": true
  
},
  
"history_scopes": [
  
  
{
  
  
  
"scope": {
  
  
  
  
"exchange": "binance",
  
  
  
  
"capability": "string",
  
  
  
  
"pair": "string",
  
  
  
  
"interval": "string"
  
  
  
},
  
  
  
"state": "string",
  
  
  
"reason": "string",
  
  
  
"first_failure": "string",
  
  
  
"last_success": "string",
  
  
  
"next_probe": "string",
  
  
  
"failure_count": 0,
  
  
  
"evidence": "string",
  
  
  
"observed_at": "string"
  
  
}
  
],
  
"history_build_error": "string",
  
"history_progress": "string",
  
"closed_history_lag_seconds": 0,
  
"updated_at": "string",
  
"exchanges": [
  
  
{
  
  
  
"history_scopes": [
  
  
  
  
{
  
  
  
  
  
"scope": {
  
  
  
  
  
  
"exchange": "binance",
  
  
  
  
  
  
"capability": "string",
  
  
  
  
  
  
"pair": "string",
  
  
  
  
  
  
"interval": "string"
  
  
  
  
  
},
  
  
  
  
  
"state": "string",
  
  
  
  
  
"reason": "string",
  
  
  
  
  
"first_failure": "string",
  
  
  
  
  
"last_success": "string",
  
  
  
  
  
"next_probe": "string",
  
  
  
  
  
"failure_count": 0,
  
  
  
  
  
"evidence": "string",
  
  
  
  
  
"observed_at": "string"
  
  
  
  
}
  
  
  
],
  
  
  
"exchange": "gmo_coin",
  
  
  
"status": "string",
  
  
  
"last_message_at": "string",
  
  
  
"last_error": "string",
  
  
  
"history_status": "string",
  
  
  
"history_error": "string",
  
  
  
"pairs": [
  
  
  
  
{
  
  
  
  
  
"pair": "BTC",
  
  
  
  
  
"base": "BTC",
  
  
  
  
  
"quote": "JPY",
  
  
  
  
  
"status": "string",
  
  
  
  
  
"last_message_at": "string",
  
  
  
  
  
"last_trade_at": "string"
  
  
  
  
}
  
  
  
]
  
  
}
  
]
}

试验场​

授权

示例​