Introduction
Welcome to the Pragma Node API documentation
Pragma offers a highly accurate, readily available, and fast API built on our extensive network of data providers. This empowers developers to drive the evolution of next-generation applications. Our API provides the most reliable prices and financial data at the highest frequency possible.
Key Features
Real-Time Updates
Access to market data with millisecond latency, ensuring your applications always have the most current information for critical decision-making.
Permissionless Architecture
Our API is designed to be openly accessible, allowing anyone to build on our infrastructure without gatekeeping or excessive restrictions.
Battle-Tested Reliability
Thoroughly tested in high-stakes environments with proven performance during market volatility and network congestion.
Feature Complete
Comprehensive set of endpoints covering all your data needs with consistent response formats and thorough documentation.
Base URL
We recommend you use the Development endpoint until you are confident about going to production.
We recommend you use the Development endpoint until you are confident about going to production.
Only switch to the Production endpoint when your application is fully tested and ready for deployment.
Authentication
Most endpoints require authentication using an API key. Include your API key in the request headers:
API Groups
Our API is divided into the following categories:
Offchain
Offchain
Access to aggregated price data and real-time market information across multiple sources.
Price Discovery
Get accurate market prices from multiple aggregated sources
Market Analysis
Access comprehensive data for technical and fundamental analysis
Trading Algorithms
Power your automated trading strategies with reliable data
Risk Management
Monitor market conditions to optimize your risk exposure
Onchain
Onchain
Interact with on-chain price feeds and historical data directly from blockchain sources.
Historical Price Lookups
Query verified historical price data points
Merkle Proof Verification
Validate data integrity with cryptographic proofs
Oracle Data Access
Direct integration with Pragma’s oracle infrastructure
Smart Contract Integration
Helper functions for seamless blockchain application development
WebSocket
WebSocket
Real-time data streaming capabilities for instant updates without polling.
Low-Latency Updates
Receive price changes as they happen with minimal delay
Event-Driven Architecture
Build responsive applications that react to market changes
Reduced API Call Overhead
Maintain open connections instead of frequent polling
Connection Monitoring
Track connection status and health with built-in diagnostics
Getting Started
Choose Your Environment
Start with our Development environment for testing your integration.
Make Your First Request
Use our example code snippets to make your first API call:
Explore the Documentation
Dive deeper into our comprehensive API documentation to discover all available endpoints and features.
Rate Limits
During our beta phase, we apply flexible rate limits based on your use case. Contact our team for details about your specific allocation.
For production applications, we offer tiered plans with appropriate rate limits to meet your needs.