# Crypto OHLCV & Trades: Candles and Individual Trades (`feeddlabs/crypto-ohlcv-trades-data`) Actor

Export crypto candles and available individual trades for supported spot and perpetual markets. History varies by exchange, market, and interval. Free demo: fixed sample only; paid Apify plan required for custom data. API platform usage is billed separately by Apify.

- **URL**: https://apify.com/feeddlabs/crypto-ohlcv-trades-data.md
- **Developed by:** [Feedd Labs](https://apify.com/feeddlabs) (community)
- **Categories:** AI
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.16 / 1,000 candles

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 OHLCV & Trades: Candles and Individual Trades

**Free demo:** runs and API requests return a fixed sample of real rows.
Your accounts, queries, dates, and filters are not applied. Repeating a run
returns the same sample; a smaller row limit returns its prefix. Upgrade
your Apify plan to request your own data. Demo rows have no result charge;
the listed Actor start charge still applies.

OHLCV candles from 1 second to 1 day with buy and sell volume, plus available
individual trades, for spot and perpetual markets on Binance, Bybit, OKX, and
Hyperliquid. Historical coverage varies by exchange and market.

**$0.20 per 1,000 candles, $0.10 per 1,000 trades.** No exchange API key required. Try the fixed Free demo.

### Why use it

- **Buy and sell volume.** Every candle splits volume into taker buys and
  sells, with the number of trades.
- **1-second candles.** Available for recent history on supported markets.
- **Individual trades.** Tick-level trades with price, size, side, and ID for the
  last 7 days.
- **Six markets.** Binance futures and spot, Bybit futures and spot, OKX, and
  Hyperliquid, all with the same columns.

### Quick start

```json
{ "symbols": ["BTC", "ETH", "SOL"], "interval": "1h", "from": "2026-01-01" }
```

1-minute candles on spot and futures, years back:

```json
{ "symbols": ["BTC"], "exchanges": ["binance", "binance_spot"], "interval": "1m", "from": "2020-01-01", "to": "2020-01-31" }
```

Available trades from the last hour:

```json
{ "symbols": ["ETH"], "data": "trades", "exchanges": ["binance", "hyperliquid"] }
```

### What you get

| Field | What it is |
| --- | --- |
| `symbol`, `exchange`, `market` | Coin, market and pair, e.g. BTC on `binance_spot`, `BTCUSDT` |
| `time`, `timestamp` | Candle start or trade time (UTC) |
| `open`, `high`, `low`, `close` | Candle prices |
| `volume`, `buy_volume`, `sell_volume` | Total, taker buy, and taker sell volume |
| `trades` | Number of trades in the candle |
| `price`, `quantity`, `value`, `side`, `trade_id` | Trade rows |

#### Example

```json
{
  "type": "candle",
  "symbol": "BTC",
  "exchange": "binance",
  "market": "BTCUSDT",
  "interval": "1m",
  "time": "2026-10-10T00:00:00.000Z",
  "open": 82578.5,
  "high": 82593.8,
  "low": 82564.9,
  "close": 82565.2,
  "volume": 54.842,
  "buy_volume": 11.994,
  "sell_volume": 42.848,
  "trades": 1252
}
```

Download as CSV, Excel, or JSON.

### Use it as an API

Call it like a REST API, with no runs to manage: `/candles` and `/trades`
answer in JSON with the same rows and prices as a run. Try them in the
**Endpoints** tab, or copy the Actor's URL from there:

```bash
curl -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  "https://ACTOR_URL/candles?symbol=BTC&exchange=binance&interval=1m"
```

### Pricing

Prices below are result fees. The **Pricing** tab also lists an Actor start
charge, including for empty runs, demo runs, and problem reports. Demo rows have
no result charge. Custom data requires a paid Apify plan. Its subscription
includes usage credit; it is not a separate Feedd subscription. API calls
require an Apify token.

$0.20 per 1,000 candles and $0.10 per 1,000 trades: 44,640 returned 1-minute
candles cost $8.928 in result fees. Raise **Maximum rows** above the 10,000
default for an export of that size. On Apify's Business plan, $0.16 and
$0.08. Paid plans return available closed candles; collection delays can
vary. A run stops at 10,000 rows unless you raise **Maximum rows**.

Apify Free plan: fixed sample data only. Runs and API calls return the same
sample. Upgrade for custom data at the result rates above.

### FAQ

**Which coins?** Supported pairs include BTC and ETH. Availability varies
by market and listing date.

**How far back?** Binance spot to 2017 and Binance futures to 2019, from
1-minute candles up. Bybit, OKX, and Hyperliquid from 2026. 1-second candles
cover the last 30 days, trades the last 7.

**What about open interest, funding, and liquidations?** That's our
[Crypto Derivatives Data](https://apify.com/feeddlabs/crypto-derivatives-data).

**Can AI agents use it?** Yes. Add
`https://mcp.apify.com?tools=feeddlabs/crypto-ohlcv-trades-data` to Claude,
ChatGPT, or Cursor and ask, for example, "Get SOL's 1-minute candles for
yesterday on Binance."

**Something not right?** Write it in **Report a problem** and run the Actor.
The run only submits your report, with no result charge. The listed Actor
start charge still applies. AI agents can report problems too.

### More from Feedd Labs

| Actor | What it does |
| --- | --- |
| [X (Twitter) Real-Time Monitor](https://apify.com/feeddlabs/x-twitter-user-tracker) | Posts and account changes delivered by WebSocket or webhook |
| [X (Twitter) Search Scraper](https://apify.com/feeddlabs/x-twitter-search) | Tweets and replies by keyword, account and date |
| [X (Twitter) Followers Scraper](https://apify.com/feeddlabs/x-twitter-followers-scraper) | Followers, following and profiles of public accounts |
| [X (Twitter) Account Watch](https://apify.com/feeddlabs/x-account-changes) | Who an account follows or unfollows, and its profile changes |
| [X (Twitter) Ads Library](https://apify.com/feeddlabs/x-ads-library) | Collected promoted ads and brand creative |
| [Mainstream News Live & Archive](https://apify.com/feeddlabs/mainstream-news-archive) | Collected news articles from major outlets |
| [US Stock Market Data](https://apify.com/feeddlabs/us-stock-market-data) | 1-minute stock history since 2016, futures and financial statements |
| [Crypto Derivatives Data](https://apify.com/feeddlabs/crypto-derivatives-data) | Open interest, funding and liquidations on 4 exchanges |
| [Crypto OHLCV & Trades](https://apify.com/feeddlabs/crypto-ohlcv-trades-data) | Candles from 1 second to 1 day and individual trades |
| [Polymarket Data](https://apify.com/feeddlabs/polymarket-odds-history) | Available odds history, volume and open interest by event |

# Actor input Schema

## `symbols` (type: `array`):

Coins such as BTC, ETH, SOL or PEPE (BTCUSDT works too). Up to 50 per run.

## `data` (type: `string`):

Candles: one row per interval. Trades: one row per trade (last 7 days).

## `exchanges` (type: `array`):

Pick one or more. Default: Binance futures.

## `interval` (type: `string`):

Candles mode: one row per interval.

## `from` (type: `string`):

First day (YYYY-MM-DD). Default: 30 days of hourly candles; the last hour of trades or 1-second candles.

## `to` (type: `string`):

Last day, included (YYYY-MM-DD). Default: now.

## `maxItems` (type: `integer`):

Stop after this many rows in total. Total across the whole run, not per query or account. On Free, this can only shorten the fixed sample.

## `reportProblem` (type: `string`):

Something wrong or missing? Write it here and run: we get your message, the run does nothing else, and it's free. AI agents can use this too.

## Actor input object example

```json
{
  "symbols": [
    "BTC",
    "ETH"
  ],
  "data": "candles",
  "exchanges": [
    "binance"
  ],
  "interval": "1h",
  "maxItems": 10000
}
```

# Actor output Schema

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

Dataset rows: candles or trades.

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

The OUTPUT record: rows per coin and market, any gaps, or an error code.

# 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 = {
    "symbols": [
        "BTC",
        "ETH"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("feeddlabs/crypto-ohlcv-trades-data").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 = { "symbols": [
        "BTC",
        "ETH",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("feeddlabs/crypto-ohlcv-trades-data").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 '{
  "symbols": [
    "BTC",
    "ETH"
  ]
}' |
apify call feeddlabs/crypto-ohlcv-trades-data --silent --output-dataset

```

## MCP server setup

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

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/pyfDFBnax1HWfn6a7/builds/o6cGms3Z6cReyddO1/openapi.json
