# CoinGlass Liquidation Max Pain API (`api_merge/coinglass-liquidation-max-pain`) Actor

Fetch CoinGlass liquidation max-pain prices for major cryptocurrencies. Select a time range to get clean JSON rows with current price, long max-pain liquidation level and price, and short max-pain liquidation level and price.

- **URL**: https://apify.com/api\_merge/coinglass-liquidation-max-pain.md
- **Developed by:** [Api Merge](https://apify.com/api_merge) (community)
- **Categories:** Automation, Integrations
- **Stats:** 10 total users, 5 monthly users, 96.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.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

### What does CoinGlass Liquidation Max Pain do?

CoinGlass Liquidation Max Pain fetches liquidation max-pain prices for major cryptocurrencies. Select a time range to get clean JSON rows showing each symbol's current price plus long and short max-pain liquidation levels and prices.

Liquidation max-pain prices can help identify potential pressure zones between the current market price and nearby liquidation price levels.

### Why use CoinGlass Liquidation Max Pain?

Use this Actor when you need structured liquidation max-pain data for analysis, dashboards, alerts, or automated market monitoring.

- Monitor long and short liquidation pressure zones
- Compare max-pain liquidation levels across major symbols
- Build repeatable market snapshots with Apify schedules
- Export the dataset as JSON, CSV, Excel, HTML, or RSS

### How to use CoinGlass Liquidation Max Pain

1. Open the Actor on Apify.
2. Select a `range`.
3. Click **Start**.
4. Read the output from the default dataset.

### Input

The Actor accepts one required input.

| Field | Required | Default | Description |
| --- | --- | --- | --- |
| `range` | Yes | `24h` | Time range for liquidation max-pain data. Supported values: `12h`, `24h`, `48h`, `3d`, `7d`, `14d`, `30d`. |

### Input Example

```json
{
    "range": "24h"
}
```

### Output

The Actor writes one dataset item with run metadata and a `data` array containing the mapped liquidation max-pain rows.

```json
{
    "success": true,
    "message": "Liquidation max pain data fetched successfully.",
    "range": "24h",
    "data": [
        {
            "symbol": "BTC", // Cryptocurrency symbol
            "price": 110625.1, // Symbol price
            "long_max_pain_liq_level": 75677278.26, // Long max pain liquidation level
            "long_max_pain_liq_price": 113046.71, // Long max pain liquidation price
            "short_max_pain_liq_level": 44617473.19, // Short max pain liquidation level
            "short_max_pain_liq_price": 109748.37 // Short max pain liquidation price
        }
    ]
}
```

### Data Table

| Field | Description |
| --- | --- |
| `success` | `true` when the Actor completed cleanly, including free-limit notifications. |
| `message` | Human-readable result or warning message. |
| `range` | Time range used for the run. |
| `data` | Array of liquidation max-pain rows. |
| `data.symbol` | Cryptocurrency symbol. |
| `data.price` | Current symbol price. |
| `data.long_max_pain_liq_level` | Long max pain liquidation level. |
| `data.long_max_pain_liq_price` | Long max pain liquidation price. |
| `data.short_max_pain_liq_level` | Short max pain liquidation level. |
| `data.short_max_pain_liq_price` | Short max pain liquidation price. |

### How much does it cost to scrape CoinGlass liquidation max pain data?

The Actor is lightweight and designed for quick market snapshots. Free Apify plan users are limited to 5 runs per UTC day by this Actor. When the daily limit is reached, the Actor writes a warning item to the dataset.

### Tips and advanced options

- Use `range: "24h"` for the default one-day view.
- Use longer ranges such as `7d`, `14d`, or `30d` for wider liquidation pressure snapshots.
- Schedule the Actor hourly or daily to create market time series snapshots.
- Download the dataset in JSON, CSV, Excel, HTML, or RSS depending on your workflow.

# Actor input Schema

## `range` (type: `string`):

Select the time range for liquidation max pain levels.

## Actor input object example

```json
{
  "range": "24h"
}
```

# Actor output Schema

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

Dataset items with liquidation max pain data or a free-limit warning.

# 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 = {
    "range": "24h"
};

// Run the Actor and wait for it to finish
const run = await client.actor("api_merge/coinglass-liquidation-max-pain").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 = { "range": "24h" }

# Run the Actor and wait for it to finish
run = client.actor("api_merge/coinglass-liquidation-max-pain").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 '{
  "range": "24h"
}' |
apify call api_merge/coinglass-liquidation-max-pain --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=api_merge/coinglass-liquidation-max-pain",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/dwqZa69divbvcfdV5/builds/IkfXdPpLh1zAn7V6E/openapi.json
