# Bitcoin Pulse — Price, Funding, Open Interest & Sentiment (`scrapeai/bitcoin-pulse`) Actor

One live Bitcoin signal snapshot: price momentum, funding rate, open interest and the Fear & Greed index, distilled into a 0-100 pulse score with plain-language signals.

- **URL**: https://apify.com/scrapeai/bitcoin-pulse.md
- **Developed by:** [ScrapeAI](https://apify.com/scrapeai) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Pulse: direct public market APIs

Collects current USDT linear-market readings from Bybit, independent USD spot prices from Coinbase, Bitcoin sentiment from Alternative.me and Bitcoin network-fee context from mempool.space. The Actor runs its own data pipeline. It accepts the legacy actorInput object and retains dataset rows under data for compatibility.

### Input

symbols defaults to BTCUSDT; provide up to fifty USDT symbols. The checked sample explicitly requests ten mature markets. actorInput settings take precedence over equivalent top-level semantic fields. Every supplied outer/nested maxItems and max_results cap applies by minimum; default200. A single requested symbol naturally produces fewer rows than a ten-symbol request.

include_snapshots defaults true. only_signals skips snapshots and returns only conditions that actually fire; a quiet market can legitimately have zero signal rows. Snapshots are emitted first up to the cap, then separate signal rows. Each snapshot includes its observed active_signals even if the output cap leaves no room for separate signal rows. localMode=true is rejected.

Thresholds: momentum_up_threshold (default 1 percent absolute h1 return), funding_hot_threshold (0.0003 per normalized eight hours), funding_cold_threshold (-0.0001), volume_spike_threshold (2 times), open_interest_move_pct (5 percent since the previous reading). The configured source request has bounded timeouts and no automatic retry on provider access failures.

### Metrics and units

price_usdt, funding, open interest, returns and positioning use Bybit. price_usd is an independent Coinbase USD quote, never a relabelled USDT amount. Their timestamps/providers remain separate. h1 return is 100 times lastPrice/prevPrice1h minus one; h24 return converts the source decimal return to percent. long_short_ratio is the ratio of source long-account share to short-account share, not a position-volume ratio. OI retains the provider's both-side size and base-asset unit; its value field is explicitly USDT.

Funding is reported in its actual source interval. funding_rate_8h is an explicitly derived linear normalization (rate times 8/intervalHours). Hourly volume uses the last completed candle and the mean of its preceding 24 completed hourly candles; the unfinished candle is excluded. An asset without sufficient real history is reported as unavailable rather than assigned zero metrics.

The Fear & Greed index is Bitcoin-specific: fear_greed_scope makes that explicit for every asset. Its score contribution and sentiment-based signals apply only to BTC. Alternative.me attribution/source URL and source publication time are included. bitcoin_network_context is likewise Bitcoin context, not an altcoin's network fee. Unknown optional fields are omitted, while source zero and derived zero values are preserved.

### Explicit score model

scrapeai-pulse-v1 is a documented descriptive heuristic. Components are: h1 return times 10 clamped to \[-35,35]; h24 return times 1.5 clamped to \[-20,20]; negative normalized funding times 50000 clamped to \[-20,20]; (1-long_short_ratio) times 10 clamped to \[-15,15]; for BTC only, (50-fear_greed) times 0.2 clamped to \[-10,10]. Their sum is clamped to \[-100,100] and rounded to two decimals. Regimes are bullish >=40, leaning_bullish >=15, bearish <=-40, leaning_bearish <=-15, otherwise neutral. score_components exposes the calculation; this is not a calibrated forecast.

### Named conditions and real history

momentum_up/down use the configured absolute h1 threshold. overheated_longs requires funding at/above the hot threshold and account ratio >1. short_squeeze_setup requires funding at/below the cold threshold and ratio <1. volume_spike uses the completed-hour volume ratio. BTC capitulation requires index <=20 with a negative day; BTC euphoria requires index >=80 with a positive day. Every signal includes the actual observed values and rule description.

A dedicated named key-value store, scoped by this Actor ID (local during local runs), preserves the previous real funding/OI reading. funding_flip_positive/negative require a genuine sign crossing. leverage_building/flush require the configured OI change. Previous readings older than 24 hours are not used. No historical baseline or change value is invented on the first run. has_previous_reading and previous_reading_time make the available history explicit.

### Run and provenance

Use apify run --input-file input.json. Inspect the default Dataset and RUN_SUMMARY for source errors, requested/complete markets and history coverage. Each snapshot retains source_raw ticker/ratio/candle inputs and provider URLs/times. Snapshots and signals have stable typed IDs. Private exchange accounts and trade/order endpoints are never used. Platform compute/storage charges depend on usage.

Provider references: https://bybit-exchange.github.io/docs/v5/market/tickers , https://bybit-exchange.github.io/docs/v5/market/long-short-ratio , https://bybit-exchange.github.io/docs/v5/market/kline , https://docs.cdp.coinbase.com/coinbase-business/track-apis/prices , https://alternative.me/crypto/fear-and-greed-index/#api .

### Configured transport

proxyConfiguration applies to Bybit public market endpoints in both local and cloud runs. The default/sample uses one stable India residential session; USD/sentiment/network providers use their direct public endpoints. Custom proxies or an explicitly disabled proxy configuration are supported. TLS validation stays enabled and no browser fingerprint/cookies/challenge solver is used. Proxy usage is charged according to the account plan. RUN_SUMMARY records whether the derivatives proxy was configured, without exposing proxy credentials.

### Current version and evidence

The native package updates the existing1.1 version. The old1.0.3 production sample does not establish behavior of the formerly deployed1.1.2 source. New local and production receipts must match the native package bytes. This read-only analysis never submits an exchange order or payment. The score is a transparent heuristic, not a forecast.

Each public API response is retained as SOURCE\_### with the exact URL, status and observation time. Dataset source_records connects ticker, account-ratio, closed candles, sentiment, optional network fees and independent USD spot evidence. All25 hourly candles used for the volume calculation must be contiguous and completed, rather than duplicated or still-open bars. An incomplete requested symbol set fails explicitly instead of silently dropping a requested market. Optional missing Coinbase/network context remains absent with diagnostics.

History now uses unique per-run immutable OBS records; concurrent runs cannot overwrite one shared LAST pointer. Only completed observations available before the current run started are considered. A valid actual legacy LAST reading may be read for migration, but is never rewritten. History scanning is bounded to1000 observations in the prior24-hour start-key window. If that scan is truncated, history is explicitly unavailable and the snapshot does not invent prior metrics. This is not a transactional exactly-once subscription service or proof that every concurrent scheduling pattern has been tested.

requestTimeoutSecs bounds each provider request. Bybit starts are serialized with at least500ms after the previous response, and one configured residentialIndia session is kept for the run. Source denial/rate limiting stops requests to that source without retry or identity change. The input can explicitly disable the configured proxy; it does not silently fall back. Missing optional values are omitted and genuine zeros/false remain.

# Actor input Schema

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

USDT linear symbols; default BTCUSDT. Supports up to fifty supplied symbols.

## `actorInput` (type: `object`):

Optional compatible nested settings; these override equivalent top-level semantic settings.

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

Maximum snapshot plus signal records; snapshots are emitted first. Default 200.

## `include_snapshots` (type: `boolean`):

Include one live full-metrics reading for each available requested symbol.

## `only_signals` (type: `boolean`):

Skip snapshots. A quiet market can legitimately return no signal rows.

## `localMode` (type: `boolean`):

True is rejected. Only real public API data is supported.

## `momentum_up_threshold` (type: `number`):

Rule threshold; units and formula are documented in README. Legacy actorInput settings take precedence.

## `funding_hot_threshold` (type: `number`):

Rule threshold; units and formula are documented in README. Legacy actorInput settings take precedence.

## `funding_cold_threshold` (type: `number`):

Rule threshold; units and formula are documented in README. Legacy actorInput settings take precedence.

## `volume_spike_threshold` (type: `number`):

Rule threshold; units and formula are documented in README. Legacy actorInput settings take precedence.

## `open_interest_move_pct` (type: `number`):

Rule threshold; units and formula are documented in README. Legacy actorInput settings take precedence.

## `proxyConfiguration` (type: `object`):

One fixed configured route for Bybit public endpoints; the same input applies locally/cloud. Other public providers are direct. No route/identity fallback after a source denial.

## `requestTimeoutSecs` (type: `integer`):

Per documented provider request; no automatic retry or alternate source route.

## Actor input object example

```json
{
  "include_snapshots": true,
  "only_signals": false,
  "localMode": false,
  "momentum_up_threshold": 1,
  "funding_hot_threshold": 0.0003,
  "funding_cold_threshold": -0.0001,
  "volume_spike_threshold": 2,
  "open_interest_move_pct": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IN"
  },
  "requestTimeoutSecs": 25
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (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("scrapeai/bitcoin-pulse").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("scrapeai/bitcoin-pulse").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 scrapeai/bitcoin-pulse --silent --output-dataset

```

## MCP server setup

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

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/A9eV31CawveExOtUR/builds/7fP0JvXPkvRJRaZf7/openapi.json
