The unified MIT client for 100+ crypto venues - and not a backtester, with an OHLCV endpoint that silently truncates and returns an unclosed final bar. TRIGGER - import ccxt, import ccxt.pro, import ccxt.async_support, pip install ccxt, fetch_ohlcv, fetchOHLCV, load_markets, fetch_markets, create_order, watchOrderBook, watchTicker, watchMyTrades, set_sandbox_mode, enableRateLimit, amount_to_precision, price_to_precision, exchange.has, options defaultType, parse8601, implicit methods like fapiPrivateGetPositionRisk, CCXT Pro subscription expiry, funding rate history; an order rejected on precision or min-notional, fewer candles returned than requested. Memory is stale here: CCXT Pro was merged into the free MIT package at v1.95, prediction markets landed at 4.5.66, and 4.5.77 shipped 2026-09-01. SKIP for equity and futures brokers (broker-execution-apis). SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.
Ships in fin-libraries. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The universal connectivity layer for crypto — one unified API over 100+ venues, MIT, and not a backtester. It has no simulation layer at all; everything it returns is live venue state.
| pip / import | pip install ccxt · import ccxt / ccxt.async_support / ccxt.pro |
| Version | 4.5.77 (2026-09-01) · 1,617 releases — roughly daily · >=3.10, pure-python wheel |
| Licence | MIT ✅ (GitHub license.spdx_id). ⚠️ PyPI info.license is null with no classifier — do not read PyPI metadata as the answer |
| Status | ✅ Extremely active. 43,863★ ccxt/ccxt, pushed 2026-09-04. Multi-language repo generated from one source |
🚨 set_sandbox_mode(True) is not a guarantee. Only some exchanges have testnets; the call
succeeds regardless. Verify the host the client actually resolved, never your own config flag:
ex.set_sandbox_mode(True)
assert "test" in ex.urls["api"]["public"], f"NOT a testnet: {ex.urls['api']}"
🚨 And it is connectivity, not a backtester. No fills, no fees applied, no portfolio, no simulation layer. Anything that looks like a ccxt backtest is code someone wrote around it.
CCXT Pro was merged into the MIT ccxt package at v1.95 (2022). WebSocket methods
(watchTicker, watchOrderBook, watchTrades, watchOrders, watchMyTrades …) are no longer a
paid product. Ignore any subscription-expiry notice or tutorial telling you to buy it.
import ccxt # sync REST
import ccxt.async_support # async REST
import ccxt.pro # async + WebSockets (the ex-"Pro" surface)
Since v4.5.66 the same unified API also covers prediction markets — Polymarket, Kalshi, Hyperliquid, Limitless, Myriad.
fetch_ohlcv has three silent data bugslimit differently (commonly 500 or 1000) and paginates inconsistently. Ask for 5,000 daily candles and you get the cap, with no error and no warning — a truncated series that quietly becomes a shorter backtest. Loop on since, and dedupe on timestamp: several venues re-return overlapping windows, and duplicate bars inflate bar counts and break pct_change.exchange.has first.Precision and rounding are venue rules and silently reject orders. Amount step, price tick and min-notional differ per venue; rounding yourself produces a rejection you may only notice as a missing fill. Use exchange.amount_to_precision(sym, amt) and exchange.price_to_precision(sym, px) after load_markets().
fetch_markets() is today's listings. Every delisted or dead token is absent, so any pair list built from it is survivorship-biased — and in crypto most tokens die. Snapshot and version fetch_markets() on a schedule; reconstruct historical universes from your own archive.
⚠️ Order-status vocabularies are only loosely unified. 'open' / 'closed' / 'canceled' map differently per venue for partially filled and expired orders. Reconcile on filled quantity, not on the status string.
The unified API normalizes common fields only. Venue-specific behaviour goes through params passthrough and implicit (auto-generated) methods — code written against binance.fapiPrivateGetPositionRisk runs on exactly one exchange. Portable code checks exchange.has[...] first.
⚠️ enableRateLimit is the only thing between you and a ban. Set it explicitly rather than trusting the default, and note the built-in limiter is a client-side sleep — it does not know about your other processes sharing the same key.
import ccxt
ex = ccxt.binance({
"enableRateLimit": True, # explicit: never rely on the default
"options": {"defaultType": "spot"},
})
ex.set_sandbox_mode(True)
assert "test" in ex.urls["api"]["public"], f"NOT a testnet: {ex.urls['api']}"
ex.load_markets() # required before any precision helper
since, rows = ex.parse8601("2024-01-01T00:00:00Z"), []
while True:
batch = ex.fetch_ohlcv("BTC/USDT", timeframe="1h", since=since, limit=1000)
if not batch:
break
rows += batch
since = batch[-1][0] + 1 # +1ms: several venues re-return the `since` bar
if len(batch) < 1000:
break
rows = list({r[0]: r for r in rows}.values()) # dedupe on timestamp
rows = rows[:-1] # drop the unclosed final candle
../../../fin-crypto/skills/crypto-data-and-execution/SKILL.md — crypto data and execution overall../../../fin-crypto/skills/crypto-data-and-execution/references/ccxt.md — the source card../../../fin-crypto/skills/crypto-data-and-execution/references/_venue-notes.md — venue, licence and install matrix../../../fin-core/skills/broker-execution-apis/SKILL.md §3 — order-safety patterns (scoped keys, idempotent IDs)This file is the deep dive on one library and assumes the choice is already made.
For which library to pick, how it compares with the alternatives, and the traps that span
several of them, the entry point is the domain skill broker-execution-apis (../../../fin-core/skills/broker-execution-apis/SKILL.md).
What SKILL.md sets; muted values are Claude Code's defaults
24 skills in this plugin
/lib-akshareakshare is the widest free Chinese-market scraper (1,103 public interfaces) and it purges its own PyPI history, so you cannot pin it. TRIGGER - akshare, "import akshare as ak", pip install akshare, stock_zh_a_hist, stock_zh_a_daily, index_stock_cons_csindex, stock_zt_pool_em, stock_zh_a_stop_em, adjust="qfq"/"hfq", 复权, 前复权, 后复权, 涨跌停, 东方财富, 新浪财经, A股数据, 沪深300成分股, "No matching distribution found for akshare==", akshare 报错, akshare 封 IP. akshare ships roughly 2.3 releases a week and deletes the old ones, so any signature, column name or version pin you remember is probably already gone. SKIP for lib-tushare, which is the skill for point-in-time fundamentals and dated index membership. SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill./lib-alpaca-pyAlpaca's current Python SDK, which defaults to the paper host but lets url_override silently send live orders from a client that believes it is in the sandbox. TRIGGER - import alpaca, pip install alpaca-py, TradingClient, StockHistoricalDataClient, CryptoHistoricalDataClient, submit_order, LimitOrderRequest, MarketOrderRequest, OrderSide, TimeInForce, client_order_id, url_override, paper=True, BaseURL.TRADING_PAPER, paper-api.alpaca.markets, bracket OCO OTO orders, trail_percent, IEX vs SIP feed, Algo Trader Plus, alpaca-trade-api, APCA_API_BASE_URL; an order rejected asynchronously for time-in-force or price precision. Memory is stale here: alpaca-trade-api was deprecated in 2024 and defaulted to LIVE, whereas alpaca-py 0.44.0 (2026-08-11) declares paper=True - the widely repeated warning is inverted. SKIP for Interactive Brokers and for the general order-safety patterns (broker-execution-apis). SKIP for choosing between libraries, or when no library is named - the domain skill's job./lib-alphalensalphalens-reloaded scores cross-sectional factors, and its forward return starts at date t's OWN price - it never lags your factor. TRIGGER - alphalens, alphalens-reloaded, "import alphalens as al", get_clean_factor_and_forward_returns, compute_forward_returns, factor_information_coefficient, mean_return_by_quantile, factor_returns, quantile_turnover, factor_rank_autocorrelation, create_full_tear_sheet, MaxLossExceededError, max_loss=0.35, cumulative_returns, information coefficient, IC decay, quantile spread, "pip install alphalens". The original quantopian package is dead at 0.4.0 (2020-04-27) and most snippets you recall target it or its removed pandas internals. SKIP for lib-qlib, which is the skill for the feature pipeline and model. SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill./lib-archThe reference GARCH implementation in Python, and the home of SPA/StepM/MCS - which all take LOSSES, so passing returns silently inverts the test and names your worst strategy as the best. TRIGGER - arch, arch_model, arch.bootstrap, arch.univariate, SPA, RealityCheck, StepM, MCS, optimal_block_length, StationaryBootstrap, superior_models, spa.pvalues, mcs.included, arch.unitroot, GARCH, EGARCH, GJR-GARCH, TARCH, APARCH, FIGARCH, HARCH, HAR-RV, skewt, conditional_volatility, or a GARCH fit emitting convergence warnings. Memory is stale on licence and version - it is 8.0.0 (2025-10-21) under NCSA, not one of the three usual permissive licences. SKIP for PSR and DSR (backtest-validation), for PBO and CPCV (lib-purgedcv) and for reporting Sharpe (lib-quantstats). SKIP for choosing between libraries, or when no library is named - the domain skill's job./lib-backtesting-pySingle-asset bar-loop backtester with honest next-open fills, an AGPL-3.0 licence, and an indicator API that computes over the entire series before slicing. TRIGGER - from backtesting import Backtest, Strategy; pip install backtesting, bt = Backtest(df, MyStrategy), bt.run(), bt.optimize(), self.I(), self.buy(), self.sell(), self.data.Close, trade_on_close, exclusive_orders, finalize_trades, commission, spread, backtesting.lib crossover, _OutOfMoneyError, "kernc"; wanting a portfolio, a universe or a second instrument inside it. Memory is stale here: it is alive at 0.6.6 (2026-07-22), it is AGPL-3.0-or-later rather than MIT, and trade_on_close fills at data.Close[-2] rather than the current bar's close. SKIP for multi-asset or cross-sectional work and for engine choice generally (backtesting-engines). SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill./lib-edgartoolsedgartools is the default free SEC EDGAR client - typed objects for 20+ form types, XBRL statements, no API key - and it 403s on every request until you call set_identity(). TRIGGER - edgartools, "from edgar import Company, set_identity", set_identity, Company("AAPL"), get_filings, filing.xbrl(), get_facts, get_financials, accession number, CIK, ticker-to-CIK, 10-K, 10-Q, 8-K, 13F, Forms 3/4/5, EDGAR full-text search, "HTTP 403" from sec.gov, SEC User-Agent required, SEC 10 requests per second, edgartools MCP server, edgartools[ai]. 442 releases have moved the API repeatedly and the classifier is still Beta, so any snippet recalled from memory is probably wrong for the installed version. SKIP for lib-fredapi, which is the skill for macro series and revisions. SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.Other plugins' skills for the same job
/fin-libraries:lib-ccxtfrom fin-libraries
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin fin-libraries