Historical Crypto Data: Types, Uses and How to Get It
Historical crypto data explained: price candles, trade records, wallet PnL and API retrieval, with practical crypto examples.
Contents
- Types of Historical Crypto Data at a Glance
- Price Candles and the Fields Inside Them
- Solana Trade Records and the Fields to Keep
- Market Cycles Every Dataset Should Include
- Launch History and Liquidity Checks for New Tokens
- Wallet Profit and Loss Metrics Defined
- Survivorship Bias and Data Quality Traps
- Preserve failures and question activity
- How to Pull Historical Data Through an API
- Common Retrieval Problems and Fixes
- Choose Your Data Source and Pull Your First Dataset
You've downloaded a token's price history, and the chart looks promising. But when you try to reproduce a trade, the price doesn't match, the pool has little liquidity, and some tokens have disappeared from the dataset entirely.
Historical crypto data is useful only when you understand what each record represents. A recorded price isn't necessarily a price you could have traded at. Start with the basic records, then check the missing tokens, launch conditions, and execution details that can change your conclusions.
Types of Historical Crypto Data at a Glance
Historical crypto data is a record of what happened on a blockchain or exchange over time, stored with timestamps so you can look it up by date.
| Data type | What it records | Typical use |
|---|---|---|
| Price candles (OHLCV) | Open, high, low, close and volume for each fixed time interval | Trend charts and backtests |
| Trade records | Each buy and sell with its time, amount and transaction ID | Rebuilding what a trader actually paid |
| Liquidity pool snapshots | Reserves of each trading pool at set times | Checking whether a token could be sold at a useful size |
| Token metadata | Launch time, mint address, decimals and authority status | Dating a token and spotting risk flags |
| Wallet profit and loss history | Daily realized and unrealized results for each wallet | Reviewing a trader's track record |
| Holder balance snapshots | Token amounts held by each wallet at set times | Measuring ownership concentration |
Start with candles, trades, and liquidity for price questions. For example, candles show a token's monthly range, trades reveal the actual swaps, and liquidity snapshots help you assess whether an exit was practical.
The remaining types answer token and wallet questions. Metadata distinguishes similarly named tokens, wallet history explains performance, and holder snapshots show whether ownership became more concentrated.
Price Candles and the Fields Inside Them
A candle summarizes trading during a fixed interval. Set its boundaries in UTC, the shared time standard, so local time zones don't shift your comparisons.
Consider a hypothetical hourly candle:
| Field | Example | Meaning |
|---|---|---|
| Open | $100 | First traded price |
| High | $104 | Highest traded price |
| Low | $98 | Lowest traded price |
| Close | $102 | Last traded price |
| Volume | 500 tokens | Total token amount traded |
| VWAP | $101.20 | Average price weighted by traded amount |
| Trade count | 84 | Number of trades |
VWAP, or volume-weighted average price, and trade count are optional fields, although Kraken's historical-data documentation includes both in its candle schema.
Check that the high is at or above the open and close, and the low is at or below both. A violation usually means a parsing, ordering, or aggregation problem.
A candle belongs to its venue, meaning the exchange or pool where trading happened. Different venues can produce different closing prices for the same token.
Storage rule: Use integer base units or fixed-precision decimals, not binary floating point, and record the conversion scale.
Use only completed candles for finalized charts and backtests. Keep venue histories separately addressable before combining them, and don't let a signal calculated from a candle's close execute retroactively at that same close.
Solana Trade Records and the Fields to Keep
A Solana trade record describes the raw swap event behind a candle. Candles summarize activity, but they can't establish which transaction produced a particular execution.
Keep enough information to reconstruct the swap:
- Chain slot and block time: Record the blockchain position and timestamp to establish when the event happened.
- Transaction signature: Keep the transaction's identifier so you can inspect it in an explorer.
- Pool or venue ID: Identify where the swap executed rather than assigning it to an unspecified market.
- Mint addresses and token decimals: Identify the assets and explain how their stored integer amounts become readable quantities.
- Quote mint: Record the asset used to express the price, which might not be a dollar-denominated token.
- Instruction index: Identify the step that performed the swap within a transaction containing multiple actions.
- Pool reserves: Preserve the available token balances around execution to assess liquidity.
For example, a hypothetical quantity of 1.5 tokens with 6 decimals should be stored as 1,500,000 base units. Keep the decimal scale beside the mint metadata so the amount remains interpretable.
For a reproducible USD valuation policy, use the last completed one-minute candle at or before the event, accepting it only when it's no more than one hour old. Leave the USD value empty when no eligible candle exists rather than guessing.
Record that policy with the output. Otherwise, someone rebuilding the same trade could use a later price and get a different result.
Market Cycles Every Dataset Should Include
Bitcoin's rally provides a clear example of why annual returns aren't enough: it rose from about $1,000 in early 2017 to approximately $19,188 on December 16, roughly a nineteen-fold increase, before falling sharply in 2018, according to the Bank for International Settlements paper on cryptocurrencies and decentralized finance.
The cycle record below includes those milestones and the later peak described in that paper.
| Date | Event | Price (USD) |
|---|---|---|
| Early 2017 | Bitcoin trades near the start of the rally | About $1,000 |
| Mid-May 2017 | Price breaks above $2,000 | Above $2,000 |
| December 16, 2017 | Approximate peak of that cycle | About $19,188 |
| 2018 | Sharp price decline after the peak | Below the preceding peak; use venue records for the trough |
| November 10, 2021 | Record high in the later cycle | Near $69,000, closed around $64,921 |

