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

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:

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.