Skip to main content

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

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.

Metadata

Release files for abelfeed-coinglass 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for abelfeed-coinglass 0.1.2
File Size Uploaded Provenance Actions
abelfeed_coinglass-0.1.2.tar.gz 5.2 kB With provenance Details for abelfeed_coinglass-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for abelfeed-coinglass 0.1.2
File Interpreter ABI Platform Actions
abelfeed_coinglass-0.1.2-py3-none-any.whl Python 3 none any Details for abelfeed_coinglass-0.1.2-py3-none-any.whl

Total release size: 10.6 kB

Release files / abelfeed_coinglass-0.1.2.tar.gz

Download URL abelfeed_coinglass-0.1.2.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
21475fb02fab470e61ca407b53c5370931949370fc0cc195a7cdf747400803e8
BLAKE2b-256 checksum
How to use checksums
f442fb377e0264a9714b01a5802d85626d230d8419386dff4d1dbdb4c83ce6ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / abelfeed_coinglass-0.1.2-py3-none-any.whl

Download URL abelfeed_coinglass-0.1.2-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5014ec8d40960e8e577cde6669b8ccc345cb3034e16c49a3cc442556a285ed42
BLAKE2b-256 checksum
How to use checksums
6647797430a19974f695f387f2ece642f833692df252526254ed3e2db83d8462
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for abelfeed-coinglass 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for abelfeed_coinglass-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page