Getting Started
High-Quality Signal Data for Manual, Agentic and Algorithmic Trading
Unlock the potential of real-time blockchain analytics to drive your trading strategies and financial applications. Our APIs deliver comprehensive data on both small and large-scale transactions for over 100 cryptocurrencies and stablecoins, providing the transparency needed to train AI models, develop custom alert systems, or track institutional movements.
- Integrate alerts into existing trade flows
- Power AI trading agents with real-time data
- Create entity specific alerts
- Monitor market liquidity changes (Stablecoin mints/burns)
- Monitor token transaction frequency
- Track exchange in- and outflows
- Monitor specific address flows
Our high-quality transaction data is leveraged by numerous top trading firms, including market leaders such as Jump Trading.
- ✓7-day free trial with monthly billing
- ✓Websocket API access
- ✓Create custom whale alerts
- ✓Alerts for 14 blockchains
- ✓100+ assets included
- ✓Up to 100 alerts per hour
- ✓Exchange attribution included
- ✓Stablecoin mints and burns
- ✓Personal use only
- ✓Live transaction data API
- ✓High-frequency transaction data feed
- ✓Pricing data included
- ✓90-day historical data
- ✓Includes 14 blockchains
- ✓100+ assets included
- ✓Rate limit 500 CPM
- ✓Includes attribution
- ✓Includes alerts API (10,000 alerts/hour)
- ✓Email and Telegram support
- ✓High-Rate Enterprise Access
- ✓14 blockchains, full history on 12
- ✓Bulk database exports
- ✓JSON/Parquet formats
- ✓On-chain metrics API and exports, 1-minute resolution
- ✓Per-address cost-basis history
- ✓Full attribution
- ✓Rate limit 1000+ CPM
- ✓High rate alerts API (20k alerts/hour)
- ✓Dedicated server (optional)
- ✓Direct support
Examples
We have created 6 example projects in Go and Python for you to use. The examples require API keys, which can be created after signing up for the respective plans. For trial keys for Enterprise plans, please contact us.
Alerts API Guides
Aside from the examples provided by us, you can also find multiple guides online on how to implement the Whale Alert websocket API. Below are a few of them. If you don't want to implement it yourself, you can also ask most AI models to do it for you.
- On-Chain Analysis Using the Whale Alert API Framework in Python
- Setting Up Alerts for Large On-Chain Transactions Using API-Based Monitoring
API Access
The Whale Alert REST and WebSocket APIs require an API key which needs to be included in most requests. API keys are available to users with an active developer subscription. Enterprise trial keys can be requested by emailing [email protected].
Real-time Whale Alerts
Whale Alert is best known for the alerts posted on various social media. Our WebSocket service offers similar functionality, providing real-time, customized whale alerts directly to your application. Users can filter notifications based on transaction value, cryptocurrency symbol, transaction type, and blockchain.
Real-time Transaction Data
Our Enterprise API is designed for users who want to consume a lot of transaction data. It provides a constant stream of millions of standardized and enriched transactions which can be used to map address in- and outflows, measure cross-network stablecoin flows, monitor network usage, custom alerts and more. The API comes with a high rate limit and a 90-day transaction history. Full history, bulk data exports and custom limits are available on Enterprise Big.
Historical Alert Archive
We have created a free downloadable archive containing historical alerts posted on our social media channels such as X and Telegram. This dataset is an ideal resource for back-testing trading models, feeding AI models, conducting academic research, or analyzing the historical impact of major whale movements on market volatility.
Enterprise Sample Data
Enterprise sample data is available for download from the link below. The data, stored in separate JSON files in the same format as the Enterprise API response, represents a day's worth of transactions for each blockchain. In addition, a day's worth of alert data is available as well for transactions exceeding a minimum value of 10M USD.
Terms and Conditions
Our Terms and Conditions apply to the usage of all APIs described in these docs.
Alerts API
About
The Alerts API delivers customizable transaction alerts across multiple blockchains and cryptocurrencies. This API enables users to track, analyze, and immediately respond to substantial transaction events customized to their individual needs and preferences.
The most significant feature of the API is its customizability. Users can define specific criteria for alerts, ensuring the receipt of only the most relevant transaction notifications. Alerts follow a generalized format regardless of the blockchain involved, so users can seamlessly compare and analyze transactions across multiple blockchains.
The alerts also include the from and to owners of
transactions, giving more insight into each transfer. This mapping of addresses
to owners enables us to exclude self-changes or internal transfers, enhancing
alert relevance and accuracy.
Implementation examples for the Alerts API can be found at the Whale Alert Github repo here.
Connecting
The Alerts API uses the base URL below and requires an API key for authentication:
wss://leviathan.whale-alert.io/ws?api_key=YOUR_API_KEY
Reconnecting
If the WebSocket connection drops, it's important to reconnect to prevent missing
alerts. After reconnecting, resubscribe to any alerts you were previously
subscribed to. If you resubscribe within 5 minutes using the same id
in the subscription message, any missed alerts will be sent again, preventing
loss of data.
Subscribing to Alerts
To subscribe to events, send a JSON object with the following fields:
| Field | Type | Description |
|---|---|---|
| type | string | The type of events to subscribe to. Only alerts are available for now: "subscribe_alerts". |
| id (optional) | string | Any arbitrary string. When set to the same id as before, any missed alerts while disconnected (up to 5 minutes) will be resent. |
| blockchains (optional) | []string | A list of blockchains to subscribe to. If omitted, the subscription includes all available blockchains. |
| symbols (optional) | []string | A list of symbols to subscribe to. If omitted, the subscription includes all available symbols. |
| tx_types (optional) | []string | A list of transaction types: transfer, mint, burn, freeze, unfreeze, lock, unlock. |
| min_value_usd | float | The minimum transaction value in USD to trigger an alert (minimum limit $100,000). |
Example subscription request:
{
"type": "subscribe_alerts",
"blockchains": ["ethereum"],
"symbols": ["eth", "weth"],
"tx_types": ["transfer"],
"min_value_usd": 1000000
}
The WebSocket responds with a confirmation message:
{
"id": "8QFdN74g",
"type": "subscribed_alerts",
"blockchains": ["ethereum"],
"symbols": ["eth", "weth"],
"tx_types": ["transfer"],
"min_value_usd": 1000000
}
Alert Schema
Alerts are returned in a standardized format for all blockchains. This format includes all relevant transaction data and an easy-to-read summary.
| Field | Type | Description | JSON key |
|---|---|---|---|
| Type | string | Value is set to "alert". | type |
| Channel ID | string | The id of the alert channel. | channel_id |
| Timestamp | int | The timestamp of the transaction. | timestamp |
| Blockchain | string | The blockchain this transaction was created on. | blockchain |
| Transaction Type | string | "transfer", "mint", "burn", "freeze", "unfreeze", "lock", "unlock". | transaction_type |
| From | string | The owner of the from-address(es) that initiated the transaction. | from |
| To | string | The owner of the to-address(es) that are the receiver(s). | to |
| Amounts | []Amount | The amounts transferred by the initiator. | amounts |
| Text | string | A human-readable representation of the transaction. | text |
| Transaction | Transaction | Complete transaction data (same as REST schema). | transaction |
| Amount | Type | Description | JSON key |
|---|---|---|---|
| Symbol | string | The symbol of the currency. | symbol |
| Amount | float | The amount of tokens. Use the full transaction data for exact precision. | amount |
| Value USD | float | The USD value of the amount. | value_usd |
An example Whale Alert returned by the WebSocket API:
{
"channel_id": "xlLZ7tJq",
"timestamp": 1687389431,
"blockchain": "ethereum",
"transaction_type": "transfer",
"from": "unknown wallet",
"to": "unknown wallet",
"amounts": [
{ "symbol": "USDC", "amount": 20006425.31, "value_usd": 20008425.95 },
{ "symbol": "WETH", "amount": 5122.12, "value_usd": 9702266.33 }
],
"text": "20,006,425 USDC and 5,122 WETH transferred between unknown wallets…",
"transaction": { "height": 17531252, "hash": "0x60b2…", "sub_transactions": [ … ] }
}
Code Examples
const ws = new WebSocket(
"wss://leviathan.whale-alert.io/ws?api_key=YOUR_API_KEY"
);
ws.onopen = () => ws.send(JSON.stringify({
type: "subscribe_alerts",
blockchains: ["ethereum"],
symbols: ["eth"],
min_value_usd: 10000
}));
ws.onmessage = (msg) => {
const data = JSON.parse(msg.data);
console.log(data.text || msg.data);
};
c, _, err := websocket.Dial(ctx,
"wss://leviathan.whale-alert.io/ws?api_key=YOUR_API_KEY", nil)
if err != nil { log.Fatal(err) }
defer c.Close(websocket.StatusNormalClosure, "")
sub := AlertSubscriptionJSON{
Type: "subscribe_alerts",
Blockchains: []string{"ethereum"},
Symbols: []string{"eth"},
MinValueUSD: 10000,
}
wsjson.Write(ctx, c, &sub)
for {
var msg AlertJSON
wsjson.Read(ctx, c, &msg)
fmt.Println(msg.Text)
}
import asyncio, json, websockets
async def connect():
url = "wss://leviathan.whale-alert.io/ws?api_key=YOUR_API_KEY"
sub = {
"type": "subscribe_alerts",
"blockchains": ["ethereum"],
"symbols": ["eth"],
"min_value_usd": 10000,
}
async with websockets.connect(url) as ws:
await ws.send(json.dumps(sub))
async for msg in ws:
print(msg)
asyncio.run(connect())
Subscribing to Social Media Posts
To track our social media posts you can subscribe to the socials events. Once an alert is posted, the WebSocket will respond with the post's text and direct links.
| Field | Type | Description |
|---|---|---|
| type | string | Set to "subscribe_socials". |
| id (optional) | string | Any arbitrary string for resuming after disconnect. |
{ "type": "subscribe_socials" }
Confirmation:
{ "id": "8QFdN74g", "type": "subscribed_socials" }
Socials Schema
| Field | Type | Description | JSON key |
|---|---|---|---|
| Type | string | Set to "socials". | type |
| Channel ID | string | The id of the alert channel. | channel_id |
| Timestamp | int | The timestamp of the transaction. | timestamp |
| Blockchain | string | The blockchain this transaction was created on. | blockchain |
| Text | string | A human-readable representation of the transaction. | text |
| Urls | []string | Direct links to the social media posts. | urls |
{
"channel_id": "xlLZ7tJq",
"timestamp": 1692724660,
"blockchain": "tron",
"text": "1,200,000,000 USDT (1,200,398,999 USD) burned at Tether Treasury",
"urls": [
"https://twitter.com/whale_alert/status/1694036126422450598",
"https://t.me/whale_alert_io/72364"
]
}
Status Endpoint
To retrieve a list of all currently supported blockchains and their corresponding coin symbols (which you can use to filter your WebSocket subscriptions), you can request the status REST endpoint. This endpoint does not require an API key.
/statusGET https://leviathan.whale-alert.io/status
[
{ "name": "bitcoin", "symbols": ["BTC", "USDT", "EURT"] },
{ "name": "dogecoin", "symbols": ["DOGE"] },
{ "name": "tron", "symbols": ["USDD","TRX","USDT","USDC","TUSD","WBTC"] }
]
Rate Limits
The WebSocket API allows a maximum of 2 concurrent connections per API key. There is also a cap on the number of alerts received per hour: 100 on the Alerts API, 10,000 on the Enterprise API and 20,000 on Enterprise Big.
Tutorial
A tutorial that demonstrates how to integrate the WebSocket API with IFTTT is available, along with example code on GitHub, can be found here.
Errors
Errors are returned in the form of:
{ "error": "ERROR_MESSAGE" }
| Error | Description |
|---|---|
| invalid request | Request is formatted incorrectly or missing required field(s). |
| not authenticated | Request is missing authentication or the client is not authorized. |
| not allowed | The client is not allowed to subscribe to this event. |
| invalid message type | The "type" field must be set to a supported value. |
| min usd value too low | The "min_value_usd" field is set too low. |
| id too long | The "id" field value must be less than 32 chars. |
| invalid blockchain | The "blockchains" field has an unsupported value. |
| invalid symbol | The "symbols" field has an unsupported value. |
| alert rate limit exceeded | Number of alerts per hour exceeded. Shown once per minute. |
Enterprise API
About
The Enterprise API provides a stream of blockchain transactions without limitations, meaning that all analyzed value transactions for tracked coins and tokens are available through the various endpoints. The API provides enriched, easy-to-process data on millions of transactions per day including price data and attribution. Address owner data is returned directly with each transaction and is constantly updated to ensure current and accurate entity identification.
For all blockchains (except Solana and Ripple) full archival data is available for all transactions for tracked coins and tokens. Access to full history is part of Enterprise Big.
Implementation examples for the Enterprise API can be found at the Whale Alert Github repo here.
Rate Limiting
Requests are limited to a maximum of 500 calls per minute on the Enterprise API and 1,000+ calls per minute on Enterprise Big. Custom rate limits are available on Enterprise Big.
On Enterprise Big, the on-chain metrics and address history endpoints have rate limits of their own, so heavy use of one never slows down another. Each call returns at most 10,000 metric buckets or 10,000 address events; for full history, use metrics exports, whose downloads don't count toward any limit.
| Group | Endpoints | Enterprise Big limit |
|---|---|---|
| Transactions | /status, transaction, block and export endpoints | 1,000+ calls/min |
| On-chain metrics | /metrics, /{blockchain}/metrics/{metric} | 300+ calls/min |
| Address history | /{blockchain}/address/{address}/history | 120+ calls/min |
Enterprise Big
Enterprise Big is our top tier plan, aimed at users who need the full data set rather than a live stream. It uses the same endpoints, API key and schema as the Enterprise API and adds the following:
- Bulk data exports. Large parts of the database can be exported in chunks, in JSON or Parquet format. Attribution and price data are included in these files.
- On-chain metrics. Realized and unrealized profit, SOPR, average buy price, HODL and holder splits, supply, volume and stablecoin mints and burns, at 1-minute resolution over the full history, through the API and as bulk exports. See On-chain Metrics.
- Address history. The point-in-time cost-basis history of any address. See Address History.
- Full archival access. The complete transaction history is available for all tracked coins and tokens on 12 of the 14 supported blockchains, instead of the 90-day window of the Enterprise API.
- Higher limits. 1,000+ calls per minute on the REST API and 20,000 alerts per hour on the WebSocket API. Custom rate limits are available on request.
- Dedicated server. A dedicated server and direct support can be provided.
Enterprise Big cannot be purchased through the website. To discuss pricing, export scope, metrics at the transaction level instead of a 1-minute resolution, or custom limits, email us at [email protected]. Feel free to reach out to us as well if you want us to add metrics or alerts for a currently missing asset or blockchain.
API Key
The REST API is only accessible with an API key, added as a parameter to every request:
?api_key=YOUR_API_KEY or &api_key=YOUR_API_KEY
Base URL
https://leviathan.whale-alert.io
Attribution
Address attribution refers to the process of associating specific owners with their corresponding addresses. The depth of attribution and the number of entities returned are dependent on the selected subscription plan.
Transaction Schema
All transactions returned by the API use the same JSON schema regardless of blockchain protocol. Transactions can contain multiple currencies and/or transaction types, which are split by the API into sub-transactions.
| Transaction | Type | Description | JSON key |
|---|---|---|---|
| Height | int | The block height at which the transaction was included. | height |
| Index | int | The index at which the transaction can be found in the block. | index_in_block |
| Timestamp | int | The UNIX timestamp of the block containing the transaction. | timestamp |
| Hash | string | The hash of the transaction. | hash |
| Fee | string | The amount paid by the initiator of the transaction. | fee |
| Fee Symbol | string | The currency in which the fee was paid. | fee_symbol |
| Fee Price | string | The price in USD per single unit at block time. | fee_symbol_price |
| Sub Transactions | []SubTransaction | Sub-transactions that change the balance of address(es). | sub_transactions |
| SubTransaction | Type | Description | JSON key |
|---|---|---|---|
| Symbol | string | The symbol of the currency. | symbol |
| Price | string | The price in USD per single unit at block time. | unit_price_usd |
| Transaction Type | string | "transfer", "mint", "burn", "freeze", "unfreeze", "lock", "unlock". | transaction_type |
| Inputs | []Address | The inputs of a transaction (FROM). | inputs |
| Outputs | []Address | The outputs of a transaction (TO). | outputs |
| Address | Type | Description | JSON key |
|---|---|---|---|
| Amount | string | The amount of currency by which the address balance is altered. | amount |
| Address | string | The hash of the address. | address |
| Balance | string | The balance of the address after the transaction. | balance |
| Locked | string | The amount locked at the address. | locked |
| Is Frozen | bool | True if the address has been frozen. | is_frozen |
| Owner | string | The entity the address has been attributed to. | owner |
| Owner Type | string | The type of the attributed entity. | owner_type |
| Address Type | string | deposit_wallet, hot_wallet, cold_wallet, etc. | address_type |
Transaction Example
{
"height": 17616182,
"index_in_block": 6,
"timestamp": 1688420591,
"hash": "0xa3cf00e868300cbc846390bc5c5e69875abd895f747ad42876d4f4fb4ebbb0bc",
"fee": "0.00238487557",
"fee_symbol": "ETH",
"fee_symbol_price": 1957.0,
"sub_transactions": [
{
"symbol": "ETH",
"transaction_type": "transfer",
"inputs": [ { "amount": "0.00238", "address": "0xffec…", "owner": "nexo" } ],
"outputs": [ { "amount": "0", "address": "0xdac1…" } ]
},
{
"symbol": "USDT",
"transaction_type": "transfer",
"inputs": [ { "amount": "20000", "address": "0xffec…", "owner": "nexo" } ],
"outputs": [ { "amount": "20000", "address": "0xf8e0…" } ]
}
]
}
Endpoints
The API is accessible through various endpoints. Responses are in JSON format. All endpoints share the same rate limits.
Status
/statusReturns a full overview of the supported blockchains and currencies available per blockchain.
GET https://leviathan.whale-alert.io/status
[
{ "name": "bitcoin", "symbols": ["BTC", "USDT", "EURT"] },
{ "name": "dogecoin", "symbols": ["DOGE"] },
{ "name": "tron", "symbols": ["USDD","TRX","USDT","USDC","TUSD","WBTC"] }
]
Blockchain Status
/{blockchain}/statusUPDATEDReturns the heights of the newest and oldest available blocks of a specific blockchain, as well as the minimum accessible block height for the current subscription plan.
GET https://leviathan.whale-alert.io/bitcoin/status?api_key=API_KEY
{
"start_height": 0,
"end_height": 25795268,
"min_plan_height": 25128156
}
Transaction
/{blockchain}/transaction/{hash}Returns a specific transaction for a blockchain.
GET https://leviathan.whale-alert.io/bitcoin/transaction/d090f5…?api_key=API_KEY
Transactions
/{blockchain}/transactionsUPDATED
Returns all transactions for a blockchain since the specified start height. The
response includes a next URL for the next call; use it to ensure
all transactions are retrieved without duplicates.
| Parameter | Type | Description |
|---|---|---|
| start_height | int | The height of the block at which to start retrieving transactions from. |
| end_height (optional) | int | The height of the block at which to stop retrieving transactions from. |
| address (optional) | string | Filter transactions involving a specific address. |
| symbol (optional) | string | Only retrieve txs with at least one sub-transaction for a specific symbol. Required when min_amount or max_amount is specified. |
| min_amount (optional) | float | Minimum transaction amount in coin/token units. Requires symbol to be specified. |
| max_amount (optional) | float | Maximum transaction amount in coin/token units. Requires symbol to be specified. |
| mutation (optional) | string | Filter transactions by direction: received or sent. Requires address to be specified. |
| transaction_type (optional) | string | transfer, mint, burn, freeze, unfreeze, lock, unlock. |
| limit (optional) | int | Maximum number of transactions to retrieve. Default 10. |
| start_index (optional) | int | Automatically included in the "next" field of the response. |
| order (optional) | string | asc or desc. Default asc. |
| format (optional) | none | Transforms the response JSON to a more readable format. |
GET https://leviathan.whale-alert.io/bitcoin/transactions?limit=100&start_height=768801&api_key=YOUR_API_KEY
Block
/{blockchain}/block/{height}Returns timestamp, hash and transactions for a block at a specific height.
GET https://leviathan.whale-alert.io/bitcoin/block/771103?api_key=API_KEY
Block by Hash
/{blockchain}/block_by_hash/{hash}NEWReturns timestamp, hash and transactions for a block with a specific hash.
GET https://leviathan.whale-alert.io/bitcoin/block_by_hash/0000000000000000000710a85f27193f2131ffcfe3f04cf822bd53825c6bb787?api_key=API_KEY
Height at Time
/{blockchain}/height_at_time/{timestamp}NEWReturns the block height and timestamp of the block at a specific UNIX timestamp (in seconds).
GET https://leviathan.whale-alert.io/bitcoin/height_at_time/1673258657?api_key=API_KEY
{
"height": 771103,
"timestamp": 1673258657
}
On-chain Metrics
Time series of on-chain metrics, computed from the same transaction data as the rest of the API: realized and unrealized profit, SOPR, average buy price, holding time, short- and long-term holder splits, supply and market cap, volume, and stablecoin mints and burns. Every chart on whale-alert.io/analytics is available as a metric. Resolutions run from 1 minute to 1 week, over the full history of each chain.
403 on any other plan.
How the metrics are computed
Every metric is computed per address, per transaction using price data, historical metric data and data available at the block. Metrics are calculated at an address level only and do not take into regard address ownership. This means that internal moves, such as an exchange moving coins from cold storage to a new wallet, count as transfers which will show up as identifiable spikes in realized profit and SOPR. However, these type of transfers are rare and extreme spikes should always be verified with on chain data before acting on them.
Live data
Metrics are updated as soon as each block is processed, up to the chain tip. The current bucket is partial and fills in as blocks arrive.
Data can change
Recent values are not final. Sometimes a blockchain replaces its most recent blocks with different ones (a reorganisation, or reorg). When that happens, we recalculate the metrics and address history for the replaced blocks, so values you already received can change. Most reorgs affect only the last block or two, but on some chains they can reach further back. Historical values can also be corrected when we fix a data issue.
It is recommended, if you store our data, to re-request the most recent part of each series on every update and overwrite what you have. For backtests, leave out the newest data, or refresh it before you use it.
Values
Metric values are 64-bit floating-point estimates. USD values are the amount times our price for that asset at the block's minute; they are not reconciled accounting figures. Transaction exports use DECIMAL(38,18) amounts, so totals can differ in the last digits.
Metrics Coverage
Balance-based metrics (profit, SOPR, cost basis, holder splits, supply) need history from a chain's first block, so they are available on 12 chains. The full list of assets and their start times is returned by GET /metrics.
| Blockchain | Balance metrics from | Assets |
|---|---|---|
| bitcoin | 2009-01-05 | BTC, USDT |
| litecoin | 2011-10-03 | LTC |
| dogecoin | 2013-12-02 | DOGE |
| ethereum | 2015-07-27 | ETH and 85 ERC-20 tokens |
| bitcoin_cash | 2009-01-05 | BCH (shares Bitcoin's history before the August 2017 fork) |
| cardano | 2017-09-18 | ADA |
| tron | 2018-06-25 | TRX, USDT, USDC, USDD, TUSD, WBTC |
| algorand | 2019-06-10 | ALGO, USDC, USDT |
| polygon | 2020-05-25 | MATIC and 9 tokens |
| hyperliquid | 2025-02-17 | HYPE and 8 tokens |
| plasma | 2025-09-01 | XPL, USDT, USDE, WETH |
| tempo | 2026-01-19 | PATHUSD, USDC, USDT |
Dates are each chain's first week of data; individual assets start later (see the catalog). Ripple and Solana have volume and mint metrics only: XRP volume from 22 May 2023 and RLUSD from March 2026; Solana TRUMP and MELANIA volume and USDC and USDT mints from 1 December 2025. Mints and burns are available on chains with stablecoins.
Before an asset traded on markets, its price is its ICO price where one is known, so coins acquired then get the ICO price as their cost basis. Before a token existed, it has no price.
Time Buckets
- Time ranges include the start and exclude the end.
start_time=2026-11-01&end_time=2026-11-02returns all of 1 November: buckets from 00:00 up to, but not including, 2 November 00:00 UTC (24 buckets at1h). For 1 and 2 November, useend_time=2026-11-03. A date without a time means 00:00 UTC. - Times inside a bucket. A
start_timeinside a bucket includes that bucket; anend_timeinside a bucket leaves that bucket out. At1m,start_time=10:00:30starts with the 10:00 bucket andend_time=10:05:30ends with the 10:04 bucket. To get the current, unfinished bucket, leave outend_time. - Block ranges work differently: in transaction exports,
end_heightis included. - Resolutions:
1m,5m,15m,30m,1h,6h,12h,1d,1w. Below 1 minute is not supported. - All buckets are UTC and half-open: a block at 06:00:00 belongs to the 06:00 bucket. Weekly buckets start Monday 00:00 UTC.
- Bucket times follow block timestamps, which on proof-of-work chains can differ from wall-clock time.
- The most recent bucket is partial and updates as new blocks arrive. Recent buckets can also change after a reorg (see Data can change).
- Flows (volume, realized profit, mints) are summed over the blocks in a bucket and are 0 when a bucket has no block. States (supply, average buy price, holding time) are averaged over the blocks in a bucket and carried forward through empty buckets. Ratios (SOPR, profit per token moved, average transaction size) are
nullwhen a bucket has no block. - On slower chains most 1-minute buckets contain no block (about 90% for Bitcoin). Each data point carries
has_block.
Metrics Catalog BIG
/metricsNEWLists the available metrics, resolutions and assets, with each asset's start time. Use it to discover what you can request; it changes as assets are added.
GET https://leviathan.whale-alert.io/metrics?api_key=API_KEY
{
"resolutions": ["1m","5m","15m","30m","1h","6h","12h","1d","1w"],
"metrics": [
{
"id": "sopr",
"name": "Average Buy Profit Ratio",
"kind": "ratio",
"unit": "ratio",
"cohorts": ["market", "short_term", "long_term"],
"description": "Value of the coins moved at today's price divided by their cost at the senders' average buy prices."
}
],
"assets": [
{
"blockchain": "bitcoin",
"symbol": "BTC",
"start_time": 1231113600,
"metrics": ["price", "supply", "sopr", "realized_profit", "..."]
}
]
}
Metric Series BIG
/{blockchain}/metrics/{metric}NEWReturns the time series of one metric for one asset, up to 10,000 buckets per response (for example a week of 1-minute data, or over 400 days of hourly data); see Paging for more. For longer ranges, use a metrics export.
| Parameter | Type | Description |
|---|---|---|
| symbol | string | Required. An asset from the catalog, or STABLECOIN for the sum of 20 US-dollar stablecoins: USDT, USDC, PAX, TUSD, DAI, GUSD, BUSD, HUSD, PYUSD, FEI, USDE, USD1, USDG, USDS, PATHUSD, USDD, USDJ, RLUSD, USDH and PUSD. |
| resolution (optional) | string | 1m to 1w. Default 1h. |
| start_time | string | ISO 8601 date, RFC 3339 date-time or Unix timestamp. Included: the bucket that contains this time is the first one returned. |
| end_time (optional) | string | Same forms. Not included: the last bucket returned is the last one that ends at or before this time. Default: up to now, including the current unfinished bucket. |
| cohort (optional) | string | market (default, all holders), short_term (coins in addresses whose average buy time is less than 180 days ago) or long_term. Only for metrics that list cohorts; these are the Market / Short / Long views on whale-alert.io/analytics. |
Use all as the blockchain to aggregate one symbol across chains, for example /all/metrics/supply?symbol=USDT.
GET https://leviathan.whale-alert.io/ethereum/metrics/sopr?symbol=ETH&resolution=1h&start_time=2026-11-01&end_time=2026-11-02&api_key=API_KEY
{
"blockchain": "ethereum",
"symbol": "ETH",
"metric": "sopr",
"cohort": "market",
"resolution": "1h",
"unit": "ratio",
"count": 24,
"data": [
{"t": 1793491200, "v": 1.0123, "has_block": true},
{"t": 1793494800, "v": 0.9981, "has_block": true}
],
"next": null
}
The above range covers 1 November only: end_time=2026-11-02 is not included, so the last bucket is 1 November 23:00.
Paging
Each response returns at most 10,000 buckets. When the range you asked for has more, the response stops early and next holds the full URL of the following page: the same request with start_time moved to the first bucket not yet returned. Request that URL with your api_key as usual, and repeat until next is null. Because the end of a range is never included, the pages join up with no gaps or overlaps. For example, 30 days of 1-minute data is 43,200 buckets, so it takes five pages.
{
...
"count": 10000,
"data": [ ... ],
"next": "https://leviathan.whale-alert.io/bitcoin/metrics/sopr?symbol=BTC&resolution=1m&start_time=1791412800&end_time=1793404800"
}
Address history pages the same way, with up to 10,000 events per page. This is the same next link that /transactions returns.
Metric Reference
The second column gives each metric's chart name on whale-alert.io/analytics. Metrics with the Market / Short / Long split take the cohort parameter, and in exports they add _short_term and _long_term columns.
| Metric | Name on whale-alert.io | Definition | Kind | Unit | Market / Short / Long |
|---|---|---|---|---|---|
| realized_profit | Realized Profit | For every coin that leaves an address: its value now minus its cost at the sending address's average buy price, summed over the period. | flow | USD | Yes |
| realized_profit_per_token | Realized Profit Per Token | realized_profit divided by amount_spent: the average profit or loss per coin moved. | ratio | USD per token | Yes |
| unrealized_profit | Unrealized Profit | Supply times price minus supply times average buy price: the paper profit or loss of all holders. | state | USD | Yes |
| unrealized_profit_per_token | Unrealized Profit Per Token | unrealized_profit divided by supply, which equals price minus average buy price. | state | USD per token | Yes |
| sopr | Average Buy Profit Ratio | Value of the coins moved at today's price divided by their cost at the senders' average buy prices. Above 1: moved at a profit. | ratio | ratio | Yes |
| amount_spent | — | Coins moved in the period, the base for the realized metrics. | flow | tokens | Yes |
| volume | Transaction Volume Token | Tokens moved between different addresses (see below). | flow | tokens | |
| volume_usd | Transaction Volume USD | Each block's volume times the asset's price at that block's time. | flow | USD | |
| tx_count | Transaction Count | Transactions with at least one transfer of the asset. | flow | count | |
| avg_tx_size | Average Transaction Size Token | volume divided by tx_count. | ratio | tokens | |
| avg_tx_size_usd | Average Transaction Size USD | volume_usd divided by tx_count. | ratio | USD | |
| short_term_share | Short vs Long Term HODL | Share of supply held by short-term holders; the rest is long-term. | state | % of supply | |
| hold_days | Continuous HODL | Days since the average buy time of the whole supply: the amount-weighted average age of all coins held. Grows with time in buckets without blocks. | state | days | |
| spent_age | Realized HODL | Amount-weighted average of the days since each sending address's average buy time, for the coins moved in the period. | ratio | days | |
| price | Price | USD price at the end of the bucket. | state | USD | |
| avg_buy_price | Average Buy Price | Average USD price at which current holders acquired their coins (cost basis). | state | USD | Yes |
| market_cap | Marketcap | Supply times price. | state | USD | |
| supply | Total Supply | Coins in circulation, excluding coins sent to known burn addresses; for stablecoins, per chain or aggregated. | state | tokens | Yes |
| minted, burned | Mints, Mints vs. Burns | Tokens created and destroyed by the issuer in the period. | flow | tokens | |
| net_minted | Net Supply Change | Minted minus burned. | flow | tokens |
How cost basis and the holder split work
- Average buy price and time per address. Each address keeps an average buy price and an average buy time. When it receives coins, both move toward the current price and time, weighted by amount. When it sends coins, they stay the same and the coins leave at that cost.
- Burn addresses. Coins sent to known burn addresses, including Bitcoin's genesis address (
1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa), count as removed from supply; those addresses have no address history. - Short-term or long-term. Coins count as short-term when their address's average buy time is less than 180 days ago; all other coins are long-term. The split goes by each address's average, not by individual coins.
How volume is counted
- Only transfers count. Mints, burns, locks and freezes don't.
- Netted per address. Within each transaction, each address's sent and received amounts are netted against each other, so change outputs and sends to yourself add nothing.
Address History BIG
/{blockchain}/address/{address}/historyNEWReturns the point-in-time cost-basis history of one address: its balance, average buy price and average buy time after every block in which its balance changed. Available on the 12 chains with balance metrics.
| Parameter | Type | Description |
|---|---|---|
| symbol (optional) | string | One asset; omit for all assets of the address. |
| start_time, end_time (optional) | string | Same forms as exports. Start included, end not included. |
| limit (optional) | int | Default 1,000; maximum 10,000. |
| cursor (optional) | string | Set automatically in the next URL; see Paging. |
GET https://leviathan.whale-alert.io/ethereum/address/0xABC…/history?symbol=USDT&limit=2&api_key=API_KEY
{
"blockchain": "ethereum",
"address": "0xABC…",
"count": 2,
"events": [
{
"symbol": "USDT",
"height": 21000000,
"timestamp": 1730000000,
"old_balance": 0,
"new_balance": 250000,
"price": 1.0001,
"avg_buy_price": 1.0001,
"avg_buy_time": 1730000000
}
],
"next": "https://leviathan.whale-alert.io/ethereum/address/0xABC…/history?symbol=USDT&limit=2&cursor=…"
}
Known burn addresses, including Bitcoin's genesis address, have no history: coins sent to them count as removed from supply. History runs up to the latest processed block; recent events can change or disappear if a blockchain reorganises its latest blocks (see Data can change).
Cost basis is tracked per address, not per entity: a transfer between two addresses of the same owner resets the receiving address's average buy price and time.
Bulk Exports
Where /transactions returns a page behind a cursor, an export pulls a complete filtered range
— weeks, months or years of history — as a small number of
Apache Parquet or newline-delimited JSON files
that load directly into DuckDB, pandas, Spark or ClickHouse.
An export is an asynchronous job: create it, poll it, then download the files from pre-signed URLs. Downloads are served from object storage and do not count against the API rate limit.
403 on any other plan.
Create Export BIG
/{blockchain}/exportsNEW
Creates an export job and responds 202. Parameters may be sent as query-string parameters, as
a JSON body, or as a mix of the two. The filters behave as they do on
/transactions; limit, start_index and
order are not accepted, since an export always contains every matching transaction sorted
ascending by height, then index_in_block, then sub_index.
| Parameter | Type | Description |
|---|---|---|
| dataset (optional) | string | transactions (default) or metrics. For metrics, see Metrics Exports. |
| start_height | int | First block to include, inclusive. Required unless start_time is given. |
| end_height | int | Last block to include, inclusive. Required unless end_time is given. Unlike /transactions, an export must have a bounded end. |
| start_time | string | Alternative to start_height. ISO 8601 date, RFC 3339 date-time or Unix timestamp. Inclusive. |
| end_time | string | Alternative to end_height. Same forms as start_time, but exclusive: the block it resolves to is the first one left out, so one export's end_time is the next one's start_time. |
| address (optional) | string | Only include transactions involving this address. |
| symbol (optional) | string | Only include sub-transactions in this asset. Required when min_amount or max_amount is used. |
| transaction_type (optional) | string | transfer, mint, burn, freeze, unfreeze, lock, unlock. |
| min_amount (optional) | float | Minimum amount in units of symbol. Not supported for freeze/unfreeze. |
| max_amount (optional) | float | Maximum amount in units of symbol. Not supported for freeze/unfreeze. |
| mutation (optional) | string | received or sent. Requires address. |
| format (optional) | string | parquet (default) or json. |
| layout (optional) | string | Parquet only: nested (default) or legs. Rejected with format=json. |
| compression (optional) | string | parquet: zstd (default) or snappy. json: gzip (default), zstd or none. |
POST https://leviathan.whale-alert.io/ethereum/exports?start_time=2026-07-01&end_time=2026-08-01&symbol=usdt&api_key=API_KEY
{
"id": "exp_01JQ8ZR4T7K2M9V3XB6H0PWDNC",
"blockchain": "ethereum",
"status": "queued",
"created_at": "2026-08-27T09:12:44Z",
"expires_at": "2026-09-10T09:12:44Z",
"filter": { "start_height": 22615031, "end_height": 22837402, "symbol": "usdt" },
"format": "parquet",
"layout": "nested",
"compression": "zstd",
"partitioning": "daily",
"estimated_rows": 41200000,
"estimated_bytes": 2600000000,
"url": "https://leviathan.whale-alert.io/ethereum/exports/exp_01JQ8ZR4T7K2M9V3XB6H0PWDNC"
}
The response echoes the resolved filter with both heights filled in, so the exact range an
export covers is always visible. partitioning (daily or none) says
which file layout to expect before any file exists, and estimated_rows is the figure checked
against the plan — counted exactly where counting is quick, estimated otherwise. Creating an export
identical to one already running or still downloadable returns that job with a 200 instead.
end_height from the
response and pass start_height = end_height + 1 next time.
Metrics Exports
With dataset=metrics, an export writes on-chain metrics instead of transactions: one row per asset and time bucket, from the start of each asset's history. Use it for long ranges; the metric series endpoint is for recent data and smaller windows.
| Parameter | Type | Description |
|---|---|---|
| dataset | string | metrics. |
| symbol | string | Required. One or more assets, comma-separated, or all for every asset with metrics on the chain. STABLECOIN is not accepted here. |
| metrics (optional) | string | Comma-separated metric ids. Default: every metric that at least one of the assets has. An asset without a metric gets null in its columns. Columns follow the order of the metric reference, whatever order you list them in. |
| resolution (optional) | string | 1m to 1w. Default 1m. |
| start_time | string | Required; block heights are not accepted for metrics. Included: the bucket that contains it is the first. A start before the first data begins at the first bucket there is. |
| end_time | string | Required. Not included: the last bucket is the one before this time. The export ends where its data is settled, so files hold data that no longer changes: the chain's data a safe distance behind the tip, as for transaction exports, and, when you request price, the prices, which are gathered a little behind real time. |
| format, compression (optional) | string | As for transactions. |
| layout, start_height, end_height, address, transaction_type, min_amount, max_amount, mutation | — | Not accepted with dataset=metrics (400). |
POST https://leviathan.whale-alert.io/ethereum/exports?api_key=API_KEY
{
"dataset": "metrics",
"symbol": "all",
"metrics": "supply,realized_profit,sopr",
"resolution": "1m",
"start_time": "2017-01-01",
"end_time": "2026-11-01",
"format": "parquet"
}
The response adds dataset, and its filter shows the resolved request: symbols, metrics, resolution, and start_time and end_time in Unix seconds, after rounding and the end limit. While the job runs, progress reports buckets_done and buckets_total instead of blocks. See Export Files for the file layout.
Retrieve Export BIG
/{blockchain}/exports/{id}NEW
Returns the state of a job. Poll until status is completed. While the job runs,
a progress object carries blocks_done and blocks_total (buckets_done and buckets_total for metrics exports),
rows_written, bytes_written and percent; those counters are
approximate until the export finishes. Download URLs are signed on every read, so expired links are
refreshed by fetching the export again.
{
"id": "exp_01JQ8ZR4T7K2M9V3XB6H0PWDNC",
"blockchain": "ethereum",
"status": "completed",
"created_at": "2026-08-27T09:12:44Z",
"completed_at": "2026-08-27T09:41:08Z",
"expires_at": "2026-09-10T09:12:44Z",
"format": "parquet",
"layout": "nested",
"compression": "zstd",
"partitioning": "daily",
"row_count": 41231884,
"file_count": 14,
"byte_size": 2584117248,
"files": [
{
"name": "dt=2026-07-01/part-00000.parquet",
"url": "https://wa-data.ams3.digitaloceanspaces.com/exports/...",
"bytes": 198443120,
"rows": 3117884,
"start_height": 22615031,
"end_height": 22622188,
"sha256": "9f2c4e1b8a07d3f6c5e29b41a8d70f3e6b1c94a25d8e07f3b6c1a94e2d5f80b73",
"expires_at": "2026-08-29T09:41:08Z"
}
]
}
Each file carries its own rows, bytes, height range (for metrics exports, start_time and end_time) and
sha256. Its url is a pre-signed download link valid for 48 hours — shorter
than the retention of the export itself.
| Status | Meaning |
|---|---|
| queued | Accepted and waiting for a worker. Jobs beyond the concurrency limit wait here. |
| running | Being written. progress is populated. |
| completed | Finished. files contains download URLs. |
| failed | Could not be completed. error explains why. |
| cancelled | Cancelled with DELETE. |
| expired | Retention elapsed and the files were deleted. The job record remains. |
List Exports BIG
/{blockchain}/exportsNEW
Returns your exports for this blockchain, newest first, as summaries without the files array.
Takes status (repeatable or comma-separated), limit (1–100, default 25) and
starting_after. Paging is by cursor: pass the next_cursor of a page back as
starting_after and repeat while has_more is true.
GET https://leviathan.whale-alert.io/ethereum/exports?status=completed&limit=25&api_key=API_KEY
Cancel Export BIG
/{blockchain}/exports/{id}NEW
Cancels a queued or running job, freeing the concurrency slot immediately, or
deletes the files of a completed one before they expire. Responds with the id and the
resulting status.
DELETE https://leviathan.whale-alert.io/ethereum/exports/exp_01JQ8ZR4T7K2M9V3XB6H0PWDNC?api_key=API_KEY
Export Files
Files are partitioned by UTC date and sorted by height. A new file starts at each day boundary or at
512 MB, whichever comes first, and a block is never split across two files. Part numbers run straight
through the export, so downloading everything into one folder is safe. An export small enough to fit in a
single file is written without the dt= directories — partitioning says
which to expect.
dt=2026-07-01/part-00000.parquet dt=2026-07-01/part-00001.parquet dt=2026-07-02/part-00002.parquet
The directory names are Hive-style, so DuckDB, Spark and pandas can glob the whole export and prune by
date with read_parquet('dt=*/part-*.parquet', hive_partitioning = true).
format=parquet
One row per sub-transaction — the level at which a symbol, an amount and a transaction type are defined. A transaction moving two assets produces two rows sharing a hash, an index_in_block and a fee.
| Column | Type | Description |
|---|---|---|
| height | INT64 | Block height. |
| index_in_block | INT32 | Position of the transaction within the block. |
| sub_index | INT32 | Position of the sub-transaction within its transaction, from 0. |
| timestamp | TIMESTAMP(MILLIS, UTC) | Transaction time, to one-second resolution. |
| hash | STRING | Transaction hash. |
| transaction_type | STRING | transfer, mint, burn, lock, unlock, freeze or unfreeze. |
| symbol | STRING | Asset symbol. |
| amount | DECIMAL(38,18) | Total moved by the sub-transaction, in the asset's own unit. Exact. |
| amount_usd | DOUBLE | amount valued at unit_price_usd. Null when no price was available. |
| unit_price_usd | DOUBLE | USD price of one unit at block time. Null when unavailable. |
| fee | DECIMAL(38,18) | Transaction fee in units of fee_symbol. Transaction-level, so it repeats on every row of that transaction. |
| fee_symbol | STRING | Asset the fee was paid in. |
| fee_symbol_price | DOUBLE | USD price of one unit of fee_symbol. |
| inputs | LIST<STRUCT> | Sending side. One struct per address leg: address, amount, balance, locked, is_frozen, owner, owner_type, address_type. |
| outputs | LIST<STRUCT> | Receiving side. Same struct as inputs. |
Asset quantities (amount, balance, locked, fee) are
exact decimals in the asset's own unit — BTC, not satoshi. USD values come from a price feed sampled
at one-second resolution and are estimates: good for ranking, thresholds and charts, wrong for anything
that must reconcile to the cent. Because fee repeats per row, filter to
sub_index = 0 when summing fees.
layout=legs is for readers that cannot handle nested lists: the inputs and
outputs lists are expanded into one row per address leg, with direction,
leg_index and the leg's own fields replacing them. There, amount and
amount_usd describe the individual leg rather than the sub-transaction total, so narrow to one
direction when aggregating.
format=json
Newline-delimited JSON (.jsonl), one object per line, and each line is exactly the object
/transactions returns in its transactions array — same fields, same types,
same omission rules, with no surrounding array and no count or next envelope.
layout does not apply and is rejected. The stream is compressed as a whole and the file name
is the only marker of the codec: part-00000.jsonl.gz, .jsonl.zst or plain
.jsonl.
dataset=metrics
One row per asset and bucket. Columns: blockchain, symbol, bucket (UTC start, Unix seconds), resolution, has_block, then one DOUBLE column per metric (null where there is no value). Metrics with the Market / Short / Long split add _short_term and _long_term columns next to the market value. JSON exports write one row object per line, with null written out so every line has the same keys.
Rows. From the start of an asset's history, every bucket has a row, including buckets in which nothing happened; has_block tells them apart. An asset's history starts at its first supply, or, on chains without balance metrics (Ripple, Solana), at its first transfer, mint or burn. Buckets before that are left out, unless they hold a value you requested, such as a price from before a token's first coins.
Files. Metrics files are split by UTC date only for exports with large days: when an average day is estimated at 128 MB or more, as for every token of a chain at 1 minute. Other metrics exports write part-NNNNN files directly under the export, starting a new part at 512 MB, so a long range of one asset comes as a few large files rather than one small file per day. The partitioning field of the create response says which you get: daily or none. In the file list, each metrics file gives start_time and end_time (its bucket range) instead of block heights.
Export Limits
| Limit | Value |
|---|---|
| Running jobs | 3 |
| Queued or running jobs | 12 |
| Max rows per job | 1,000,000,000 |
| Jobs per rolling 24 hours (any status) | 100 |
| File retention | 14 days from job creation |
| Download URL validity | 48 hours |
Jobs beyond the concurrency limit wait in queued; a thirteenth queued or running job is
refused with 409. A job above the row ceiling is rejected at creation time with
400 rather than failing an hour into a scan — narrow the filter or split the height
range. Other errors follow the rest of the API: 401 for a missing key, 403 for a
plan without exports, metrics or address history, 404 for an unknown blockchain or an id that is not yours,
429 after 100 jobs in the last 24 hours. Metrics exports can also return 422 (a metric or
asset that isn't available, an invalid resolution, or a range with no whole bucket or before the first data) and
503 (metrics exports aren't available on this server).
Changelog
December 1, 2026
- On-chain Metrics: Added
GET /metricsandGET /{blockchain}/metrics/{metric}for on-chain metric time series (Enterprise Big). - Metrics Exports: Added
dataset=metricstoPOST /{blockchain}/exportsfor bulk metric files. - Address History: Added
GET /{blockchain}/address/{address}/historyfor point-in-time cost-basis history (Enterprise Big). - Rate Limits: Separate rate limits for the metrics and address history endpoints on Enterprise Big.
September 14, 2026
- Bulk Exports: Added
POST,GETandDELETEon/{blockchain}/exportsfor asynchronous bulk export of filtered transaction history as Parquet or newline-delimited JSON, downloaded from pre-signed URLs. Enterprise Big only.
August 20, 2026
- Performance: Increased overall database retrieval and query throughput performance across API endpoints.
- Live Data Updates: Real-time live updating of address owners and attributes as data becomes available.
- Chain Reorgs: Improved handling and stability for blockchain orphans and uncle blocks.
- New Endpoint: Added
GET /{blockchain}/block_by_hash/{hash}to retrieve block details by block hash. - New Endpoint: Added
GET /{blockchain}/height_at_time/{timestamp}to retrieve block height and timestamp at a specific UNIX time. - Transactions Endpoint: Updated
GET /{blockchain}/transactionswithend_height,address,min_amount,max_amount, andmutation(received/sent) query filters. - Blockchain Status Endpoint: Updated
GET /{blockchain}/statusresponse to returnstart_height,end_height, andmin_plan_height.