# Crypto Data API – Prices, OHLCV, DEX Trades, Wallet Tracker (`bitquery_marketing/crypto-data-api`) Actor

Crypto price API, OHLCV candles, DEX trades, top traders, whale trades, token transfers, wallet balances and token holders on Ethereum, Solana, BSC, Base, Arbitrum, Optimism, Polygon, Tron and more. No API key needed. By Bitquery.

- **URL**: https://apify.com/bitquery_marketing/crypto-data-api.md
- **Developed by:** [Bitquery](https://apify.com/bitquery_marketing) (community)
- **Stats:** 3 total users, 2 monthly users, 42.9% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.00 / 1,000 blockchain records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Crypto Data API – Prices, OHLCV Candles, DEX Trades, Wallet Tracker, Token Holders

On-chain **crypto data** from **10 blockchains** in one Actor: live **token prices**, **OHLCV candles**, **DEX trades**, **top traders**, **whale trades**, **token transfers**, **wallet balances** and **token holders**. Pick a mode, a chain and an address, and get clean rows in a dataset.

No Bitquery account and no API key needed. You pay a small fee per row through your Apify account. Powered by [Bitquery](https://bitquery.io/?utm_source=apify\&utm_medium=actor\&utm_campaign=crypto-data-api).

### What can this Actor read?

| Mode | What you get | Needs |
| --- | --- | --- |
| `price` | Latest price of one token from its top market, with 1-minute OHLC, USD volume and market cap | `tokenAddress` |
| `ohlcv` | Candles with USD volume and market cap, from 1 second to 1 hour, about 30 days back | `tokenAddress` or `poolAddress` |
| `trades` | Latest DEX swaps of a token or pool: side, price, USD amounts, trader, market, transaction hash | `tokenAddress` or `poolAddress` |
| `traderTrades` | Swaps by one wallet, optionally on one token | `traderAddress` |
| `topTraders` | Wallets ranked by USD volume on a token or a whole chain, with buy and sell split | `chain`, optional `tokenAddress` |
| `whaleTrades` | Swaps above a USD size on a token or chain | `minUsd` |
| `transfers` | Token transfers of wallets or of a token, with USD value | `walletAddresses` or `tokenAddress` |
| `balances` | What wallets hold now, in tokens and USD (EVM and Tron) | `walletAddresses` |
| `holders` | Top holders of a token on a given day (EVM and Tron) | `tokenAddress` |

#### Supported blockchains

Ethereum, BNB Smart Chain (BSC), Base, Arbitrum, Optimism, Polygon, Robinhood Chain, Arc, Solana and Tron.

### Example input

Hourly candles for WETH over the last day:

```json
{
  "mode": "ohlcv",
  "chain": "eth",
  "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
  "intervalSeconds": "3600",
  "hoursAgo": 24,
  "maxResults": 24
}
```

Whale trades above $50,000 on Solana in the last 6 hours:

```json
{
  "mode": "whaleTrades",
  "chain": "solana",
  "minUsd": 50000,
  "hoursAgo": 6,
  "maxResults": 100
}
```

Balances of two wallets on BSC:

```json
{
  "mode": "balances",
  "chain": "bsc",
  "walletAddresses": ["0x21a31ee1afc51d94c2efccaa2092ad1028285549", "0x8894e0a0c962cb723c1976a4421c95949be2d4e3"]
}
```

### Output

One dataset row per record. Nested API objects are flattened with underscores, so a trade row carries `Block_Time`, `Side`, `PriceInUsd`, `AmountsInUsd_Quote`, `Trader_Address`, `TransactionHeader_Hash`, `Pair_Token_Symbol` and `Pair_Market_Protocol`. Every row also carries `mode` and `chain`.

Use `AmountsInUsd_Quote` for the USD value of a trade. The base-side USD figure uses a smoothed reference price and drifts on fast-moving tokens.

### Time windows

- `hoursAgo` sets a window ending now (default 24 hours). `since` and `until` set an absolute UTC window and override it.
- The price and trade modes read the Trading cube, which keeps about 30 days.
- `transfers` reads the chain's realtime window, which keeps a few days on EVM and Tron and hours on Solana.
- `balances` is a current snapshot. `holders` is a daily snapshot; it defaults to yesterday.

### Pricing

Pay per event: a small fee for each row written to the dataset. A run that returns nothing costs only the Actor start fee. See the **Pricing** tab for the current price per row. Set `maxResults` to cap what a run can cost.

### Use with AI agents

Through the [Apify MCP server](https://mcp.apify.com), an agent calls this Actor with `call-actor`, then reads the rows with `get-dataset-items`. The agent picks `mode`, `chain` and the address from the question. Example questions:

- "What is WETH worth right now, and what was its hourly chart yesterday?"
- "Show the biggest Solana swaps above $100k in the last hour."
- "Which wallets traded PEPE the most this week?"
- "What does this wallet hold on BSC, and what did it send today?"

### Limits and notes

- Prices and trades older than about 30 days are not in this version.
- `balances` and `holders` are not available on Solana.
- EVM addresses are lowercased before they reach the API, as the Trading cube requires.
- Up to 100 wallet addresses per run and up to 10,000 rows per run.

### Need more?

The full [Bitquery API](https://docs.bitquery.io/?utm_source=apify\&utm_medium=actor\&utm_campaign=crypto-data-api) covers raw transactions, events, calls, liquidity, Polymarket, Hyperliquid and historical archives. [Create a free account](https://account.bitquery.io/auth/signup?utm_source=apify\&utm_medium=actor\&utm_campaign=crypto-data-api) to query it directly.

# Actor input Schema

## `mode` (type: `string`):

price: latest price of one token from its top market. ohlcv: candles for a token (or one pool) with USD volume and market cap, about 30 days back. trades: latest DEX swaps of a token or pool. traderTrades: swaps by one wallet. topTraders: wallets ranked by USD volume on a token or chain. whaleTrades: swaps above a USD size. transfers: token transfers of wallets or a token. balances: what wallets hold now (EVM, Tron). holders: top holders of a token on a day (EVM, Tron).

## `chain` (type: `string`):

The blockchain to read. matic is Polygon.

## `tokenAddress` (type: `string`):

Token contract (EVM, Tron) or mint address (Solana). Required for price, ohlcv, trades and holders; optional filter elsewhere. Examples: 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 (WETH), So11111111111111111111111111111111111111112 (wrapped SOL).

## `quoteTokenAddress` (type: `string`):

trades only: keep swaps against this counter token (for example USDC) so you read one pair.

## `poolAddress` (type: `string`):

ohlcv and trades: read one pool (DEX pair contract on EVM and Tron, market address on Solana) instead of the whole token.

## `traderAddress` (type: `string`):

traderTrades only: the wallet whose swaps to read.

## `walletAddresses` (type: `array`):

transfers and balances: the wallets to read, up to 100. One per line.

## `minUsd` (type: `integer`):

whaleTrades only: keep swaps worth at least this many US dollars.

## `intervalSeconds` (type: `string`):

ohlcv only: bar duration in seconds. Candles above one hour are not stored; roll hourly candles up yourself.

## `hoursAgo` (type: `integer`):

Time window ending now, used when since and until are empty. The Trading cubes keep about 30 days; chain-level transfers keep a few days.

## `since` (type: `string`):

Read from this UTC date or time, for example 2026-10-01 or 2026-10-01T12:00:00Z. Overrides hoursAgo.

## `until` (type: `string`):

Read up to this UTC date or time.

## `snapshotDate` (type: `string`):

holders only: the day as YYYY-MM-DD. Defaults to yesterday (UTC).

## `minBalance` (type: `string`):

holders only: keep holders with at least this many tokens, for example 1000000. Use it on large tokens.

## `maxResults` (type: `integer`):

The most rows to return. You pay only for rows written.

## Actor input object example

```json
{
  "mode": "price",
  "chain": "eth",
  "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
  "walletAddresses": [],
  "minUsd": 10000,
  "intervalSeconds": "3600",
  "hoursAgo": 24,
  "maxResults": 100
}
```

# Actor output Schema

## `rows` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
};

// Run the Actor and wait for it to finish
const run = await client.actor("bitquery_marketing/crypto-data-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2" }

# Run the Actor and wait for it to finish
run = client.actor("bitquery_marketing/crypto-data-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
}' |
apify call bitquery_marketing/crypto-data-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bitquery_marketing/crypto-data-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2zSoWJInkuhW1ezWu/builds/G1OHIC1xR1k04ca5n/openapi.json
