# Gemini Exchange Market Data Scraper (`mrdoe/gemini-exchange-market-data-scraper`) Actor

Real-time crypto prices, order book depth, recent trades and daily candles from the Gemini exchange, for any tracked trading pair.

- **URL**: https://apify.com/mrdoe/gemini-exchange-market-data-scraper.md
- **Developed by:** [MrDoe](https://apify.com/mrdoe) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

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

![Gemini Exchange Market Data Scraper - live bid/ask/last price, 24-hour stats and order book depth for any trading pair.](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/gemini-exchange-market-data-scraper--1-prices.png)

### What does Gemini Exchange Market Data Scraper do?

Gemini Exchange Market Data Scraper collects real-time cryptocurrency market data from the Gemini exchange for any trading pair you track - current bid/ask/last price, 24-hour open/high/low/close, order book depth, recent executed trades, and daily price candles. Point it at symbols like `btcusd` or `ethusd` and get structured, ready-to-use market data in seconds.

### Why use Gemini Exchange Market Data Scraper?

- Live prices and 24-hour stats for any Gemini-listed trading pair, refreshed on every run.
- Real order book depth (best bids and asks) alongside the price ticker.
- Recent trade history with real trade IDs, prices, sizes and sides.
- Daily OHLC candles for quick historical context, no extra setup.
- One flat, consistent schema across prices, trades and candles - easy to filter and export.

### Who can use this Actor?

- **Traders and analysts:** track live prices and spreads across multiple pairs in one place.
- **Quant and data teams:** build historical price/volume datasets for backtesting.
- **Dashboards and bots:** feed live Gemini market data into your own tools on a schedule.
- **Researchers:** study crypto market depth, trade activity and daily price behavior.

### How to use Gemini Exchange Market Data Scraper

1. Open the Input tab and list the trading pairs you want (e.g. `btcusd`, `ethusd`, `solusd`).
2. Choose which data to include: price ticker (on by default), recent trades, and/or daily candles.
3. Click **Start**.
4. Download your results as JSON, CSV or Excel, or pull them via the API.

### Input

| Field | Type | Description |
|---|---|---|
| `symbols` | array | Trading pairs to track, e.g. `btcusd`. Defaults to `btcusd` and `ethusd`. |
| `includeTicker` | boolean | Current price, 24h stats and order book snapshot. Default: on. |
| `includeTrades` | boolean | Recent executed trades. Default: off. |
| `tradesLimit` | integer | Trades to collect per symbol when enabled. Default: 20. |
| `includeCandles` | boolean | Recent daily OHLC candles. Default: off. |
| `candlesLimit` | integer | Candles to collect per symbol when enabled. Default: 30. |
| `bookDepth` | integer | Order book price levels to include in the ticker row. Default: 5. |
| `maxResults` | integer | Maximum total rows across all symbols and data types. Default: 500. |

### Output

Each row is one of three types (`recordType`): `ticker`, `trade`, or `candle`. Fields not relevant to a row's type are `null`.

```json
{
    "exchange": "Gemini",
    "symbol": "BTCUSD",
    "recordType": "ticker",
    "bid": 77983.99,
    "ask": 77984.0,
    "last": 77937.34,
    "open24h": 77777,
    "high24h": 78730,
    "low24h": 77543.06,
    "close24h": 77937.34,
    "baseVolume24h": 69.95949177,
    "quoteVolume24h": 5452456.7,
    "bids": [{ "price": 77983.99, "amount": 0.21931926 }],
    "asks": [{ "price": 77984.0, "amount": 0.01 }],
    "scrapedAt": "2026-11-02T07:00:00.000Z"
}
```

#### Dataset fields

| Field | Description |
|---|---|
| `exchange`, `symbol`, `recordType` | Present on every row. |
| `bid`, `ask`, `last` | Current price snapshot (ticker rows). |
| `open24h`, `high24h`, `low24h`, `close24h` | 24-hour price stats (ticker rows). |
| `baseVolume24h`, `quoteVolume24h`, `volumeTimestamp` | 24-hour trading volume (ticker rows). |
| `bids`, `asks` | Order book price levels (ticker rows). |
| `tradeId`, `price`, `amount`, `side`, `tradedAt` | Executed trade details (trade rows). |
| `candleTimestamp`, `candleOpen`, `candleHigh`, `candleLow`, `candleClose`, `candleVolume` | Daily candle (candle rows). |
| `scrapedAt` | When this Actor collected the row. |

### API, scheduling and exports

Run this Actor via the Apify API or client libraries, or set up a Schedule in the Apify Console to track prices on a recurring basis (e.g. every few minutes for near-live tracking). Results export directly to JSON, CSV, Excel, or feed into other Actors and integrations.

### Proxy and cost considerations

No proxy is required - Gemini's market data is publicly accessible. Cost scales with the number of symbols and data types you include; keep `symbols`, `tradesLimit` and `candlesLimit` tight for frequent scheduled runs.

### Limitations and FAQ

#### Which trading pairs are supported?

Any pair currently listed on Gemini. Use the exact symbol as shown on Gemini (lowercase, no separator, e.g. `btcusd`).

#### Does this place trades or need an account?

No. This Actor only reads public market data - it never logs in, places orders, or touches any account.

#### Why did I get fewer rows than expected?

A symbol that isn't listed on Gemini, or has no recent trades, will simply return less data for that symbol - nothing is fabricated to fill the gap.

### Responsible use and licensing disclaimer

This Actor reads publicly accessible market data from Gemini. You are responsible for using the collected data in line with Gemini's own terms of service and any applicable laws in your jurisdiction, particularly around financial data use.

# Actor input Schema

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

Real Gemini trading pair symbols to track, e.g. "btcusd", "ethusd". Leave empty to use the defaults below.

## `includeTicker` (type: `boolean`):

Current bid/ask/last price, 24h open/high/low/close, and best book depth for each symbol.

## `includeTrades` (type: `boolean`):

Most recent executed trades for each symbol.

## `tradesLimit` (type: `integer`):

How many of the most recent trades to collect per symbol, when trades are included.

## `includeCandles` (type: `boolean`):

Recent daily open/high/low/close/volume history for each symbol.

## `candlesLimit` (type: `integer`):

How many of the most recent daily candles to collect per symbol, when candles are included.

## `bookDepth` (type: `integer`):

How many price levels of real bids and asks to keep in the ticker row's order book snapshot.

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

Maximum total rows written to the dataset across all symbols and data types.

## Actor input object example

```json
{
  "symbols": [
    "btcusd",
    "ethusd"
  ],
  "includeTicker": true,
  "includeTrades": false,
  "tradesLimit": 20,
  "includeCandles": false,
  "candlesLimit": 30,
  "bookDepth": 5,
  "maxResults": 500
}
```

# Actor output Schema

## `marketData` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("mrdoe/gemini-exchange-market-data-scraper").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("mrdoe/gemini-exchange-market-data-scraper").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 '{}' |
apify call mrdoe/gemini-exchange-market-data-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mrdoe/gemini-exchange-market-data-scraper"
        }
    }
}
```

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/wqlNm6He6a1T2oaLv/builds/ZomlWP8fmnGVviE7N/openapi.json
