# 📊 CoinGlass Crypto Derivatives Data Scraper (`hipersoft/coinglass-scraper`) Actor

Export CoinGlass crypto derivatives data as clean rows: per-coin open interest, funding rates, liquidations and price change. Choose markets, funding or liquidations and download as JSON, CSV or Excel.

- **URL**: https://apify.com/hipersoft/coinglass-scraper.md
- **Developed by:** [hiper soft](https://apify.com/hipersoft) (community)
- **Categories:** Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.0015 / data item scraped

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

## CoinGlass Crypto Derivatives Data Scraper

Export **crypto derivatives market data** — open interest, funding rates, liquidations and long/short price action — as clean, structured rows. Pick the dataset you want, optionally filter to the coins you care about, and download everything as **JSON, CSV or Excel** for research, dashboards, alerts and trading models.

One run gives you a ready-to-use table of the whole crypto futures market: which coins have the most open interest, where funding rates are positive or negative, and where longs and shorts are getting liquidated.

### What you can collect

- **Markets** — one row per coin with **open interest** (USD and coin amount), **latest price**, 24h price change, **average funding rate**, **24h liquidations** (long and short) and 1h/4h/24h open-interest change.
- **Funding rates** — funding rate for each coin broken down **per exchange and per contract**, plus the funding interval and the next funding time.
- **Liquidations** — **24h liquidation totals per coin** in USD, split into long and short, with liquidation order counts.

### Example output (Markets)

```json
{
  "dataType": "markets",
  "symbol": "BTC",
  "price": 79654.5,
  "priceChangePercent24h": 0.54,
  "openInterest": 54064008204.74,
  "openInterestAmount": 678544.17,
  "oiChangePercent24h": -1.93,
  "volume24hUsd": 26542257383.93,
  "fundingRate": 0.000778,
  "liquidations24hUsd": 6784677.73,
  "longLiquidations24hUsd": 5136400.75,
  "shortLiquidations24hUsd": 1648276.98,
  "instrumentId": "BTCUSDT"
}
```

### Example output (Funding rates)

```json
{
  "dataType": "funding",
  "symbol": "BTC",
  "name": "Bitcoin",
  "exchangeName": "OKX",
  "instrumentId": "BTC-USDT-SWAP",
  "fundingRate": -0.00345,
  "fundingIntervalHours": 8,
  "nextFundingTime": "2026-09-05T16:00:00.000Z",
  "marginType": "stablecoin-margined"
}
```

### Input

| Field | Type | Description |
| --- | --- | --- |
| `dataType` | array | Which dataset(s) to collect: `markets`, `funding`, `liquidations`. Select one or more. Default `["markets"]`. |
| `symbols` | array | Optional. Only keep these coin symbols, e.g. `["BTC","ETH","SOL"]`. Leave empty for every coin. |
| `maxItems` | integer | Maximum rows to collect. `0` = no limit. Default `500`. |
| `maxConcurrency` | integer | How many requests to run in parallel. Default `3`. |
| `proxyConfiguration` | object | Proxy settings. Not required by default; enable the Apify Residential proxy if you see reduced results. |

#### Example input

```json
{
  "dataType": ["markets", "liquidations"],
  "symbols": ["BTC", "ETH", "SOL"],
  "maxItems": 500
}
```

### Use cases

- **Track open interest** across the whole market to spot where leverage is building up.
- **Monitor funding rates** per exchange to find funding arbitrage and sentiment extremes.
- **Watch liquidations** to see where long and short positions are being flushed out.
- **Feed dashboards and bots** with a clean, refreshable table of derivatives metrics.
- **Back-test and research** with reproducible snapshots exported to CSV or Excel.

### Exporting your data

Every run stores results in a dataset you can download as **JSON, CSV, Excel, XML or HTML**, or pull straight from the **Apify API**. Schedule the actor to build a historical time series of open interest, funding and liquidations.

### FAQ

**Which coins are covered?**
The `markets` and `liquidations` datasets cover the full list of coins with active perpetual futures — thousands of symbols in a single run. Use `symbols` to narrow the output.

**How fresh is the data?**
Each run fetches the current values at the moment it runs. Schedule regular runs to build your own history.

**Can I get just Bitcoin and Ethereum?**
Yes — set `symbols` to `["BTC","ETH"]` and only those rows are returned.

**What formats can I export?**
JSON, CSV, Excel, XML and HTML, plus the Apify API and integrations.

# Actor input Schema

## `dataType` (type: `array`):

Which dataset(s) to collect. 'markets' returns one row per coin with open interest, price, funding rate and liquidations. 'funding' returns funding rates per coin and exchange. 'liquidations' returns 24h long/short liquidation totals per coin. Select one or more.

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

Optional. Restrict the output to specific coin symbols, e.g. BTC, ETH, SOL. Leave empty to collect every coin.

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

Maximum number of rows to collect (0 = no limit; collect everything returned).

## `maxConcurrency` (type: `integer`):

How many requests to run in parallel. Leave at the default unless you have a reason to change it.

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

Proxy settings. Not required by default. If you experience reduced results, enable the Apify Residential proxy for the most reliable access.

## Actor input object example

```json
{
  "dataType": [
    "markets"
  ],
  "symbols": [
    "BTC",
    "ETH",
    "SOL"
  ],
  "maxItems": 500,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

The results as dataset items.

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

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/coinglass-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 = {
    "dataType": ["markets"],
    "symbols": [
        "BTC",
        "ETH",
        "SOL",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/coinglass-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 '{
  "dataType": [
    "markets"
  ],
  "symbols": [
    "BTC",
    "ETH",
    "SOL"
  ]
}' |
apify call hipersoft/coinglass-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hipersoft/coinglass-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/SsNHOa30V6XYYmzlt/builds/USFg2MDE3fzHt5LjB/openapi.json
