Get real-time insights with data 100ms from the tip of the chain. Pangea's real-time data is ideal for anyone who needs fresh pricing data in DeFi and cross-chain.
Other use cases include chains analysing their KPIs, and alerting. Customers include Traders, Market Makers, Liquidity Providers, Quantitative Analysts, Automated Market Makers (AMMs), Central Limit Order Books (Clobs), and many more.
Effortless Integration
Better Decisions with Instant Data
Having access to real-time data provides a critical advantage in DeFi and cross-chain transactions.
Pangea ensures you’re always working with the latest, most accurate information, enabling you to make informed decisions faster than ever.
This gives traders, market makers, and liquidity providers the upper hand, allowing them to react to market changes with confidence and precision.
Get access
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use std::collections::HashSet;
use futures::StreamExt;
use pangea_client::{
core::types::{format::Format, ChainId},
provider::UniswapV3Provider,
query::Bound,
requests::uniswap_v3::GetPricesRequest,
ClientBuilder,
WsProvider,
};
#[tokio::main]
async fn main() {
dotenv::dotenv().ok();
let username = std::env::var("PANGEA_USERNAME").unwrap();
let password = std::env::var("PANGEA_PASSWORD").unwrap();
let url = std::env::var("PANGEA_URL").unwrap_or("app.pangea.
foundation".to_string());
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// setup websocket client
let client = ClientBuilder::default()
.endpoint(&url)
.credential(&username, &password)
.build::<WsProvider>()
.await
.unwrap();
// subscribe to prices
let request = GetPricesRequest {
chains: HashSet::from([ChainId::ETH]),
from_block: Bound::Latest,
to_block: Bound::Subscribe, // real-time
// for historical data without subscription uncomment below
// from_block: Bound::FromLatest(100),
// to_block: Bound::Latest,
..Default::default()
};
Effortless Integration
Stay Ahead with Rich Insights
Pangea’s ultra-low latency data gives you the foresight to anticipate market movements.
By leveraging real-time data, you can identify trends and opportunities before your competitors, driving smarter strategies and better outcomes.
This edge is invaluable for quantitative analysts and anyone seeking to maintain a competitive advantage in an ever evolving blockchain ecosystem.
Our Knowledge
Frequently asked questions
Find answers to common questions and get the information you need to make the most of our services.