abelfeed-coinglass 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Abelfeed
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,53 @@
1
+ Metadata-Version: 2.4
2
+ Name: abelfeed-coinglass
3
+ Version: 0.1.0
4
+ Summary: Lightweight Python client & CLI for CoinGlass crypto derivatives data (Funding Rates, Open Interest, Liquidations, Long/Short, Spot RSI, Bitcoin ETFs) via Apify.
5
+ License-Expression: MIT
6
+ Project-URL: Homepage, https://apify.com/abelfeed/coinglass-derivatives-fast-api
7
+ Project-URL: Repository, https://github.com/abelfeed/coinglass-derivatives-api
8
+ Keywords: coinglass,crypto,derivatives,funding-rate,open-interest,liquidations,bitcoin-etf,apify,mcp
9
+ Requires-Python: >=3.10
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Requires-Dist: apify-client>=1.8.0
13
+ Dynamic: license-file
14
+
15
+ # CoinGlass Derivatives Fast API — Python Client, CLI & MCP
16
+
17
+ Lightweight Python client & CLI to extract live **CoinGlass crypto derivatives & Bitcoin ETF data** without headless browsers, manual API subscriptions, or broken scrapers.
18
+
19
+ 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).
20
+
21
+ ## Supported datasets (10 modes)
22
+
23
+ `futures_markets` · `funding_rates` · `open_interest` · `liquidations` · `long_short_ratio` · `spot_rsi` · `btc_etf_list` · `btc_etf_history` · `btc_etf_inflows` · `global_stats`
24
+
25
+ ## Quickstart (Python & CLI)
26
+
27
+ ```bash
28
+ pip install abelfeed-coinglass
29
+ export APIFY_TOKEN="your_apify_token" # Free account: https://apify.com/abelfeed/coinglass-derivatives-fast-api
30
+ coinglass-fetch --dataset funding_rates --max-results 50
31
+ ```
32
+
33
+ ```python
34
+ from abelfeed_coinglass import CoinGlassClient
35
+
36
+ cg = CoinGlassClient()
37
+ rows = cg.fetch(dataset="open_interest", symbols=["BTC", "ETH", "SOL"], max_results=50)
38
+ print(rows[0])
39
+ ```
40
+
41
+ ## Use directly in Claude Desktop, Claude Code, Cursor or VS Code (MCP)
42
+
43
+ Connect Apify's official hosted MCP server with this Actor preloaded:
44
+
45
+ ```json
46
+ {
47
+ "mcpServers": {
48
+ "abelfeed-coinglass": {
49
+ "url": "https://mcp.apify.com/?tools=abelfeed/coinglass-derivatives-fast-api"
50
+ }
51
+ }
52
+ }
53
+ ```
@@ -0,0 +1,39 @@
1
+ # CoinGlass Derivatives Fast API — Python Client, CLI & MCP
2
+
3
+ Lightweight Python client & CLI to extract live **CoinGlass crypto derivatives & Bitcoin ETF data** without headless browsers, manual API subscriptions, or broken scrapers.
4
+
5
+ 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).
6
+
7
+ ## Supported datasets (10 modes)
8
+
9
+ `futures_markets` · `funding_rates` · `open_interest` · `liquidations` · `long_short_ratio` · `spot_rsi` · `btc_etf_list` · `btc_etf_history` · `btc_etf_inflows` · `global_stats`
10
+
11
+ ## Quickstart (Python & CLI)
12
+
13
+ ```bash
14
+ pip install abelfeed-coinglass
15
+ export APIFY_TOKEN="your_apify_token" # Free account: https://apify.com/abelfeed/coinglass-derivatives-fast-api
16
+ coinglass-fetch --dataset funding_rates --max-results 50
17
+ ```
18
+
19
+ ```python
20
+ from abelfeed_coinglass import CoinGlassClient
21
+
22
+ cg = CoinGlassClient()
23
+ rows = cg.fetch(dataset="open_interest", symbols=["BTC", "ETH", "SOL"], max_results=50)
24
+ print(rows[0])
25
+ ```
26
+
27
+ ## Use directly in Claude Desktop, Claude Code, Cursor or VS Code (MCP)
28
+
29
+ Connect Apify's official hosted MCP server with this Actor preloaded:
30
+
31
+ ```json
32
+ {
33
+ "mcpServers": {
34
+ "abelfeed-coinglass": {
35
+ "url": "https://mcp.apify.com/?tools=abelfeed/coinglass-derivatives-fast-api"
36
+ }
37
+ }
38
+ }
39
+ ```
@@ -0,0 +1,3 @@
1
+ from .client import CoinGlassClient
2
+
3
+ __all__ = ["CoinGlassClient"]
@@ -0,0 +1,32 @@
1
+ from __future__ import annotations
2
+
3
+ import argparse
4
+ import json
5
+
6
+ from .client import CoinGlassClient
7
+
8
+
9
+ def main() -> None:
10
+ p = argparse.ArgumentParser(description="Fetch CoinGlass derivatives & ETF data via Abelfeed API.")
11
+ p.add_argument(
12
+ "--dataset",
13
+ default="futures_markets",
14
+ help="futures_markets, funding_rates, open_interest, liquidations, long_short_ratio, spot_rsi, btc_etf_list, btc_etf_history, btc_etf_inflows, global_stats",
15
+ )
16
+ p.add_argument("--symbols", default="BTC,ETH", help="Comma-separated symbols (e.g. BTC,ETH,SOL)")
17
+ p.add_argument("--time-type", type=int, default=1)
18
+ p.add_argument("--max-results", type=int, default=20)
19
+ args = p.parse_args()
20
+
21
+ client = CoinGlassClient()
22
+ rows = client.fetch(
23
+ dataset=args.dataset,
24
+ symbols=[s.strip().upper() for s in args.symbols.split(",") if s.strip()],
25
+ time_type=args.time_type,
26
+ max_results=args.max_results,
27
+ )
28
+ print(json.dumps(rows, indent=2))
29
+
30
+
31
+ if __name__ == "__main__":
32
+ main()
@@ -0,0 +1,37 @@
1
+ from __future__ import annotations
2
+
3
+ import os
4
+ from typing import Any
5
+
6
+ from apify_client import ApifyClient
7
+
8
+ ACTOR_ID = "abelfeed/coinglass-derivatives-fast-api"
9
+
10
+
11
+ class CoinGlassClient:
12
+ """Thin Python wrapper around the Abelfeed CoinGlass Derivatives Fast API Actor."""
13
+
14
+ def __init__(self, api_token: str | None = None) -> None:
15
+ token = api_token or os.getenv("APIFY_TOKEN")
16
+ if not token:
17
+ raise ValueError(
18
+ "Missing APIFY_TOKEN. Create a free Apify account ($5/mo free credits) "
19
+ "at https://apify.com/abelfeed/coinglass-derivatives-fast-api"
20
+ )
21
+ self._client = ApifyClient(token)
22
+
23
+ def fetch(
24
+ self,
25
+ dataset: str = "futures_markets",
26
+ symbols: list[str] | None = None,
27
+ time_type: int = 1,
28
+ max_results: int = 50,
29
+ ) -> list[dict[str, Any]]:
30
+ run_input: dict[str, Any] = {
31
+ "dataset": dataset,
32
+ "symbols": symbols or ["BTC", "ETH"],
33
+ "timeType": time_type,
34
+ "maxResults": max_results,
35
+ }
36
+ run = self._client.actor(ACTOR_ID).call(run_input=run_input)
37
+ return list(self._client.dataset(run["defaultDatasetId"]).iterate_items())
@@ -0,0 +1,53 @@
1
+ Metadata-Version: 2.4
2
+ Name: abelfeed-coinglass
3
+ Version: 0.1.0
4
+ Summary: Lightweight Python client & CLI for CoinGlass crypto derivatives data (Funding Rates, Open Interest, Liquidations, Long/Short, Spot RSI, Bitcoin ETFs) via Apify.
5
+ License-Expression: MIT
6
+ Project-URL: Homepage, https://apify.com/abelfeed/coinglass-derivatives-fast-api
7
+ Project-URL: Repository, https://github.com/abelfeed/coinglass-derivatives-api
8
+ Keywords: coinglass,crypto,derivatives,funding-rate,open-interest,liquidations,bitcoin-etf,apify,mcp
9
+ Requires-Python: >=3.10
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Requires-Dist: apify-client>=1.8.0
13
+ Dynamic: license-file
14
+
15
+ # CoinGlass Derivatives Fast API — Python Client, CLI & MCP
16
+
17
+ Lightweight Python client & CLI to extract live **CoinGlass crypto derivatives & Bitcoin ETF data** without headless browsers, manual API subscriptions, or broken scrapers.
18
+
19
+ 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).
20
+
21
+ ## Supported datasets (10 modes)
22
+
23
+ `futures_markets` · `funding_rates` · `open_interest` · `liquidations` · `long_short_ratio` · `spot_rsi` · `btc_etf_list` · `btc_etf_history` · `btc_etf_inflows` · `global_stats`
24
+
25
+ ## Quickstart (Python & CLI)
26
+
27
+ ```bash
28
+ pip install abelfeed-coinglass
29
+ export APIFY_TOKEN="your_apify_token" # Free account: https://apify.com/abelfeed/coinglass-derivatives-fast-api
30
+ coinglass-fetch --dataset funding_rates --max-results 50
31
+ ```
32
+
33
+ ```python
34
+ from abelfeed_coinglass import CoinGlassClient
35
+
36
+ cg = CoinGlassClient()
37
+ rows = cg.fetch(dataset="open_interest", symbols=["BTC", "ETH", "SOL"], max_results=50)
38
+ print(rows[0])
39
+ ```
40
+
41
+ ## Use directly in Claude Desktop, Claude Code, Cursor or VS Code (MCP)
42
+
43
+ Connect Apify's official hosted MCP server with this Actor preloaded:
44
+
45
+ ```json
46
+ {
47
+ "mcpServers": {
48
+ "abelfeed-coinglass": {
49
+ "url": "https://mcp.apify.com/?tools=abelfeed/coinglass-derivatives-fast-api"
50
+ }
51
+ }
52
+ }
53
+ ```
@@ -0,0 +1,12 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ abelfeed_coinglass/__init__.py
5
+ abelfeed_coinglass/cli.py
6
+ abelfeed_coinglass/client.py
7
+ abelfeed_coinglass.egg-info/PKG-INFO
8
+ abelfeed_coinglass.egg-info/SOURCES.txt
9
+ abelfeed_coinglass.egg-info/dependency_links.txt
10
+ abelfeed_coinglass.egg-info/entry_points.txt
11
+ abelfeed_coinglass.egg-info/requires.txt
12
+ abelfeed_coinglass.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ coinglass-fetch = abelfeed_coinglass.cli:main
@@ -0,0 +1 @@
1
+ apify-client>=1.8.0
@@ -0,0 +1 @@
1
+ abelfeed_coinglass
@@ -0,0 +1,20 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "abelfeed-coinglass"
7
+ version = "0.1.0"
8
+ description = "Lightweight Python client & CLI for CoinGlass crypto derivatives data (Funding Rates, Open Interest, Liquidations, Long/Short, Spot RSI, Bitcoin ETFs) via Apify."
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ requires-python = ">=3.10"
12
+ dependencies = ["apify-client>=1.8.0"]
13
+ keywords = ["coinglass", "crypto", "derivatives", "funding-rate", "open-interest", "liquidations", "bitcoin-etf", "apify", "mcp"]
14
+
15
+ [project.scripts]
16
+ coinglass-fetch = "abelfeed_coinglass.cli:main"
17
+
18
+ [project.urls]
19
+ Homepage = "https://apify.com/abelfeed/coinglass-derivatives-fast-api"
20
+ Repository = "https://github.com/abelfeed/coinglass-derivatives-api"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+