Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 411 Bytes

File metadata and controls

29 lines (25 loc) · 411 Bytes

API Reference

GET /api/metrics/latest

Description: fetch latest metrics
Response:

{
  "timestamp": "...",
  "volume24h": 12345.67,
  "openInterest": 89012.34,
  "fundingRate": 0.0005
}

GET /api/metrics/history

Query:

  • from (ISO timestamp)
  • to (ISO timestamp)

Response:

[...]

WebSocket: wss://...

Subscribe to topics:

subscribe: "metrics"