Skip to main content
Glama
io.github.abelfeed/coinglass-derivatives

io.github.abelfeed/coinglass-derivatives

CoinGlass Derivatives API (Python SDK, CLI & MCP)

CI PyPI Python License: MIT

Open-source Python client, CLI (coinglass-fetch), and Model Context Protocol (MCP) manifest for querying CoinGlass public crypto derivatives and Bitcoin ETF datasets.

Supported Datasets

futures_markets · funding_rates · open_interest · liquidations · long_short_ratio · spot_rsi · btc_etf_list · btc_etf_history · btc_etf_inflows · global_stats

Related MCP server: coinglass-mcp

Installation

pip install abelfeed-coinglass
export APIFY_TOKEN="your_apify_token"

Python Usage

from abelfeed_coinglass import CoinGlassClient

client = CoinGlassClient()
rows = client.fetch(
    dataset="open_interest",
    symbols=["BTC", "ETH", "SOL"],
    max_results=50,
)
print(rows[0])

CLI Usage

# Funding rates across major perpetual exchanges
coinglass-fetch --dataset funding_rates --max-results 50

# BTC, ETH, and SOL liquidations
coinglass-fetch --dataset liquidations --symbols BTC,ETH,SOL --time-type 1 --max-results 50

MCP Server (Claude Desktop / Cursor / VS Code)

Registered on the Official MCP Registry as io.github.abelfeed/coinglass-derivatives (see server.json):

{
  "mcpServers": {
    "abelfeed-coinglass": {
      "url": "https://mcp.apify.com/?tools=abelfeed/coinglass-derivatives-fast-api",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}

Development & Testing

pip install -e . pytest
pytest -v

Hosted Backend & Security

This package is a thin MIT-licensed wrapper around the hosted Apify Actor abelfeed/coinglass-derivatives-fast-api. See SECURITY.md for vulnerability disclosure and OIDC Trusted Publishing details.

License

MIT - see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Provides AI agents access to cryptocurrency derivatives analytics through 22 unified tools covering 80+ CoinGlass API endpoints. Enables analysis of open interest, funding rates, liquidations, whale positions, order book data, and market sentiment indicators with plan-aware feature gating.
      24
      2
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides access to CoinGlass cryptocurrency derivatives data, including funding rates, open interest, and liquidation metrics. It enables LLMs to analyze real-time and historical market structure context through a standardized toolset.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides futures market analytics (Open Interest, Liquidations, Long/Short Ratio, Funding Rates) via the CoinGlass API v4, enabling natural language queries for crypto derivatives data.
      7
      18 npm
      13
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables Claude to access real-time CoinGlass market data for Binance and MEXC, including open interest, funding rates, CVD/taker volume, long-short ratios, and liquidations.
      -