GET /stream
Verbinden Sie sich mit a Server-Sent Events stream for Echtzeit push updates. Subscribe to broad topics oder filter to specific items using the topic:filter syntax. Events include unique IDs for reconnection (pass Last-Event-ID header to resume). Heartbeat keeps the connection alive. Use curl -N oder JavaScript EventSource. 14 topics available: Wechselkurse, crypto, electricity, commodities, economics, holidays, weather, earthquakes, space weather, NASA, sports, news, VAT, und currencies.
Themen
erforderlich
Comma-separated subscriptions with optional filters (e.g. crypto:bitcoin,electricity:NO1)
Heartbeat
optional
Standard: 30
Heartbeat interval in seconds (5-300)
| Name | Erforderlich | Standard | Beschreibung |
|---|---|---|---|
Themen |
Ja | - | Comma-separated subscriptions with optional filters (e.g. crypto:bitcoin,electricity:NO1) |
Heartbeat |
Nein | 30 | Heartbeat interval in seconds (5-300) |
curl -N "https://nordapi.ee/api/v1/stream?topics=crypto:bitcoin,electricity:NO1"
curl -N "https://nordapi.ee/api/v1/stream?topics=crypto:bitcoin"
curl -N "https://nordapi.ee/api/v1/stream?topics=electricity:NO1"
curl -N "https://nordapi.ee/api/v1/stream?topics=exchange_rates:EUR/USD,commodities:gold"
curl -N "https://nordapi.ee/api/v1/stream?topics=electricity&heartbeat=15"
curl -N "https://nordapi.ee/api/v1/stream?topics=crypto,commodities"
curl -N "https://nordapi.ee/api/v1/stream?topics=exchange_rates:NOK"
Dies ist ein Server-Sent Events (SSE) Streaming-Endpunkt. Er hält die Verbindung offen und sendet Ereignisse in Echtzeit. Probieren Sie es aus mit: curl -N "https://nordapi.ee/stream?topics=crypto:bitcoin"