Metadata-Version: 2.4
Name: abelfeed-coinglass
Version: 0.1.0
Summary: Lightweight Python client & CLI for CoinGlass crypto derivatives data (Funding Rates, Open Interest, Liquidations, Long/Short, Spot RSI, Bitcoin ETFs) via Apify.
License-Expression: MIT
Project-URL: Homepage, https://apify.com/abelfeed/coinglass-derivatives-fast-api
Project-URL: Repository, https://github.com/abelfeed/coinglass-derivatives-api
Keywords: coinglass,crypto,derivatives,funding-rate,open-interest,liquidations,bitcoin-etf,apify,mcp
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: apify-client>=1.8.0
Dynamic: license-file

# CoinGlass Derivatives Fast API — Python Client, CLI & MCP

Lightweight Python client & CLI to extract live **CoinGlass crypto derivatives & Bitcoin ETF data** without headless browsers, manual API subscriptions, or broken scrapers.

Backed by the hosted [`abelfeed/coinglass-derivatives-fast-api`](https://apify.com/abelfeed/coinglass-derivatives-fast-api) Apify Actor (**$2.00–$3.50 / 1,000 rows all-inclusive**, ~1–4s execution, $5/mo free Apify credits to test).

## Supported datasets (10 modes)

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

## Quickstart (Python & CLI)

```bash
pip install abelfeed-coinglass
export APIFY_TOKEN="your_apify_token"   # Free account: https://apify.com/abelfeed/coinglass-derivatives-fast-api
coinglass-fetch --dataset funding_rates --max-results 50
```

```python
from abelfeed_coinglass import CoinGlassClient

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

## Use directly in Claude Desktop, Claude Code, Cursor or VS Code (MCP)

Connect Apify's official hosted MCP server with this Actor preloaded:

```json
{
  "mcpServers": {
    "abelfeed-coinglass": {
      "url": "https://mcp.apify.com/?tools=abelfeed/coinglass-derivatives-fast-api"
    }
  }
}
```
