# Crypto Market Data Tracker (`technicaldost/crypto-market-data-tracker`) Actor

Snapshot live crypto market data for top coins or a custom list: price, market cap, volume, 1h/24h/7d changes, ATH and supply. Powered by CoinGecko.

- **URL**: https://apify.com/technicaldost/crypto-market-data-tracker.md
- **Developed by:** [Technical Dost Solutions](https://apify.com/technicaldost) (community)
- **Categories:** Developer tools, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Crypto Market Data Tracker

Capture a clean, current cryptocurrency market snapshot for finance dashboards, recurring data pipelines, portfolio research, and market monitoring. The Actor uses CoinGecko's free public API, needs no API key, and writes one dataset record per coin.

### What it does

- Fetches the top cryptocurrencies by market capitalization, or a custom list of CoinGecko coin IDs.
- Captures live price, market cap, 24-hour volume, supply, high/low, all-time high, and 1-hour/24-hour/7-day changes.
- Supports quote currencies such as `usd`, `eur`, and `gbp`.
- Retries transient failures and waits 15 seconds before retrying an HTTP 429 response.
- Charges the pay-per-event `result` event once for each stored coin when monetization is configured.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `coinIds` | string array | `[]` | CoinGecko IDs such as `bitcoin` and `ethereum`. Empty means top coins by market cap. |
| `vsCurrency` | string | `usd` | Quote currency for price and market values. |
| `maxCoins` | integer | `100` | Maximum results, from 1 to 250. |

Default input:

```json
{
  "coinIds": [],
  "vsCurrency": "usd",
  "maxCoins": 100
}
```

Custom-list example:

```json
{
  "coinIds": ["bitcoin", "ethereum", "solana"],
  "vsCurrency": "usd",
  "maxCoins": 3
}
```

### Output

Each dataset item has this shape:

```json
{
  "id": "bitcoin",
  "symbol": "btc",
  "name": "Bitcoin",
  "priceUsd": 118000,
  "marketCap": 2340000000000,
  "marketCapRank": 1,
  "volume24h": 58000000000,
  "change1hPct": 0.15,
  "change24hPct": 1.9,
  "change7dPct": 4.2,
  "high24h": 119000,
  "low24h": 115000,
  "circulatingSupply": 19890000,
  "ath": 122000,
  "athChangePct": -3.3,
  "lastUpdated": "2026-01-01T12:00:00.000Z",
  "vsCurrency": "usd"
}
```

`priceUsd` contains CoinGecko's `current_price` in the selected `vsCurrency`; the field name is kept stable so downstream schemas do not change between runs. Market cap, volume, high/low, and ATH values also use the selected quote currency.

### Data source and cost

This Actor calls the public CoinGecko `/api/v3/coins/markets` endpoint directly with native `fetch`. It uses no paid proxy and requires no API key.

# Actor input Schema

## `coinIds` (type: `array`):

CoinGecko IDs such as bitcoin and ethereum. Leave empty to fetch the top coins by market cap.

## `vsCurrency` (type: `string`):

Currency used for prices and market values, such as usd, eur, or gbp.

## `maxCoins` (type: `integer`):

Maximum number of market records to return.

## Actor input object example

```json
{
  "coinIds": [],
  "vsCurrency": "usd",
  "maxCoins": 100
}
```

# 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("technicaldost/crypto-market-data-tracker").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("technicaldost/crypto-market-data-tracker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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 technicaldost/crypto-market-data-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=technicaldost/crypto-market-data-tracker",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/tM8vaxKCG0wB9IiPh/builds/NvzSc6UrZza2ynlIx/openapi.json
