GET /stream
Connectez-vous à un flux Server-Sent Events pour en temps réel push updates. Subscribe to broad topics ou filter to spécifique items en utilisant le topic:filter syntax. Events include unique IDs pour reconnection (pass Last-Event-ID header to resume). Heartbeat keeps le connection alive. Use curl -N ou JavaScript EventSource. 14 topics available: taux de change, crypto, electricity, matières premières, economics, holidays, weather, séismes, space weather, NASA, sports, news, VAT, et currencies.
sujets
requis
Comma-separated subscriptions with optional filters (e.g. crypto:bitcoin,electricity:NO1)
battement de cœur
optionnel
par défaut: 30
Heartbeat interval in seconds (5-300)
| Nom | Requis | Par défaut | Description |
|---|---|---|---|
sujets |
Oui | - | Comma-separated subscriptions with optional filters (e.g. crypto:bitcoin,electricity:NO1) |
battement de cœur |
Non | 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"
Ceci est un endpoint de streaming Server-Sent Events (SSE). Il maintient la connexion ouverte et envoie des événements en temps réel. Essayez avec : curl -N "https://nordapi.ee/stream?topics=crypto:bitcoin"