Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Release

# Builds the plugin ZIPs (scripts/build-release.py) and attaches them to a GitHub release:
# ccxt-openai-<version>.zip upload at platform.openai.com/plugins
# ccxt-claude-<version>.zip the Claude ccxt plugin (Claude's "Upload plugin")
# ccxt-local-claude-<version>.zip the Claude ccxt-local plugin
# Push a tag such as v0.0.1 to publish a release. A run started by hand from the Actions tab
# builds and checks the ZIPs and keeps them as a workflow artifact, without a release.

on:
push:
tags: [ 'v*' ]
workflow_dispatch:

permissions:
contents: write

concurrency:
group: release
cancel-in-progress: false

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: Build and check the ZIPs
run: |
pip install --quiet jsonschema
python3 scripts/build-release.py dist

- name: Validate the Claude plugins for the plugin directory
run: |
npm install -g --no-audit --no-fund @anthropic-ai/claude-code >/dev/null
for dir in claude/ccxt claude/ccxt-local; do
claude plugin validate --profile directory "$dir"
done

- name: Keep the ZIPs with the run
uses: actions/upload-artifact@v4
with:
name: plugin-zips
path: dist/*.zip

- name: Publish the release
if: startsWith(github.ref, 'refs/tags/')
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.ref_name }}
run: |
versions=$(python3 -c 'import json
for p in ("chatgpt/ccxt/plugin.json", "claude/ccxt/.claude-plugin/plugin.json", "claude/ccxt-local/.claude-plugin/plugin.json"):
print("- `" + p.split("/")[0] + "/" + p.split("/")[1] + "` " + json.load(open(p))["version"])')
cat > notes.md <<EOF
Plugin ZIPs built from ${GITHUB_SHA::7}.

| File | For |
|---|---|
| \`ccxt-openai-*.zip\` | Upload at [platform.openai.com/plugins](https://platform.openai.com/plugins). It has only the \`ccxt\` usage skill and no \`.app.json\`: OpenAI refuses app references in uploads. |
| \`ccxt-claude-*.zip\` | The Claude \`ccxt\` plugin: the hosted server, its skill and the CCXT coding skills. |
| \`ccxt-local-claude-*.zip\` | The Claude \`ccxt-local\` plugin: the CCXT MCP server on your computer (\`npx -y ccxt-mcp\`). |

Plugin versions:
${versions}

The one-click bundle for Claude Desktop (\`ccxt-mcp.mcpb\`) is released with ccxt/ccxt: https://github.com/ccxt/ccxt/releases/download/ccxt-mcp-latest/ccxt-mcp.mcpb
EOF
if gh release view "$TAG" >/dev/null 2>&1; then
gh release upload "$TAG" dist/*.zip --clobber
else
gh release create "$TAG" dist/*.zip --title "$TAG" --notes-file notes.md
fi
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ Every skill here is a copy from ccxt/ccxt `master`; the list of skills each plug

Manifests and READMEs are maintained here, not copied. Claude Code only updates an installed plugin when its `version` changes, so a PR that changes anything a plugin ships must raise that plugin's version (`python3 scripts/bump-version.py <manifest>`); [`check-versions.yml`](.github/workflows/check-versions.yml) fails the PR otherwise, and validates the manifests.

Marketplace files: [`.claude-plugin/marketplace.json`](.claude-plugin/marketplace.json) for Claude, [`.agents/plugins/marketplace.json`](.agents/plugins/marketplace.json) for ChatGPT and Codex. The README artwork is in [`.github/assets`](.github/assets); the demo is recorded from the real views against the production server.
Marketplace files: [`.claude-plugin/marketplace.json`](.claude-plugin/marketplace.json) for Claude, [`.agents/plugins/marketplace.json`](.agents/plugins/marketplace.json) for ChatGPT and Codex.

Releases: push a tag such as `v0.0.1` and [`release.yml`](.github/workflows/release.yml) builds and checks the ZIPs ([`scripts/build-release.py`](scripts/build-release.py)) and attaches them to a GitHub release: `ccxt-openai-<version>.zip` to upload at platform.openai.com/plugins (only the usage skill, no `.app.json`, which OpenAI refuses), and `ccxt-claude-<version>.zip` / `ccxt-local-claude-<version>.zip` for the Claude plugins. Run it by hand from the Actions tab to get the ZIPs without a release. The README artwork is in [`.github/assets`](.github/assets); the demo is recorded from the real views against the production server.

</details>

Expand Down
2 changes: 1 addition & 1 deletion chatgpt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

Files: [`../.agents/plugins/marketplace.json`](../.agents/plugins/marketplace.json) and [`ccxt/`](ccxt/).

For the OpenAI directory, upload a ZIP of the contents of `ccxt/` (with `plugin.json` and `mcp.json` at the root of the ZIP) at platform.openai.com/plugins, without `.app.json` and without the `"apps"` line in `plugin.json`: OpenAI refuses packages with app references. `.app.json` links the installed plugin to the CCXT app registered in the CCXT OpenAI organization, so ChatGPT serves the tools through that app (views render, and the tools are there in cloud runs too) instead of only as a local MCP server.
For the OpenAI directory, upload `ccxt-openai-<version>.zip` from the [latest release](https://github.com/ccxt/ccxt-plugins/releases) at platform.openai.com/plugins. It is built by `scripts/build-release.py`, which leaves out `.app.json` and the `"apps"` line (OpenAI refuses packages with app references) and keeps only the `ccxt` usage skill. `.app.json` links the installed plugin to the CCXT app registered in the CCXT OpenAI organization, so ChatGPT serves the tools through that app.
2 changes: 1 addition & 1 deletion chatgpt/ccxt/skills/ccxt-rust/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: ccxt-rust
description: CCXT cryptocurrency exchange library for Rust developers. Covers both REST API (standard) and WebSocket API (real-time). Helps install CCXT, connect to exchanges, fetch market data, place orders, stream live tickers/orderbooks, handle authentication, and manage errors in Rust projects. Use when working with crypto exchanges in Rust applications, trading bots, or low-latency services. Async (tokio), typed unified methods returning Result<T, ExchangeError>.
description: CCXT cryptocurrency exchange library for Rust developers. Covers both REST API (standard) and WebSocket API (real-time). Helps install CCXT, connect to exchanges, fetch market data, place orders, stream live tickers/orderbooks, handle authentication, and manage errors in Rust projects. Use when working with crypto exchanges in Rust applications, trading bots, or low-latency services. Async (tokio), typed unified methods that return a Result with an ExchangeError on failure.
---

# CCXT for Rust
Expand Down
9 changes: 1 addition & 8 deletions chatgpt/ccxt/skills/ccxt-typescript/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -769,14 +769,7 @@ exchange.apiKey = 'YOUR_API_KEY'
exchange.secret = 'YOUR_SECRET'
```

### Environment Variables (Recommended)
```typescript
const exchange = new ccxt.binance({
apiKey: 'YOUR_API_KEY',
secret: 'YOUR_SECRET',
enableRateLimit: true
})
```
Keep real keys out of source code and version control: load them at runtime from a secrets manager or your deployment's configuration.

### Testing Authentication
```typescript
Expand Down
11 changes: 6 additions & 5 deletions chatgpt/ccxt/skills/ccxt/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: ccxt
description: Use the hosted CCXT connector for live public crypto market data - prices, order books, candles, recent trades and market search on major exchanges - to show charts, order books and price boards in the chat, and to fetch raw historical data (candles, trades) for backtests. Use when the user asks about a crypto price, a market or symbol on an exchange, an order book, a chart, how prices compare across exchanges, or for raw market data to backtest or analyse.
description: Use the hosted CCXT connector for live public crypto market data - prices, order books, candles, recent trades and market search on major exchanges - to show charts, order books, price boards and tables of trades, funding rates and open interest in the chat, to quote the best route for a trade size, and to fetch raw historical data (candles, trades) for backtests. Use when the user asks about a crypto price, a market or symbol on an exchange, an order book, a chart, how prices compare across exchanges, or for raw market data to backtest or analyse.
---

# CCXT market data
Expand All @@ -18,15 +18,16 @@ The CCXT connector reads **public** market data from a curated set of major exch
- **Always answer with a CCXT view by default.** Whenever the user asks for market data (candles or OHLCV, a price or price history, an order book, depth, liquidity, tickers, recent trades), call the matching `show_*` tool first, even if they did not say "show" or "chart":
- `show_chart` for candles, OHLCV, price history or how a market has moved (candles + volume);
- `show_orderbook` for the order book, depth, spread or liquidity;
- `show_tickers` for prices, 24h change or volume of one or several symbols on one exchange.
- Recent trades have no view of their own: call `show_chart` for the symbol so the user sees the market, and `get_trades` for the trades themselves.
- `show_tickers` for prices, 24h change or volume of one or several symbols on one exchange;
- `show_table` for recent trades, funding rates or open interest (`data`: `trades`, `funding_rates`, `funding_rate_history`, `open_interest`, `open_interest_history`). Funding and open interest need perpetual symbols such as `BTC/USDT:USDT`. A field the exchange does not report is missing, not zero.
- Skip the view only when the user asks for the raw rows (CSV, JSON, a file, data for a backtest), says they do not want a chart, or you only need the numbers for a calculation.
- Views render only in hosts that support MCP Apps (for example Claude and ChatGPT on the web, desktop and mobile). Terminal hosts show the text summary instead. The result's `meta.ui` says what happened:
- `displayed`: the user sees the view, so comment on it rather than repeating every number;
- `attached`: a view was sent but the host did not say whether it renders views, so also state the key figures;
- `unsupported`, `unknown` or `off`: nothing was shown, so present the summary as text.
- A shown view stays live where the host allows it: it refreshes itself about every 2 seconds from a shared exchange stream, or every 5 seconds or more from REST, and says "Live" or "Delayed". Do not call `live_update` (it is the views' own refresh tool) and do not re-run a `show_*` tool only to refresh a view.
- When you need numbers to reason with, in addition to the view or instead of it in the cases above, use `get_tickers`, `get_orderbook`, `get_ohlcv` or `get_trades`.
- For "where should I buy" or "best price for this size" questions, call `fetch_route` (from, to, and amountIn or amountOut) instead of comparing order books by hand: the CCXT order router walks the books on many exchanges, counts fees and depth, and can split across venues. It is a quote, not an order. Read `fillRatio` before `effectiveRate`. Executing a route needs the local CCXT MCP server. Route quotes are limited per user: on `RATE_LIMITED`, wait `retryAfterSeconds`.
- To compare exchanges, call the tool once per exchange.
- `describe_exchange` lists an exchange's timeframes and capabilities.

Expand All @@ -37,7 +38,7 @@ When the user asks for the raw data rather than a view, the `get_*` tools return
- `get_ohlcv` rows are `[timestampMs, open, high, low, close, volume]`, up to 500 candles per call. `get_trades` returns up to 200 public trades per call.
- For a longer history, page forward: pass `since`, then call again with `since` set just after the last timestamp returned, until `meta.hasMore` is false or you reach the end of the range. Read `meta.notice`: it says when the exchange did not return data from `since`.
- Hand the rows over unchanged, as CSV or JSON, or in a file where the host can write one. Do not round, resample or fill gaps unless the user asks, and say which exchange, symbol, timeframe and time range the data covers.
- Page a few calls, not hundreds: the server is shared and rate limited. For a large download (years of minute candles, full trade history) or for data this server has no tool for (funding rate history, open interest, liquidations and so on), write the user a short script with the CCXT library instead (`fetchOHLCV`, `fetchTrades`, `fetchFundingRateHistory`, ...), using the `ccxt-python`, `ccxt-typescript` or other `ccxt-*` coding skill. Those are public endpoints and need no API keys.
- Page a few calls, not hundreds: the server is shared and rate limited. For a large download (years of minute candles, full trade history) or for data this server has no tool for (liquidations and so on), write the user a short script with the CCXT library instead (`fetchOHLCV`, `fetchTrades`, `fetchFundingRateHistory`, ...) in the language they use. Those are public endpoints and need no API keys. Funding-rate and open-interest history are available here as `show_table`.

## Report data honestly

Expand All @@ -48,7 +49,7 @@ When the user asks for the raw data rather than a view, the `get_*` tools return

## Accounts and trading

`get_balance`, `get_orders`, `get_positions` and `get_my_trades` exist but return `ACCOUNT_REQUIRED`: this hosted server has no accounts. When the user asks for balances, orders, positions, their trades, or to trade or withdraw:
This hosted server has no accounts and no account tools. When the user asks for their balances, open or past orders, positions or own trades, or to trade or withdraw:

1. Say that this connector serves public market data only. Do not stop at a refusal.
2. Offer the local CCXT MCP server, which does these things from the user's own computer: https://docs.ccxt.com/docs/mcp#local-server
Expand Down
2 changes: 1 addition & 1 deletion claude/ccxt-local/skills/ccxt-mcp/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ CCXT also runs a public, read-only MCP endpoint at `https://mcp.ccxt.com/mcp` (S
- **ChatGPT (web):** chatgpt.com/plugins > plus button > **Add custom MCP server** > the URL, **No authentication** > **Create as a plugin**. **ChatGPT desktop / Codex:** the plugin, `codex plugin marketplace add ccxt/ccxt-plugins` then `codex plugin add ccxt@ccxt`; or Settings > MCP servers > Add server > **Streamable HTTP**, or `[mcp_servers.ccxt]` `url = "https://mcp.ccxt.com/mcp"` in `~/.codex/config.toml`.
- **Cursor / VS Code:** `{ "mcpServers": { "ccxt": { "url": "https://mcp.ccxt.com/mcp" } } }` / `{ "servers": { "ccxt": { "type": "http", "url": "https://mcp.ccxt.com/mcp" } } }`.

What it offers: `list_exchanges`, `describe_exchange`, `search_markets`, `get_tickers`, `get_orderbook`, `get_ohlcv`, `get_trades`, and the `show_chart` / `show_orderbook` / `show_tickers` views, on a curated set of major exchanges (`list_exchanges` names them). `get_balance`, `get_orders`, `get_positions` and `get_my_trades` return `ACCOUNT_REQUIRED`: relay it and point the user to the local server. No trading, no `watch_*` streams, no prediction markets, no `params`, no `call_read_method`. It is shared and rate-limited: on `RATE_LIMITED` / `EXCHANGE_UNAVAILABLE` wait `retryAfterSeconds`, don't loop. Data is briefly cached: order books 1 s, tickers and trades 2 s, candles a tenth of the candle length (2–60 s). Phase 1: signing in with exchange accounts is planned, not available. Details: https://docs.ccxt.com/docs/mcp#hosted-server-no-install
What it offers: `list_exchanges`, `describe_exchange`, `search_markets`, `get_tickers`, `get_orderbook`, `get_ohlcv`, `get_trades`, and the `show_chart` / `show_orderbook` / `show_tickers` views, on a curated set of major exchanges (`list_exchanges` names them). It has no account tools (`get_balance`, `get_orders`, `get_positions` and `get_my_trades` exist only on the local server): for balances, orders, positions or the user's own trades, point the user to the local server. `fetch_route` gives a best-route quote (executing it, `execute_route`, needs the local server; route quotes are limited per user there). No trading, no `watch_*` streams, no prediction markets, no `params`, no `call_read_method`. It is shared and rate-limited: on `RATE_LIMITED` / `EXCHANGE_UNAVAILABLE` wait `retryAfterSeconds`, don't loop. Data is briefly cached: order books 1 s, tickers and trades 2 s, candles a tenth of the candle length (2–60 s). Phase 1: signing in with exchange accounts is planned, not available. Details: https://docs.ccxt.com/docs/mcp#hosted-server-no-install

## Install (local server)

Expand Down
9 changes: 1 addition & 8 deletions claude/ccxt/skills/ccxt-typescript/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -769,14 +769,7 @@ exchange.apiKey = 'YOUR_API_KEY'
exchange.secret = 'YOUR_SECRET'
```

### Environment Variables (Recommended)
```typescript
const exchange = new ccxt.binance({
apiKey: 'YOUR_API_KEY',
secret: 'YOUR_SECRET',
enableRateLimit: true
})
```
Keep real keys out of source code and version control: load them at runtime from a secrets manager or your deployment's configuration.

### Testing Authentication
```typescript
Expand Down
Loading