A drawdown is the percentage decline from a previous peak. Calculate it by subtracting the later value from the peak, dividing by the peak, and expressing the result as a percentage.
Mark each cycle's peak and subsequent trough, its lowest point before recovery. Label rising and falling phases in your dataset so you can compare strategy behavior under different conditions.
For example, a backtest beginning after a major rally omits the buildup to the correction. It may measure the decline, but it can't tell you how a strategy accumulated exposure before that decline.
Launch History and Liquidity Checks for New Tokens
New Solana tokens can show busy trading without enough liquidity, the assets available to support swaps. Solidus Labs found that 98.6% of Pump.fun tokens that didn't progress to Raydium later fell below $1,000 in liquidity, as reported in Blockonomi's rug-pull statistics overview.
Use this launch-history checklist:
Compare volume with liquidity. In a hypothetical pool showing $20,000 of volume but only a few hundred dollars of liquidity, a $1,000 sell could move the price sharply. A healthier result is sufficient depth for your intended exit, not impressive turnover.
Inspect liquidity ownership and locks. Suppose a single wallet controls nearly all the liquidity position and can withdraw it immediately. That's a warning; distributed control or verifiable withdrawal restrictions reduce that particular risk, without guaranteeing safety.
Track the largest holders. Compare the ten largest holders over time, separating pool and program accounts from ordinary wallets. Gradual distribution is more reassuring than a creator-linked cluster accumulating supply.
Follow creator withdrawals. Say the pool creator removes liquidity soon after buyers arrive. That's different from liquidity remaining available through active trading, although routine migrations must be distinguished from withdrawals.
Verify migration outcomes. A move to a larger venue matters only if usable depth follows. A token that changes venues but remains difficult to sell hasn't solved its liquidity problem.
These checks require historical holder balances and pool snapshots, not just a rising price chart.
Wallet Profit and Loss Metrics Defined
Profit and loss, usually shortened to PnL, combines trading activity with valuation rules. Each metric answers a different question, so a wallet's headline profit shouldn't stand alone.
The following figures are hypothetical worked examples before fees.
| Metric | Definition | Example |
|---|---|---|
| Realized PnL | Profit or loss from closed positions | Buy 100 tokens at $1 and sell at $1.50, producing $50 profit |
| Unrealized PnL | Gain or loss on positions still open | Hold 100 tokens bought at $1 and marked at $1.20, showing $20 unrealized gain |
| Win rate (closed tokens) | Winning closed tokens divided by all closed tokens | 7 of 10 closed tokens equals 70% |
| Win rate (trading days) | Share of trading days that ended positive | 12 positive days of 20 equals 60% |
| Drawdown | Percentage fall from a previous peak | A portfolio falling from $10,000 to $7,000 has a 30% drawdown |
| Streak | Consecutive winning or losing periods | Five winning days in a row |
The win rates can differ for the same wallet because their denominators differ. A trader might close several profitable tokens on the same day, then record losses across several other days.
A high win rate doesn't establish profitability. Compare the size of gains and losses, not just how often each occurs.
Also check currency conversion timing. Converting an entire history at today's exchange rate can produce a different total from converting each day at its historical rate.
For unrealized PnL, inspect the valuation method. A displayed gain based on a thin pool's latest trade doesn't establish that the wallet could sell its entire position for that amount.
Survivorship Bias and Data Quality Traps
Suppose a historical token universe contained 100 tokens, but 40 were later delisted. If your backtest keeps only the surviving tokens, you've removed possible losses before the test even begins.
That error is survivorship bias. A broad dataset covering December 2013 through September 2025 included 18,622 active coins and 29,230 inactive coins, while evidence using 3,904 cryptocurrencies from 2014 through 2021 estimated annualized survivorship and delisting bias at 0.93% for value-weighted portfolios and 62.19% for equal-weighted portfolios, as discussed in the academic analysis of cryptocurrency survivorship bias.
Value-weighted portfolios give larger assets more influence; equal-weighted portfolios allocate the same weight to each asset. The distinction matters when failed smaller tokens disappear from the available history.

