Skip to main content
Pragma API Flow Diagram
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

  • Development
  • Production
https://api.devnet.pragma.build/node/v1
We recommend you use the Development endpoint until you are confident about going to production.

Authentication

Most endpoints require authentication using an API key. Include your API key in the request headers:
X-API-KEY: <YOUR_API_KEY>
We are currently still in private beta, DM us on twitter or telegram to get your own api key.

API Groups

Our API is divided into the following categories:
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
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
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

1

Get Your API Key

Reach out to us on Twitter or Telegram to request access to our private beta.
2

Choose Your Environment

Start with our Development environment for testing your integration.
3

Make Your First Request

Use our example code snippets to make your first API call:
const response = await fetch('https://api.devnet.pragma.build/node/v1/prices/latest?pair=BTC-USD', {
  method: 'GET',
  headers: {
    'X-API-KEY': 'your-api-key-here'
  }
});

const data = await response.json();
console.log(data);
4

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.