{
 "kind": "api",
 "slug": "ccxt",
 "path": "apis/ccxt/",
 "name": "CCXT",
 "logo": "https://agentgid.com/media/avatars/ccxt.png",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "APIs",
   "apis/"
  ],
  [
   "Stock and financial data",
   "apis/market-data/"
  ]
 ],
 "lead": "One code library for 100+ crypto exchanges.",
 "chips": [
  {
   "label": "Stock and financial data",
   "path": "apis/market-data/"
  },
  {
   "label": "Official MCP server"
  }
 ],
 "primary": {
  "label": "Copy prompt for your agent",
  "copy": "Use ccxt 4.5.92 in Python on my machine to read public prices only: keep the built-in rate limiter on, never place or cancel orders, and read any exchange keys from .env without printing them."
 },
 "links": [
  {
   "label": "Website",
   "href": "https://ccxt.com"
  },
  {
   "label": "GitHub",
   "href": "https://github.com/ccxt/ccxt"
  }
 ],
 "track": "Outages, price changes and new versions on your dashboard",
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Open source",
   "status": "yes",
   "sub": "Run it yourself for free",
   "quote": null,
   "note": "No free tier on the pricing page. As reported on the official pricing page, checked Oct 10, 2026.",
   "src": "https://ccxt.com"
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "Allowed",
   "status": "yes",
   "sub": null,
   "quote": "The library is under MIT license, that means it's absolutely free for any developer to build commercial and opensource software on top of it, but use it at your own risk with no warranties, as is.",
   "note": "MIT license; keep the copyright and license notice; no warranty.",
   "src": "https://github.com/ccxt/ccxt/blob/master/README.md"
  },
  {
   "key": "key",
   "label": "Key & sign-up",
   "value": "API key, server only",
   "status": "info",
   "sub": "Env var none for the library (keys are passed in code); the ccxt-mcp server reads per-exchange variables such as BINANCE_APIKEY and BINANCE_SECRET",
   "quote": "Remember to keep your apiKey and secret key safe from unauthorized use, do not send or tell it to anybody. A leak of the secret key or a breach in security can cost you a fund loss.",
   "note": "No key for public market data. Balances and orders need the API key and secret you create on each exchange's website, passed to the exchange instance as apiKey and secret (some exchanges also need a password or uid).",
   "src": "https://docs.ccxt.com/docs/manual"
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Official MCP server",
   "status": "yes",
   "sub": "llms.txt · SDK",
   "quote": "It runs locally over stdio : your API keys stay on your machine and are never visible to the AI model, which references accounts by name only.",
   "note": " Our agent check: 4 of 6 (Nov 13, 2026).",
   "src": "https://docs.ccxt.com/docs/mcp"
  }
 ],
 "vfoot": "Checked against the maker's official pages, pricing on Oct 10, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What CCXT does",
   "parts": [
    {
     "t": "prose",
     "text": "CCXT is a free, open-source code library, not an online service. Your program uses it to talk to more than 100 cryptocurrency exchanges and prediction markets in one common way. It reads public prices, order books and price history without any account, and with your own exchange keys it can read balances and place orders, connecting to each exchange directly."
    },
    {
     "t": "list",
     "items": [
      "CCXT is one of 19 APIs in the Stock and financial data category on AgentGid.",
      "It is one of 17 that can be started for free.",
      "It ships an official MCP server, like 5 others here.",
      "Its official SDK is the 1st most downloaded in the category (736K a week)."
     ],
     "muted": true
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Show live prices from several exchanges",
       "text": "Your app or dashboard shows the current price of a coin pair on different exchanges, with the same code for each one and no exchange account.",
       "idea": false
      },
      {
       "title": "Price history for charts and research",
       "text": "Download past candles (open, high, low, close and volume) for a pair, store them, and draw charts or study them later.",
       "idea": false
      },
      {
       "title": "One view of your own exchange balances",
       "text": "With read-only keys from each of your exchange accounts, a private script lists your balances in one place.",
       "idea": false
      },
      {
       "title": "Test a trading bot on a test network",
       "text": "Run your bot against an exchange's test network with play money first, before any real funds are involved.",
       "idea": false
      },
      {
       "title": "Let an AI assistant look up prices",
       "text": "Connect the official local tool server to Claude or Cursor so the assistant can read prices and order books; out of the box it has public data only.",
       "idea": false
      },
      {
       "title": "Price alert for your own watchlist",
       "text": "A small script checks a few pairs every few minutes and sends you a message when a price crosses a level you chose.",
       "idea": true
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "CCXT popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "571K",
       "l": "SDK downloads a week",
       "d": "+6.4% on the 4-week average",
       "up": true
      },
      {
       "n": "52",
       "l": "public agent repos use its SDK"
      },
      {
       "n": "45K",
       "l": "GitHub stars, ccxt/ccxt"
      }
     ]
    },
    {
     "t": "small",
     "text": "SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026."
    }
   ]
  },
  {
   "id": "pricing",
   "nav": "Pricing and limits",
   "h2": "Pricing",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Free tier",
       "v": "None"
      },
      {
       "l": "Cheapest plan",
       "v": "No monthly plan"
      },
      {
       "l": "Usage price",
       "v": "—"
      },
      {
       "l": "Plans",
       "v": "MIT-licensed library with no paid API of its own; each exchange's own API limits, keys and trading fees apply. The MCP server runs locally."
      }
     ]
    },
    {
     "t": "small",
     "text": "As reported on the official pricing page, checked Oct 10, 2026. Prices change: confirm before you buy.",
     "link": "",
     "href": null
    }
   ]
  },
  {
   "id": "limits",
   "nav": null,
   "spy_as": "pricing",
   "h2": "Limits",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Library default (every exchange)",
       "v": "Built-in rate limiter on by default; each exchange class sets its own rateLimit (milliseconds between requests)",
       "src": "https://docs.ccxt.com/docs/manual"
      },
      {
       "l": "Each exchange instance",
       "v": "One rate limiter per instance; several instances for the same exchange do not share it",
       "src": "https://docs.ccxt.com/docs/manual"
      },
      {
       "l": "Price history (exchange rules)",
       "v": "Exchanges keep only a limited history of short candles, often around the last 1000",
       "src": "https://docs.ccxt.com/docs/manual"
      }
     ]
    },
    {
     "t": "small",
     "text": "From the official docs.",
     "link": "docs.ccxt.com/docs/manual",
     "href": "https://docs.ccxt.com/docs/manual"
    }
   ]
  },
  {
   "id": "access",
   "nav": "Access and terms",
   "h2": "Key and access",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "How it signs in",
       "v": "No key for public market data. Balances and orders need the API key and secret you create on each exchange's website, passed to the exchange instance as apiKey and secret (some exchanges also need a password or uid)."
      },
      {
       "l": "Environment variable",
       "v": "none for the library (keys are passed in code); the ccxt-mcp server reads per-exchange variables such as BINANCE_APIKEY and BINANCE_SECRET",
       "code": true
      },
      {
       "l": "Safe in browser code",
       "v": "No, keep it on your server",
       "status": "no"
      },
      {
       "l": "Card at sign-up",
       "v": "No"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Steps only a person can do"
    },
    {
     "t": "list",
     "items": [
      "If private data is needed, create an exchange account and an API key pair on that exchange's website, read-only where possible, withdrawals off. The person puts the key and secret in .env (never in the chat); the script reads them and passes apiKey and secret to the exchange instance.",
      "Decide whether any order may ever be placed, and on which account and with what limits. Without that explicit decision, call only read methods (fetchTicker, fetchOHLCV, fetchBalance) and never createOrder."
     ]
    }
   ]
  },
  {
   "id": "terms",
   "nav": null,
   "spy_as": "access",
   "h2": "Commercial use and your data",
   "parts": [
    {
     "t": "prose",
     "text": "CCXT is free and open source under the MIT license, so you may use it in paid products and change it. It comes with no warranty. Each exchange's own terms, limits and fees still apply."
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In a paid app",
       "v": "Yes",
       "status": "yes",
       "sub": "MIT license; keep the copyright and license notice; no warranty.",
       "quote": "The library is under MIT license, that means it's absolutely free for any developer to build commercial and opensource software on top of it, but use it at your own risk with no warranties, as is.",
       "src": "https://github.com/ccxt/ccxt/blob/master/README.md"
      },
      {
       "l": "redistribute-files",
       "v": "Yes",
       "status": "yes",
       "sub": "Allowed under MIT when the copyright and permission notice are included.",
       "quote": "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.",
       "src": "https://github.com/ccxt/ccxt/blob/master/LICENSE.txt"
      },
      {
       "l": "client-work",
       "v": "Yes",
       "status": "yes",
       "sub": "MIT allows building it into client projects; each exchange's own terms bind whoever holds the exchange account.",
       "quote": "Permission is hereby granted, free of charge, to any person obtaining a copy",
       "src": "https://github.com/ccxt/ccxt/blob/master/LICENSE.txt"
      }
     ]
    }
   ]
  },
  {
   "id": "errors",
   "nav": null,
   "spy_as": "access",
   "h2": "Errors to handle",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "NetworkError / RequestTimeout / ExchangeNotAvailable",
       "v": "The exchange could not be reached in time or was temporarily down.",
       "sub": "Retry later with backoff; a later retry is usually enough."
      },
      {
       "l": "RateLimitExceeded / DDoSProtection",
       "v": "Too many requests, or the exchange's protection blocked the client (sometimes by region).",
       "sub": "Keep the rate limiter on, slow down and retry later; do not open more instances to get around it."
      },
      {
       "l": "AuthenticationError",
       "v": "Required credentials are missing, empty or rejected.",
       "sub": "Check the key, secret and any password or uid the exchange needs; do not retry."
      },
      {
       "l": "InsufficientFunds / InvalidOrder",
       "v": "The order cannot be placed as given (not enough balance, or amount, price or symbol outside the market's rules).",
       "sub": "Do not retry; fix the order or ask the person."
      }
     ]
    }
   ]
  },
  {
   "id": "agent",
   "nav": "For agents",
   "h2": "Use it from an agent",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Our agent check",
       "v": "4 of 6: llms.txt yes, OpenAPI no, SDK yes, MCP yes, status page no, AI assistants allowed yes",
       "sub": "Checked Nov 13, 2026."
      },
      {
       "l": "MCP server",
       "v": "CCXT MCP server (npm ccxt-mcp 0.1.3, runs locally over stdio)",
       "sub": "claude mcp add ccxt -- npx -y ccxt-mcp"
      },
      {
       "l": "npm",
       "v": "npm install ccxt",
       "code": true
      },
      {
       "l": "PyPI",
       "v": "pip install ccxt",
       "code": true
      }
     ]
    },
    {
     "t": "h3",
     "text": "Instructions in its docs to check first"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "The docs say",
       "v": "“curl -fsSL https://raw.githubusercontent.com/ccxt/ccxt/master/install-skills.sh | bash”",
       "sub": "Ask the person first; it pipes a remote script from the master branch into the shell and installs agent skills."
      },
      {
       "l": "The docs say",
       "v": "“npx skills add ccxt/ccxt”",
       "sub": "Installs skills into the person's coding assistants from an unpinned package; only with their consent."
      },
      {
       "l": "The docs say",
       "v": "“One line: claude mcp add ccxt -- npx -y ccxt-mcp .”",
       "sub": "Runs an unpinned npx package; pin ccxt-mcp@0.1.3, keep it read-only, and ask the person before adding any exchange keys or enabling trading."
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "CCXT",
       "me": true,
       "facts": [
        "Free (open source)",
        "No free tier",
        "Official MCP"
       ]
      },
      {
       "name": "Binance API",
       "why": "Pick the Binance API directly when you only work with Binance and want its own REST and WebSocket interface.",
       "path": "apis/binance-api/",
       "facts": [
        "Free plan",
        "Free tier"
       ]
      },
      {
       "name": "Kraken API",
       "why": "Pick the Kraken API directly for Kraken spot and derivatives, including its FIX interface and its own command-line tool.",
       "path": "apis/kraken-api/",
       "facts": [
        "See its page",
        "No free tier"
       ]
      },
      {
       "name": "Alpaca Market Data API",
       "why": "Pick Alpaca for US stock, options and crypto market data from a brokerage, with a trading interface too.",
       "path": "apis/alpaca/",
       "facts": [
        "from $99/mo",
        "Free tier",
        "Official MCP"
       ]
      }
     ],
     "more": "All stock and financial data APIs",
     "more_path": "apis/market-data/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "Use ccxt 4.5.92 in Python on my machine to read public prices only: keep the built-in rate limiter on, never place or cancel orders, and read any exchange keys from .env without printing them."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Install the library for your language (here Python).",
       "code": "pip install ccxt",
       "src": "https://docs.ccxt.com/docs/install"
      },
      {
       "text": "List the supported exchanges; this works offline.",
       "code": "import ccxt\nprint(ccxt.exchanges) # print a list of all available exchange classes",
       "src": "https://github.com/ccxt/ccxt/blob/master/README.md"
      },
      {
       "text": "Read public prices with no account; for balances or orders, create keys on the exchange's website and pass them in.",
       "code": "kraken = ccxt.kraken({\n    'apiKey': 'YOUR_PUBLIC_API_KEY',\n    'secret': 'YOUR_SECRET_PRIVATE_KEY',\n})",
       "src": "https://github.com/ccxt/ccxt/blob/master/README.md"
      }
     ]
    },
    {
     "t": "h3",
     "text": "First request"
    },
    {
     "t": "tabs",
     "label": "First request",
     "items": [
      {
       "tab": "Request",
       "code": "pip install ccxt\nimport ccxt\nprint(ccxt.exchanges) # print a list of all available exchange classes",
       "intro": "CCXT is a library with no hosted API of its own, so this is the smallest official example (README and install page); the response is from our own offline run of ccxt 4.5.92, which listed 104 exchange ids. Real data calls such as fetchTicker go to the exchange you pick."
      },
      {
       "tab": "Response",
       "code": "['alpaca', 'apex', 'aster', 'backpack', 'bequant', ...]"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Setting enableRateLimit to false or creating many instances of the same exchange to go faster.",
       "fix": "Keep one instance per exchange with the rate limiter on; slow down on RateLimitExceeded or DDoSProtection.",
       "why": "Each instance has its own limiter, and exceeding exchange limits can get the client banned."
      },
      {
       "dont": "Calling set_sandbox_mode(True) after load_markets or another call.",
       "fix": "Call it right after creating the exchange, before anything else.",
       "why": "The docs require it as the very first call."
      },
      {
       "dont": "Using production keys on the test network, or test keys on the real exchange.",
       "fix": "Create a separate key pair on the exchange's sandbox site for testing.",
       "why": "The two kinds of keys do not work in each other's place."
      },
      {
       "dont": "Retrying an order automatically after InsufficientFunds or InvalidOrder.",
       "fix": "Retry only network errors; for order errors stop and show the reason.",
       "why": "The library's own retry covers server and network issues only."
      },
      {
       "dont": "Giving the MCP server or a script exchange keys that can withdraw funds.",
       "fix": "Create keys with withdrawals disabled and an IP allowlist; enable trading only when the person asks, with order caps.",
       "why": "The CCXT docs recommend these exchange-side limits as a backstop."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Is CCXT a paid service?",
       "a": "No. It is free MIT-licensed software you run yourself; it is not a service or a server.",
       "evidence": {
        "url": "https://github.com/ccxt/ccxt/blob/master/README.md",
        "quote": "CCXT is not a service nor a server. CCXT is a software."
       }
      },
      {
       "q": "Do I need an exchange account to get prices?",
       "a": "No. Public market data such as tickers, order books and candles works without an account or key.",
       "evidence": {
        "url": "https://github.com/ccxt/ccxt/blob/master/README.md",
        "quote": "Anyone can use the public part immediately after installation."
       }
      },
      {
       "q": "Can it create exchange accounts or keys for me?",
       "a": "No. You register on each exchange yourself and create the keys there.",
       "evidence": {
        "url": "https://github.com/ccxt/ccxt/blob/master/README.md",
        "quote": "In this case you will need to register yourself, this library will not create accounts or API keys for you."
       }
      },
      {
       "q": "Can I try orders without real money?",
       "a": "On exchanges that offer a test network, yes, with sandbox mode and separate test keys.",
       "evidence": {
        "url": "https://docs.ccxt.com/docs/manual",
        "quote": "Sandbox keys are not interchangeable with production keys!"
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Maker",
   "CCXT"
  ],
  [
   "Category",
   "Stock and financial data"
  ],
  [
   "Price",
   "Free (open source)"
  ],
  [
   "Official SDK",
   "npm ccxt, PyPI ccxt"
  ],
  [
   "Latest SDK",
   "4.5.92 on npm"
  ],
  [
   "Agent check",
   "4 of 6"
  ],
  [
   "Pricing checked",
   "Oct 10, 2026"
  ]
 ],
 "good": [
  "Public prices and price history need no account. Balances and orders need keys from each exchange, and some exchanges ask for identity checks first.",
  "Keep the built-in speed limit on. Switching it off or flooding an exchange with requests can get you banned there.",
  "A leaked secret key can cost real money. Keep keys in a private file on your own machine, never in shared code or a web page."
 ],
 "checked_line": "Read by AgentGid from 14 official pages, card checked Nov 10, 2026; usage numbers update daily."
}