LLMS Central - The Robots.txt for AI

ccxt.com

Last updated: 12/6/2026valid

Independent Directory - Important Information

This llms.txt file was publicly accessible and retrieved from ccxt.com. LLMS Central does not claim ownership of this content and hosts it for informational purposes only to help AI systems discover and respect website policies.

This listing is not an endorsement by ccxt.com and they have not sponsored this page. We are an independent directory service with no affiliation to the listed domain.

Copyright & Terms: Users should respect the original terms of service of ccxt.com. If you believe there is a copyright or terms of service violation, please contact us at support@llmscentral.com for prompt removal. Domain owners can also claim their listing.

Current llms.txt Content

# CCXT

> CCXT (CryptoCurrency eXchange Trading Library) is a unified cryptocurrency trading API for 100+ exchanges in JavaScript/TypeScript, Python, PHP, C#, Go, Java and Rust, with REST and WebSocket support. CCXT Terminal is a multi-exchange trading terminal built on top of it, for web, iOS and Android.

CCXT provides a single, consistent API to interact with cryptocurrency exchanges for market data, trading, and account management. The same code structure works across all supported languages and exchanges.

## CCXT Terminal

One trading app for many exchanges, for active traders and investors. Features include DOM, screener, order flow, smart orders, workspaces, price alerts, fast charts and a watchlist, with real-time sync across devices. It connects to your exchange accounts through exchange API keys; funds stay on the exchanges.