Preserve failures and question activity
Keep each token's existence window, meaning when it was observable and potentially tradable. Record its last usable liquidity and choose an explicit loss-of-liquidity convention, such as a zero valuation, rather than dropping it.
Wash trading is activity arranged to create a misleading appearance of trading interest. Research covering 29 exchanges found systematic evidence of this behavior and its potential to inflate rankings and prices in the Tokenomics paper on crypto wash trading.
Identifier instability, mislabeled assets, and provider disagreements create further problems. Launch-period records need particular care because daily summaries can conceal rapidly changing liquidity, coordinated wallets, and brief price spikes.
Run these checks:
- Inspect participation: Look for independent wallet activity, not merely many addresses that may belong to a coordinated cluster.
- Compare matching records: Check the same mint, venue, interval, and quote asset across providers before comparing totals.
- Investigate gaps: Separate missing collection from periods when trading stopped or liquidity disappeared.
For Solana, distinguish vote transactions, which support network consensus, from non-vote activity. Pair non-vote counts with decentralized-exchange volume, active wallets, fees, and liquidity rather than interpreting total transactions per second as trading demand, following the distinctions available through Solana's network data dashboard.
How to Pull Historical Data Through an API
An API, or application programming interface, lets your software request structured records. Start with a small, inspectable request before collecting a long history.

Identify the mint address. Use the token's blockchain identifier, not just its name, because unrelated tokens can share a name. Save the selected mint with your request settings.
Choose the record type. Request candles for interval charts and trade records for execution analysis. The Solana token OHLCV chart API guide provides a starting point for candle retrieval.
Set UTC boundaries. For a hypothetical January sample, specify 2025-01-01 through 2025-01-31 with explicit timestamp boundaries. Check whether the endpoint includes or excludes the final timestamp so you don't omit the last day.
Test a small window. Request a sample day and inspect the mint, units, timestamps, and venue fields. This catches schema mistakes before they spread through a larger download.
Follow pagination. Pagination divides results into successive pages, usually using a cursor or offset. Save your progress and retry rate-limited requests with increasing delays rather than skipping the failed page.
Preserve raw responses. Store untouched payloads separately from cleaned tables. Overwriting the originals makes later corrections difficult to reproduce.
Validate before analysis. Check gaps, duplicate events, null prices, and candle consistency. Keep an audit log of rejected or modified rows.
A hypothetical stored hourly candle might contain a UTC timestamp, open 100, high 104, low 98, close 102, volume 500, VWAP 101.20, and trade count 84. Store its venue, quote asset, and interval alongside those values, not in an undocumented filename.
Common Retrieval Problems and Fixes
Missing candles are a common retrieval problem, but an empty interval isn't automatically an error. Some sources omit candles when no trades occur; others produce explicitly marked empty intervals.
Use this lookup before filling missing values.
| Symptom | Likely cause | Fix |
|---|---|---|
| Missing candles in a date range | No trades in those intervals, or a pagination gap | One-time check: confirm zero-trade intervals, then re-request the overlapping window |
| Null USD prices on trades | No eligible candle within the one-hour valuation window | Ongoing rule: keep the value null rather than guessing |
| Totals differ between two sources | Different venue sets or conversion rates | One-time reconciliation: compare per venue before normalizing |
| Duplicate trade rows | The same event was ingested repeatedly | Ongoing rule: deduplicate on signature and instruction index, preserving distinct events |
| Rate-limit errors | Requests exceed the endpoint's allowed pace | Ongoing rule: respect retry guidance and use backoff |
| HTTP 400 on a chart request | The endpoint may lack enough history to build a chart | One-time diagnosis: inspect the response and use raw trade records where appropriate |
A hypothetical swap ingested twice should count once, or its amount will inflate volume. However, don't deduplicate solely by transaction signature when a transaction contains separate legitimate swaps.
Keep missingness visible: An unknown price, a zero-trade interval, and an untradeable token are different conditions.
Treat error meanings as endpoint-specific. An HTTP response code alone doesn't prove that history is missing, so preserve the response body and request parameters when diagnosing a failed chart request.
Choose Your Data Source and Pull Your First Dataset
Choose a source that preserves raw trades, token existence windows, pool and venue identifiers, and documented USD conversion rules. Those details let you challenge a result instead of accepting a chart at face value.
Our Solana Tracker Data API is one option to test for Solana work. It has 70+ endpoints covering tokens, wallets, trades, prices, and risk scores, with indexed data served in milliseconds.
For wallet analysis, /v2/pnl/wallets/{wallet}/history returns daily PnL snapshots, while /v2/pnl/wallets/{wallet}/performance returns streaks, drawdown, and best and worst days. We don't publish a fixed retention window for liquidity pool history, so validate coverage for your chosen token and dates before designing a liquidity-dependent backtest.
Start with a manageable sample: one Solana token, one month of hourly candles, and matching trade records in UTC. Check candle consistency, reconstruct sample swaps, inspect failed-token handling, and resolve retrieval problems before using the results in a chart or strategy test.
Solana Tracker offers token, trade, price, wallet, and risk data for investigating historical Solana activity. Visit Solana Tracker to build your first sample dataset, then test whether the recorded prices were supported by trades and usable liquidity.