# Bitcoin Market Share Monitor (`grasstech/bitcoin-market-share-monitor`) Actor

Get Bitcoin market-share history, market capitalization, price, and volume as structured JSON. One request per run, with documented input and output.

- **URL**: https://apify.com/grasstech/bitcoin-market-share-monitor.md
- **Developed by:** [Grass Tech](https://apify.com/grasstech) (community)
- **Categories:** Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.05 / bitcoin market share monitor

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

## Bitcoin Market Share Monitor

Get Bitcoin market-share history, market capitalization, price, and volume series in one structured JSON result. Use it to prepare dashboards, compare historical periods, and export a reproducible dataset for your own analysis.

### What you receive

- `marketCapRateList`: Bitcoin market-share values in the original numeric scale.
- `marketCapList`: market-capitalization observations.
- `priceList`: price observations aligned with the supplied timeline.
- `timeList`: Unix timestamps in milliseconds.
- `volList`: volume observations; historical entries can be `null`.

Data coverage and update frequency vary. This is a point-in-time request, not a live stream or a guarantee of current market prices. Keep the supplied numeric units; validate them before applying conversions or making comparisons.

### Input

`symbol` is a required string. Use the verified Bitcoin input:

```json
{"symbol":"BTC"}
```

This listing is validated for `BTC`. Other symbols are not covered by the published example. Each run performs one data request; it does not place trades or require access to a wallet.

### Output

The result is available in the default dataset and in the default key-value store under `OUTPUT`. A successful response contains `code`, `success`, and `data` with the series above.

Example excerpt from a historical result (two observations, not current prices):

```json
{
  "code": "1",
  "success": true,
  "data": {
    "marketCapList": [1592233712, 1254881360],
    "marketCapRateList": [0.9439, 0.9408],
    "priceList": [135.3, 103.43],
    "timeList": [1367280000000, 1367452800000],
    "volList": [null, null]
  }
}
```

The complete result contains the available observations, not just this excerpt. Missing values remain `null`; they are not converted to zero. Check `success` and the data content before using a result. An error or unavailable dataset is not a market observation.

### Pricing and usage

One request event is priced at **$0.05 per run**. Review the current pricing panel before starting; this is a per-request price, not a price per timestamp. Set a run budget that covers the listed event. Inspect the run status and output before retrying, because a new run may incur another charge.

### Limitations

- Historical coverage and available values may change over time.
- The input example covers Bitcoin only; no exchange, interval, or date-range filter is exposed by this Actor.
- Timestamp arrays and null values are preserved as delivered. Align series by their documented timestamps in your analysis.
- Data is informational and is not a recommendation to buy, sell, or trade.

### Support

For a reproducible problem, open an issue on this Actor with the input and Apify Run ID. Do not include API tokens or private credentials.

# Actor input Schema

## `symbol` (type: `string`):

Request parameter symbol.

## Actor input object example

```json
{
  "symbol": "BTC"
}
```

# Actor output Schema

## `result` (type: `string`):

The complete response for this data query.

# 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 = {
    "symbol": "BTC"
};

// Run the Actor and wait for it to finish
const run = await client.actor("grasstech/bitcoin-market-share-monitor").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 = { "symbol": "BTC" }

# Run the Actor and wait for it to finish
run = client.actor("grasstech/bitcoin-market-share-monitor").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 '{
  "symbol": "BTC"
}' |
apify call grasstech/bitcoin-market-share-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,grasstech/bitcoin-market-share-monitor"
        }
    }
}
```

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/5udyk8MJqAX3oiYIS/builds/l6a4gsGxuGHohBJ5M/openapi.json