- [CCXT Terminal (web)](https://terminal.ccxt.com): Launch the terminal in the browser
- [CCXT Terminal for iOS](https://apps.apple.com/app/ccxt-terminal/id6810760684): App Store
- [CCXT Terminal for Android](https://play.google.com/store/apps/details?id=com.ccxt.android): Google Play

## Docs

- [Documentation](https://docs.ccxt.com): Official CCXT documentation site
- [Docs index for LLMs](https://docs.ccxt.com/llms.txt): llms.txt index of docs.ccxt.com
- [REST API Manual](https://github.com/ccxt/ccxt/wiki/Manual): Complete REST API reference
- [WebSocket Manual](https://github.com/ccxt/ccxt/wiki/ccxt.pro.manual): Real-time WebSocket API
- [Examples](https://github.com/ccxt/ccxt/tree/master/examples): Working code examples in all languages
- [FAQ](https://github.com/ccxt/ccxt/wiki/FAQ): Frequently asked questions
- [Expanded LLM docs](https://raw.githubusercontent.com/ccxt/ccxt/master/llms-full.txt): Full API reference for LLMs

## Install

```bash
# JavaScript / TypeScript
npm install ccxt

# Python
pip install ccxt

# PHP
composer require ccxt/ccxt

# C# / .NET
dotnet add package ccxt

# Go
go get github.com/ccxt/ccxt/go/v4

# Java (Gradle)
dependencies {
    implementation("io.github.ccxt:ccxt:4.5.94")
}

# Rust (Cargo.toml)
ccxt = "4.5.94"

```

## AI Assistant Skills

Install comprehensive language-specific skills for AI coding assistants (Claude Code, Cursor, Copilot, Windsurf, Codex, and 30+ others):

```bash
npx skills add ccxt/ccxt
```

## Key Concepts

- **Exchange**: An instance representing a crypto exchange (e.g., `new ccxt.binance()`). Each exchange has the same unified API.
- **Market / Symbol**: Trading pairs use the format `BASE/QUOTE` (e.g., `BTC/USDT`). Futures use `BTC/USDT:USDT`.
- **Unified API**: All exchanges share the same method signatures. Write once, trade on any exchange.
- **Public vs Private**: Public methods (market data) need no auth. Private methods (trading, balance) require API keys.
- **REST vs WebSocket**: REST methods use `fetch*` prefix (one-time queries). WebSocket methods use `watch*` prefix (real-time streams).
- **Rate Limiting**: Always enable with `enableRateLimit: true` to avoid getting banned.

## Quick Start

### JavaScript/TypeScript
```javascript
import ccxt from 'ccxt'
const exchange = new ccxt.binance({ enableRateLimit: true })
const ticker = await exchange.fetchTicker('BTC/USDT')
console.log(ticker.last)
```

### Python
```python
import ccxt
exchange = ccxt.binance({'enableRateLimit': True})
ticker = exchange.fetch_ticker('BTC/USDT')
print(ticker['last'])
```

### PHP
```php
$exchange = new \ccxt\binance(['enableRateLimit' => true]);
$ticker = $exchange->fetch_ticker('BTC/USDT');
echo $ticker['last'];
```

### C#
```csharp
var exchange = new ccxt.binance(new Dictionary<string, object> { { "enableRateLimit", true } });
var ticker = await exchange.FetchTicker("BTC/USDT");
Console.WriteLine(ticker.last);
```

### Go
```go
exchange := ccxt.NewBinance(nil) // import ccxt "github.com/ccxt/ccxt/go/v4"
ticker, err := exchange.FetchTicker("BTC/USDT") // optional args: ccxt.WithFetchTickerParams(...)
if err != nil {
    panic(err)
}
fmt.Println(*ticker.Last)
```

### Java

```java

import io.github.ccxt.exchanges.Binance;
import io.github.ccxt.types.Ticker;

Binance exchange = new Binance();
exchange.loadMarkets(false);

Ticker ticker = exchange.fetchTicker("BTC/USDT");
System.out.println(ticker.symbol + " " + ticker.last);
```


## Essentials for AI Agents and Bots

- **Start on testnet.** Call `exchange.setSandboxMode(true)` (`set_sandbox_mode(True)` in Python/PHP, `SetSandboxMode(true)` in Go) right after constructing the exchange; it throws `NotSupported` when there is no testnet. Keep live test orders at the exchange minimum.
- **Check support before calling.** `exchange.has['fetchOHLCV']` is `true`, `false` or `'emulated'`. `exchange.features[marketType][subType]` describes finer options, for example which `createOrder` params (`triggerPrice`, `stopLoss`, `takeProfit`, `timeInForce`, `hedged`) and which `fetchOHLCV` `limit` an exchange accepts.
- **Respect precision and limits.** After `loadMarkets()`, read `exchange.market(symbol)['limits']` / `['precision']` and round with `amountToPrecision(symbol, amount)` / `priceToPrecision(symbol, price)` (both return strings) before `createOrder`. Most `InvalidOrder` errors come from skipping this.
- **Let CCXT paginate.** Pass `{ paginate: true }` in `params` (optionally `paginationCalls`) to `fetchOHLCV`, `fetchTrades`, `fetchMyTrades`, `fetchOrders`, `fetchFundingRateHistory`, ... instead of writing your own `since` loop.
- **Attach conditions through `params`.** Use `triggerPrice`, `stopLossPrice`, `takeProfitPrice`, `stopLoss: { triggerPrice, price }`, `takeProfit: {...}`, `reduceOnly`, `postOnly`, `clientOrderId`. `stopPrice` is a legacy alias.
- **Unsubscribe cleanly.** Every `watch*` stream has an `unWatch*` (`unWatchTicker`, `unWatchOrderBook`, ...); `close()` ends all streams and sockets.
- **Withdrawals:** `withdraw(code, amount, address, params)`, with the memo/tag and network in params (`{ tag, network }`).
- **Deprecated (always throw):** `fetchBorrowRate`, `borrowMargin`, `repayMargin` (and `fetchBorrowRates` does not exist). Use `fetchCrossBorrowRate`, `fetchIsolatedBorrowRate`, `borrowCrossMargin` / `borrowIsolatedMargin` and the matching `repay*`.

## API Methods Overview

### Market Data
- `fetchMarkets` / `fetchCurrencies` – available trading pairs and currencies
- `fetchTicker` / `fetchTickers` – price, volume, bid/ask for one or many symbols
- `fetchOrderBook` – bids and asks depth
- `fetchTrades` – recent public trades
- `fetchOHLCV` – candlestick / OHLCV data

### Trading (auth required)
- `createOrder` / `createLimitBuyOrder` / `createMarketSellOrder` – place orders
- `cancelOrder` / `cancelAllOrders` – cancel orders
- `editOrder` – modify existing order
- `fetchOrder` / `fetchOpenOrders` / `fetchClosedOrders` – query orders

### Account (auth required)
- `fetchBalance` – account balances
- `fetchMyTrades` – your trade history
- `fetchLedger` – ledger / transaction history
- `withdraw` – withdraw funds (tag/network go in params)
- `fetchDeposits` / `fetchWithdrawals` – deposit/withdrawal history

### Derivatives (auth required)
- `fetchPosition` / `fetchPositions` – open positions
- `setLeverage` / `setMarginMode` – configure leverage and margin
- `fetchFundingRate` / `fetchFundingRateHistory` – funding rates
- `fetchOpenInterest` – open interest

### WebSocket (real-time)
- `watchTicker` / `watchTickers` – live price updates
- `watchOrderBook` – live order book
- `watchTrades` – live trade stream
- `watchOHLCV` – live candlestick updates
- `watchBalance` / `watchOrders` / `watchMyTrades` / `watchPositions` – live account updates (auth required)
- `unWatch*` (e.g. `unWatchTicker`) – stop one stream; `close()` – stop all

## Error Handling

```
BaseError
├─ NetworkError (recoverable – retry with backoff)
│  ├─ RequestTimeout
│  ├─ ExchangeNotAvailable
│  ├─ RateLimitExceeded
│  └─ DDoSProtection
└─ ExchangeError (non-recoverable – don't retry)
   ├─ AuthenticationError
   ├─ InsufficientFunds
   ├─ InvalidOrder
   └─ NotSupported
```

## Checking Method Availability

Not all exchanges support all methods:

```javascript
if (exchange.has['fetchOHLCV']) {
    const candles = await exchange.fetchOHLCV('BTC/USDT', '1h')
}
```

## Method Naming Convention

- `fetch*` – REST API methods (HTTP requests)
- `watch*` – WebSocket methods (real-time streams)
- `create*` – create resources (orders, addresses)
- `cancel*` – cancel resources
- `edit*` – modify resources
- `set*` – configure settings (leverage, margin mode)

## Optional

- [GitHub](https://github.com/ccxt/ccxt): Source code, issues and releases
- [Discord](https://discord.gg/ccxt): Community and support
- [Telegram](https://t.me/ccxt_chat): Community chat
- [X](https://x.com/ccxt_official): News and announcements

Version History

Version 112/6/2026, 5:02:37 AMvalid
8894 bytes

Categories

newsdocumentationdocs

Visit Website

Explore the original website and see their AI training policy in action.

Visit ccxt.com

Content Types

apidocumentation

Recent Access

No recent access

API Access

Canonical URL:
https://llmscentral.com/ccxt.com/llms.txt
API Endpoint:
/api/llms?domain=ccxt.com