Download large amounts of historical data quickly for ERC-20 trading pairs and other digital asset data. Pangea’s historical data is perfect for backtesting and simulation of DeFi trading strategies, machine learning, and AI use cases, as well as marketplace data. Ideal for hedge funds, high-frequency traders, market makers, and quantitative analysts.
Effortless Integration
Fast and Comprehensive Data Access
Pangea’s historical data solution offers a significant advantage for those in data-heavy industries like hedge funds, high-frequency trading, and DeFi strategies. One key benefit is the ability to download vast amounts of historical data for ERC-20 trading pairs and other digital assets quickly and efficiently.
This enables traders, quantitative analysts, and market makers to backtest strategies, simulate trades, and enhance machine learning models with accurate, context-rich datasets. In such fast-paced environments, quick access to large-scale data is essential for staying competitive and making informed decisions.
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
Privacy and Context-Rich Insights
A major benefit of Pangea’s historical data is the focus on privacy and security. All data queries are private to the user, ensuring sensitive market analysis and proprietary trading strategies remain confidential.
Beyond privacy, Pangea’s data is rich in context, offering not only raw historical figures but also detailed insights that enhance decision-making. This depth of information makes it an ideal solution for building advanced financial models, optimising DeFi protocols, and generating actionable, data-driven insights with confidence.
Our Knowledge
Frequently asked questions
Find answers to common questions and get the information you need to make the most of our services.