Data Streams Reference
Chainlink Data Streams offers two distinct solutions for accessing low-latency market data. Choose the solution that best fits your use case.
Which solution should I use?
Feature | Data Streams API | Candlestick API |
---|---|---|
Primary Use Case | Onchain consumption by smart contracts | Offchain analytics, charting, dashboards |
Data Format | Signed, verifiable data reports | Aggregated OHLC (candlestick) data |
Interfaces | SDKs (Go, Rust), REST API & WebSocket | REST API (including a streaming endpoint) |
Authentication | HMAC Signature (automatic with SDKs) | JWT (token-based) |
Cryptographic Proof | ✅ Yes (See Verification methods) | ❌ No |
Data Streams API
The Data Streams API provides cryptographically signed, verifiable data reports designed for onchain consumption by smart contracts. This comprehensive solution offers multiple integration paths to support applications that require low-latency, tamper-proof data.
Integration Methods
SDKs (Recommended)
Direct API Access
- REST API - HTTP-based interface for simple integrations
- WebSocket - Real-time data streaming via WebSocket connection
Authentication
- Authentication Guides - HMAC signature implementation examples (not required when using SDKs)
Verification
EVM chains
- Onchain report data verification - Verify the authenticity of received data on EVM chains
Solana
- Verify reports using the onchain integration method - Verify reports directly within your Solana program
- Verify reports using the offchain integration method - Verify reports client-side using the Rust SDK
View the Data Streams API Reference →
Candlestick API
The Candlestick API provides historical and real-time OHLC (Open-High-Low-Close) data designed for offchain applications. Built to TradingView data integration specifications, it's optimized for analytics, charting, and dashboard applications.
Integration Methods
Currently, the Candlestick API is accessible via a REST API, including a streaming endpoint for real-time data.
Authentication
- Authentication Endpoint - JWT token-based authentication