[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74AK8NZR7WAV14DFWHSK29P":3,"skill-same:01M74AK8NZR7WAV14DFWHSK29P":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M74AK8NZR7WAV14DFWHSK29P","ccxt-python",null,"CCXT library for crypto exchanges in Python, REST and WebSocket: connect, pull market data, place orders and stream tickers. For trading bots and analysis, sync or asyncio.","CarlosCaPe\u002Foctorato","CarlosCaPe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F39838249?v=4","01M72WXX4ZRR8MBH1EP1QND2FQ","dataqbs","01M72WXX5NA7YCKRSJ54GW1GQ8",18,"MIT","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fccxt-python\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: ccxt-python\ndescription: \"CCXT library for crypto exchanges in Python, REST and WebSocket: connect, pull market data, place orders and stream tickers. For trading bots and analysis, sync or asyncio.\"\n---\n\n# CCXT for Python\n\nA comprehensive guide to using CCXT in Python projects for cryptocurrency exchange integration.\n\n## Installation\n\n### REST API (Standard)\n```bash\npip install ccxt\n```\n\n### WebSocket API (Real-time, ccxt.pro)\n```bash\npip install ccxt\n```\n\n### Optional Performance Enhancements\n```bash\npip install orjson      # Faster JSON parsing\npip install coincurve   # Faster ECDSA signing (45ms → 0.05ms)\n```\n\nBoth REST and WebSocket APIs are included in the same package.\n\n## Quick Start\n\n### REST API - Synchronous\n```python\nimport ccxt\n\nexchange = ccxt.binance()\nexchange.load_markets()\nticker = exchange.fetch_ticker('BTC\u002FUSDT')\nprint(ticker)\n```\n\n### REST API - Asynchronous\n```python\nimport asyncio\nimport ccxt.async_support as ccxt\n\nasync def main():\n    exchange = ccxt.binance()\n    await exchange.load_markets()\n    ticker = await exchange.fetch_ticker('BTC\u002FUSDT')\n    print(ticker)\n    await exchange.close()  # Important!\n\nasyncio.run(main())\n```\n\n### WebSocket API - Real-time Updates\n```python\nimport asyncio\nimport ccxt.pro as ccxtpro\n\nasync def main():\n    exchange = ccxtpro.binance()\n    while True:\n        ticker = await exchange.watch_ticker('BTC\u002FUSDT')\n        print(ticker)  # Live updates!\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n## REST vs WebSocket\n\n| Import | For REST | For WebSocket |\n|--------|----------|---------------|\n| **Sync** | `import ccxt` | (WebSocket requires async) |\n| **Async** | `import ccxt.async_support as ccxt` | `import ccxt.pro as ccxtpro` |\n\n| Feature | REST API | WebSocket API |\n|---------|----------|---------------|\n| **Use for** | One-time queries, placing orders | Real-time monitoring, live price feeds |\n| **Method prefix** | `fetch_*` (fetch_ticker, fetch_order_book) | `watch_*` (watch_ticker, watch_order_book) |\n| **Speed** | Slower (HTTP request\u002Fresponse) | Faster (persistent connection) |\n| **Rate limits** | Strict (1-2 req\u002Fsec) | More lenient (continuous stream) |\n| **Best for** | Trading, account management | Price monitoring, arbitrage detection |\n\n**When to use REST:**\n- Placing orders\n- Fetching account balance\n- One-time data queries\n- Order management (cancel, fetch orders)\n\n**When to use WebSocket:**\n- Real-time price monitoring\n- Live orderbook updates\n- Arbitrage detection\n- Portfolio tracking with live updates\n\n## Creating Exchange Instance\n\n### REST API - Synchronous\n```python\nimport ccxt\n\n# Public API (no authentication)\nexchange = ccxt.binance({\n    'enableRateLimit': True  # Recommended!\n})\n\n# Private API (with authentication)\nexchange = ccxt.binance({\n    'apiKey': 'YOUR_API_KEY',\n    'secret': 'YOUR_SECRET',\n    'enableRateLimit': True\n})\n```\n\n### REST API - Asynchronous\n```python\nimport ccxt.async_support as ccxt\n\nexchange = ccxt.binance({\n    'apiKey': 'YOUR_API_KEY',\n    'secret': 'YOUR_SECRET',\n    'enableRateLimit': True\n})\n\n# Always close when done\nawait exchange.close()\n```\n\n### WebSocket API\n```python\nimport ccxt.pro as ccxtpro\n\n# Public WebSocket\nexchange = ccxtpro.binance()\n\n# Private WebSocket (with authentication)\nexchange = ccxtpro.binance({\n    'apiKey': 'YOUR_API_KEY',\n    'secret': 'YOUR_SECRET'\n})\n\n# Always close when done\nawait exchange.close()\n```\n\n## Common REST Operations\n\n### Loading Markets\n```python\n# Load all available trading pairs\nexchange.load_markets()\n\n# Access market information\nbtc_market = exchange.market('BTC\u002FUSDT')\nprint(btc_market['limits']['amount']['min'])  # Minimum order amount\n```\n\n### Fetching Ticker\n```python\n# Single ticker\nticker = exchange.fetch_ticker('BTC\u002FUSDT')\nprint(ticker['last'])      # Last price\nprint(ticker['bid'])       # Best bid\nprint(ticker['ask'])       # Best ask\nprint(ticker['volume'])    # 24h volume\n\n# Multiple tickers (if supported)\ntickers = exchange.fetch_tickers(['BTC\u002FUSDT', 'ETH\u002FUSDT'])\n```\n\n### Fetching Order Book\n```python\n# Full orderbook\norderbook = exchange.fetch_order_book('BTC\u002FUSDT')\nprint(orderbook['bids'][0])  # [price, amount]\nprint(orderbook['asks'][0])  # [price, amount]\n\n# Limited depth\norderbook = exchange.fetch_order_book('BTC\u002FUSDT', 5)  # Top 5 levels\n```\n\n### Creating Orders\n\n#### Limit Order\n```python\n# Buy limit order\norder = exchange.create_limit_buy_order('BTC\u002FUSDT', 0.01, 50000)\nprint(order['id'])\n\n# Sell limit order\norder = exchange.create_limit_sell_order('BTC\u002FUSDT', 0.01, 60000)\n\n# Generic limit order\norder = exchange.create_order('BTC\u002FUSDT', 'limit', 'buy', 0.01, 50000)\n```\n\n#### Market Order\n```python\n# Buy market order\norder = exchange.create_market_buy_order('BTC\u002FUSDT', 0.01)\n\n# Sell market order\norder = exchange.create_market_sell_order('BTC\u002FUSDT', 0.01)\n\n# Generic market order\norder = exchange.create_order('BTC\u002FUSDT', 'market', 'sell', 0.01)\n```\n\n### Fetching Balance\n```python\nbalance = exchange.fetch_balance()\nprint(balance['BTC']['free'])   # Available balance\nprint(balance['BTC']['used'])   # Balance in orders\nprint(balance['BTC']['total'])  # Total balance\n```\n\n### Fetching Orders\n```python\n# Open orders\nopen_orders = exchange.fetch_open_orders('BTC\u002FUSDT')\n\n# Closed orders\nclosed_orders = exchange.fetch_closed_orders('BTC\u002FUSDT')\n\n# All orders (open + closed)\nall_orders = exchange.fetch_orders('BTC\u002FUSDT')\n\n# Single order by ID\norder = exchange.fetch_order(order_id, 'BTC\u002FUSDT')\n```\n\n### Fetching Trades\n```python\n# Recent public trades\ntrades = exchange.fetch_trades('BTC\u002FUSDT', limit=10)\n\n# Your trades (requires authentication)\nmy_trades = exchange.fetch_my_trades('BTC\u002FUSDT')\n```\n\n### Canceling Orders\n```python\n# Cancel single order\nexchange.cancel_order(order_id, 'BTC\u002FUSDT')\n\n# Cancel all orders for a symbol\nexchange.cancel_all_orders('BTC\u002FUSDT')\n```\n\n## WebSocket Operations (Real-time)\n\n### Watching Ticker (Live Price Updates)\n```python\nimport asyncio\nimport ccxt.pro as ccxtpro\n\nasync def main():\n    exchange = ccxtpro.binance()\n    while True:\n        ticker = await exchange.watch_ticker('BTC\u002FUSDT')\n        print(ticker['last'], ticker['timestamp'])\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n### Watching Order Book (Live Depth Updates)\n```python\nasync def main():\n    exchange = ccxtpro.binance()\n    while True:\n        orderbook = await exchange.watch_order_book('BTC\u002FUSDT')\n        print('Best bid:', orderbook['bids'][0])\n        print('Best ask:', orderbook['asks'][0])\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n### Watching Trades (Live Trade Stream)\n```python\nasync def main():\n    exchange = ccxtpro.binance()\n    while True:\n        trades = await exchange.watch_trades('BTC\u002FUSDT')\n        for trade in trades:\n            print(trade['price'], trade['amount'], trade['side'])\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n### Watching Your Orders (Live Order Updates)\n```python\nasync def main():\n    exchange = ccxtpro.binance({\n        'apiKey': 'YOUR_API_KEY',\n        'secret': 'YOUR_SECRET'\n    })\n    while True:\n        orders = await exchange.watch_orders('BTC\u002FUSDT')\n        for order in orders:\n            print(order['id'], order['status'], order['filled'])\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n### Watching Balance (Live Balance Updates)\n```python\nasync def main():\n    exchange = ccxtpro.binance({\n        'apiKey': 'YOUR_API_KEY',\n        'secret': 'YOUR_SECRET'\n    })\n    while True:\n        balance = await exchange.watch_balance()\n        print('BTC:', balance['BTC'])\n        print('USDT:', balance['USDT'])\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n### Watching Multiple Symbols\n```python\nasync def main():\n    exchange = ccxtpro.binance()\n    symbols = ['BTC\u002FUSDT', 'ETH\u002FUSDT', 'SOL\u002FUSDT']\n\n    while True:\n        # Watch all symbols concurrently\n        tickers = await exchange.watch_tickers(symbols)\n        for symbol, ticker in tickers.items():\n            print(symbol, ticker['last'])\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n## Complete Method Reference\n\n### Market Data Methods\n\n#### Tickers & Prices\n- `fetchTicker(symbol)` - Fetch ticker for one symbol\n- `fetchTickers([symbols])` - Fetch multiple tickers at once\n- `fetchBidsAsks([symbols])` - Fetch best bid\u002Fask for multiple symbols\n- `fetchLastPrices([symbols])` - Fetch last prices\n- `fetchMarkPrices([symbols])` - Fetch mark prices (derivatives)\n\n#### Order Books\n- `fetchOrderBook(symbol, limit)` - Fetch order book\n- `fetchOrderBooks([symbols])` - Fetch multiple order books\n- `fetchL2OrderBook(symbol)` - Fetch level 2 order book\n- `fetchL3OrderBook(symbol)` - Fetch level 3 order book (if supported)\n\n#### Trades\n- `fetchTrades(symbol, since, limit)` - Fetch public trades\n- `fetchMyTrades(symbol, since, limit)` - Fetch your trades (auth required)\n- `fetchOrderTrades(orderId, symbol)` - Fetch trades for specific order\n\n#### OHLCV (Candlesticks)\n- `fetchOHLCV(symbol, timeframe, since, limit)` - Fetch candlestick data\n- `fetchIndexOHLCV(symbol, timeframe)` - Fetch index price OHLCV\n- `fetchMarkOHLCV(symbol, timeframe)` - Fetch mark price OHLCV\n- `fetchPremiumIndexOHLCV(symbol, timeframe)` - Fetch premium index OHLCV\n\n### Account & Balance\n\n- `fetchBalance()` - Fetch account balance (auth required)\n- `fetchAccounts()` - Fetch sub-accounts\n- `fetchLedger(code, since, limit)` - Fetch ledger history\n- `fetchLedgerEntry(id, code)` - Fetch specific ledger entry\n- `fetchTransactions(code, since, limit)` - Fetch transactions\n- `fetchDeposits(code, since, limit)` - Fetch deposit history\n- `fetchWithdrawals(code, since, limit)` - Fetch withdrawal history\n- `fetchDepositsWithdrawals(code, since, limit)` - Fetch both deposits and withdrawals\n\n### Trading Methods\n\n#### Creating Orders\n- `createOrder(symbol, type, side, amount, price, params)` - Create order (generic)\n- `createLimitOrder(symbol, side, amount, price)` - Create limit order\n- `createMarketOrder(symbol, side, amount)` - Create market order\n- `createLimitBuyOrder(symbol, amount, price)` - Buy limit order\n- `createLimitSellOrder(symbol, amount, price)` - Sell limit order\n- `createMarketBuyOrder(symbol, amount)` - Buy market order\n- `createMarketSellOrder(symbol, amount)` - Sell market order\n- `createMarketBuyOrderWithCost(symbol, cost)` - Buy with specific cost\n- `createStopLimitOrder(symbol, side, amount, price, stopPrice)` - Stop-limit order\n- `createStopMarketOrder(symbol, side, amount, stopPrice)` - Stop-market order\n- `createStopLossOrder(symbol, side, amount, stopPrice)` - Stop-loss order\n- `createTakeProfitOrder(symbol, side, amount, takeProfitPrice)` - Take-profit order\n- `createTrailingAmountOrder(symbol, side, amount, trailingAmount)` - Trailing stop\n- `createTrailingPercentOrder(symbol, side, amount, trailingPercent)` - Trailing stop %\n- `createTriggerOrder(symbol, side, amount, triggerPrice)` - Trigger order\n- `createPostOnlyOrder(symbol, side, amount, price)` - Post-only order\n- `createReduceOnlyOrder(symbol, side, amount, price)` - Reduce-only order\n- `createOrders([orders])` - Create multiple orders at once\n- `createOrderWithTakeProfitAndStopLoss(symbol, type, side, amount, price, tpPrice, slPrice)` - OCO order\n\n#### Managing Orders\n- `fetchOrder(orderId, symbol)` - Fetch single order\n- `fetchOrders(symbol, since, limit)` - Fetch all orders\n- `fetchOpenOrders(symbol, since, limit)` - Fetch open orders\n- `fetchClosedOrders(symbol, since, limit)` - Fetch closed orders\n- `fetchCanceledOrders(symbol, since, limit)` - Fetch canceled orders\n- `fetchOpenOrder(orderId, symbol)` - Fetch specific open order\n- `fetchOrdersByStatus(status, symbol)` - Fetch orders by status\n- `cancelOrder(orderId, symbol)` - Cancel single order\n- `cancelOrders([orderIds], symbol)` - Cancel multiple orders\n- `cancelAllOrders(symbol)` - Cancel all orders for symbol\n- `editOrder(orderId, symbol, type, side, amount, price)` - Modify order\n\n### Margin & Leverage\n\n- `fetchBorrowRate(code)` - Fetch borrow rate for margin\n- `fetchBorrowRates([codes])` - Fetch multiple borrow rates\n- `fetchBorrowRateHistory(code, since, limit)` - Historical borrow rates\n- `fetchCrossBorrowRate(code)` - Cross margin borrow rate\n- `fetchIsolatedBorrowRate(symbol, code)` - Isolated margin borrow rate\n- `borrowMargin(code, amount, symbol)` - Borrow margin\n- `repayMargin(code, amount, symbol)` - Repay margin\n- `fetchLeverage(symbol)` - Fetch leverage\n- `setLeverage(leverage, symbol)` - Set leverage\n- `fetchLeverageTiers(symbols)` - Fetch leverage tiers\n- `fetchMarketLeverageTiers(symbol)` - Leverage tiers for market\n- `setMarginMode(marginMode, symbol)` - Set margin mode (cross\u002Fisolated)\n- `fetchMarginMode(symbol)` - Fetch margin mode\n\n### Derivatives & Futures\n\n#### Positions\n- `fetchPosition(symbol)` - Fetch single position\n- `fetchPositions([symbols])` - Fetch all positions\n- `fetchPositionsForSymbol(symbol)` - Fetch positions for symbol\n- `fetchPositionHistory(symbol, since, limit)` - Position history\n- `fetchPositionsHistory(symbols, since, limit)` - Multiple position history\n- `fetchPositionMode(symbol)` - Fetch position mode (one-way\u002Fhedge)\n- `setPositionMode(hedged, symbol)` - Set position mode\n- `closePosition(symbol, side)` - Close position\n- `closeAllPositions()` - Close all positions\n\n#### Funding & Settlement\n- `fetchFundingRate(symbol)` - Current funding rate\n- `fetchFundingRates([symbols])` - Multiple funding rates\n- `fetchFundingRateHistory(symbol, since, limit)` - Funding rate history\n- `fetchFundingHistory(symbol, since, limit)` - Your funding payments\n- `fetchFundingInterval(symbol)` - Funding interval\n- `fetchSettlementHistory(symbol, since, limit)` - Settlement history\n- `fetchMySettlementHistory(symbol, since, limit)` - Your settlement history\n\n#### Open Interest & Liquidations\n- `fetchOpenInterest(symbol)` - Open interest for symbol\n- `fetchOpenInterests([symbols])` - Multiple open interests\n- `fetchOpenInterestHistory(symbol, timeframe, since, limit)` - OI history\n- `fetchLiquidations(symbol, since, limit)` - Public liquidations\n- `fetchMyLiquidations(symbol, since, limit)` - Your liquidations\n\n#### Options\n- `fetchOption(symbol)` - Fetch option info\n- `fetchOptionChain(code)` - Fetch option chain\n- `fetchGreeks(symbol)` - Fetch option greeks\n- `fetchVolatilityHistory(code, since, limit)` - Volatility history\n- `fetchUnderlyingAssets()` - Fetch underlying assets\n\n### Fees & Limits\n\n- `fetchTradingFee(symbol)` - Trading fee for symbol\n- `fetchTradingFees([symbols])` - Trading fees for multiple symbols\n- `fetchTradingLimits([symbols])` - Trading limits\n- `fetchTransactionFee(code)` - Transaction\u002Fwithdrawal fee\n- `fetchTransactionFees([codes])` - Multiple transaction fees\n- `fetchDepositWithdrawFee(code)` - Deposit\u002Fwithdrawal fee\n- `fetchDepositWithdrawFees([codes])` - Multiple deposit\u002Fwithdraw fees\n\n### Deposits & Withdrawals\n\n- `fetchDepositAddress(code, params)` - Get deposit address\n- `fetchDepositAddresses([codes])` - Multiple deposit addresses\n- `fetchDepositAddressesByNetwork(code)` - Addresses by network\n- `createDepositAddress(code, params)` - Create new deposit address\n- `fetchDeposit(id, code)` - Fetch single deposit\n- `fetchWithdrawal(id, code)` - Fetch single withdrawal\n- `fetchWithdrawAddresses(code)` - Fetch withdrawal addresses\n- `fetchWithdrawalWhitelist(code)` - Fetch whitelist\n- `withdraw(code, amount, address, tag, params)` - Withdraw funds\n- `deposit(code, amount, params)` - Deposit funds (if supported)\n\n### Transfer & Convert\n\n- `transfer(code, amount, fromAccount, toAccount)` - Internal transfer\n- `fetchTransfer(id, code)` - Fetch transfer info\n- `fetchTransfers(code, since, limit)` - Fetch transfer history\n- `fetchConvertCurrencies()` - Currencies available for convert\n- `fetchConvertQuote(fromCode, toCode, amount)` - Get conversion quote\n- `createConvertTrade(fromCode, toCode, amount)` - Execute conversion\n- `fetchConvertTrade(id)` - Fetch convert trade\n- `fetchConvertTradeHistory(code, since, limit)` - Convert history\n\n### Market Info\n\n- `fetchMarkets()` - Fetch all markets\n- `fetchCurrencies()` - Fetch all currencies\n- `fetchTime()` - Fetch exchange server time\n- `fetchStatus()` - Fetch exchange status\n- `fetchBorrowInterest(code, symbol, since, limit)` - Borrow interest paid\n- `fetchLongShortRatio(symbol, timeframe, since, limit)` - Long\u002Fshort ratio\n- `fetchLongShortRatioHistory(symbol, timeframe, since, limit)` - L\u002FS ratio history\n\n### WebSocket Methods (ccxt.pro)\n\nAll REST methods have WebSocket equivalents with `watch*` prefix:\n\n#### Real-time Market Data\n- `watchTicker(symbol)` - Watch single ticker\n- `watchTickers([symbols])` - Watch multiple tickers\n- `watchOrderBook(symbol)` - Watch order book updates\n- `watchOrderBookForSymbols([symbols])` - Watch multiple order books\n- `watchTrades(symbol)` - Watch public trades\n- `watchOHLCV(symbol, timeframe)` - Watch candlestick updates\n- `watchBidsAsks([symbols])` - Watch best bid\u002Fask\n\n#### Real-time Account Data (Auth Required)\n- `watchBalance()` - Watch balance updates\n- `watchOrders(symbol)` - Watch your order updates\n- `watchMyTrades(symbol)` - Watch your trade updates\n- `watchPositions([symbols])` - Watch position updates\n- `watchPositionsForSymbol(symbol)` - Watch positions for symbol\n\n### Authentication Required\n\nMethods marked with 🔒 require API credentials:\n\n- All `create*` methods (creating orders, addresses)\n- All `cancel*` methods (canceling orders)\n- All `edit*` methods (modifying orders)\n- All `fetchMy*` methods (your trades, orders)\n- `fetchBalance`, `fetchLedger`, `fetchAccounts`\n- `withdraw`, `transfer`, `deposit`\n- Margin\u002Fleverage methods\n- Position methods\n- `watchBalance`, `watchOrders`, `watchMyTrades`, `watchPositions`\n\n### Checking Method Availability\n\nNot all exchanges support all methods. Check before using:\n\n```\n\u002F\u002F Check if method is supported\nif (exchange.has['fetchOHLCV']) {\n    const candles = await exchange.fetchOHLCV('BTC\u002FUSDT', '1h')\n}\n\n\u002F\u002F Check multiple capabilities\nconsole.log(exchange.has)\n\u002F\u002F {\n\u002F\u002F   fetchTicker: true,\n\u002F\u002F   fetchOHLCV: true,\n\u002F\u002F   fetchMyTrades: true,\n\u002F\u002F   fetchPositions: false,\n\u002F\u002F   ...\n\u002F\u002F }\n```\n\n### Method Naming Convention\n\n- `fetch*` - REST API methods (HTTP requests)\n- `watch*` - WebSocket methods (real-time streams)\n- `create*` - Create new resources (orders, addresses)\n- `cancel*` - Cancel existing resources\n- `edit*` - Modify existing resources\n- `set*` - Configure settings (leverage, margin mode)\n- `*Ws` suffix - WebSocket variant (some exchanges)\n\n\n\n## Proxy Configuration\n\nCCXT supports HTTP, HTTPS, and SOCKS proxies for both REST and WebSocket connections.\n\n### Setting Proxy\n\n```\n\u002F\u002F HTTP Proxy\nexchange.httpProxy = 'http:\u002F\u002Fyour-proxy-host:port'\n\n\u002F\u002F HTTPS Proxy  \nexchange.httpsProxy = 'https:\u002F\u002Fyour-proxy-host:port'\n\n\u002F\u002F SOCKS Proxy\nexchange.socksProxy = 'socks:\u002F\u002Fyour-proxy-host:port'\n\n\u002F\u002F Proxy with authentication\nexchange.httpProxy = 'http:\u002F\u002Fuser:pass@proxy-host:port'\n```\n\n### Proxy for WebSocket\n\nWebSocket connections also respect proxy settings:\n\n```\nexchange.httpsProxy = 'https:\u002F\u002Fproxy:8080'\n\u002F\u002F WebSocket connections will use this proxy\n```\n\n### Testing Proxy Connection\n\n```\nexchange.httpProxy = 'http:\u002F\u002Flocalhost:8080'\ntry {\n    await exchange.fetchTicker('BTC\u002FUSDT')\n    console.log('Proxy working!')\n} catch (error) {\n    console.error('Proxy connection failed:', error)\n}\n```\n\n## WebSocket-Specific Methods\n\nSome exchanges provide WebSocket variants of REST methods for faster order placement and management. These use the `*Ws` suffix:\n\n### Trading via WebSocket\n\n**Creating Orders:**\n- `createOrderWs` - Create order via WebSocket (faster than REST)\n- `createLimitOrderWs` - Create limit order via WebSocket\n- `createMarketOrderWs` - Create market order via WebSocket\n- `createLimitBuyOrderWs` - Buy limit order via WebSocket\n- `createLimitSellOrderWs` - Sell limit order via WebSocket\n- `createMarketBuyOrderWs` - Buy market order via WebSocket\n- `createMarketSellOrderWs` - Sell market order via WebSocket\n- `createStopLimitOrderWs` - Stop-limit order via WebSocket\n- `createStopMarketOrderWs` - Stop-market order via WebSocket\n- `createStopLossOrderWs` - Stop-loss order via WebSocket\n- `createTakeProfitOrderWs` - Take-profit order via WebSocket\n- `createTrailingAmountOrderWs` - Trailing stop via WebSocket\n- `createTrailingPercentOrderWs` - Trailing stop % via WebSocket\n- `createPostOnlyOrderWs` - Post-only order via WebSocket\n- `createReduceOnlyOrderWs` - Reduce-only order via WebSocket\n\n**Managing Orders:**\n- `editOrderWs` - Edit order via WebSocket\n- `cancelOrderWs` - Cancel order via WebSocket (faster than REST)\n- `cancelOrdersWs` - Cancel multiple orders via WebSocket\n- `cancelAllOrdersWs` - Cancel all orders via WebSocket\n\n**Fetching Data:**\n- `fetchOrderWs` - Fetch order via WebSocket\n- `fetchOrdersWs` - Fetch orders via WebSocket\n- `fetchOpenOrdersWs` - Fetch open orders via WebSocket\n- `fetchClosedOrdersWs` - Fetch closed orders via WebSocket\n- `fetchMyTradesWs` - Fetch your trades via WebSocket\n- `fetchBalanceWs` - Fetch balance via WebSocket\n- `fetchPositionWs` - Fetch position via WebSocket\n- `fetchPositionsWs` - Fetch positions via WebSocket\n- `fetchPositionsForSymbolWs` - Fetch positions for symbol via WebSocket\n- `fetchTradingFeesWs` - Fetch trading fees via WebSocket\n\n### When to Use WebSocket Methods\n\n**Use `*Ws` methods when:**\n- You need faster order placement (lower latency)\n- You're already connected via WebSocket\n- You want to reduce REST API rate limit usage\n- Trading strategies require sub-100ms latency\n\n**Use REST methods when:**\n- You need guaranteed execution confirmation\n- You're making one-off requests\n- The exchange doesn't support the WebSocket variant\n- You need detailed error responses\n\n### Example: Order Placement Comparison\n\n**REST API (slower, more reliable):**\n```\nconst order = await exchange.createOrder('BTC\u002FUSDT', 'limit', 'buy', 0.01, 50000)\n```\n\n**WebSocket API (faster, lower latency):**\n```\nconst order = await exchange.createOrderWs('BTC\u002FUSDT', 'limit', 'buy', 0.01, 50000)\n```\n\n### Checking WebSocket Method Availability\n\nNot all exchanges support WebSocket trading methods:\n\n```\nif (exchange.has['createOrderWs']) {\n    \u002F\u002F Exchange supports WebSocket order creation\n    const order = await exchange.createOrderWs('BTC\u002FUSDT', 'limit', 'buy', 0.01, 50000)\n} else {\n    \u002F\u002F Fall back to REST\n    const order = await exchange.createOrder('BTC\u002FUSDT', 'limit', 'buy', 0.01, 50000)\n}\n```\n\n\n## Authentication\n\n### Setting API Keys\n\n```python\nimport os\n\n# During instantiation (recommended)\nexchange = ccxt.binance({\n    'apiKey': os.environ.get('BINANCE_API_KEY'),\n    'secret': os.environ.get('BINANCE_SECRET'),\n    'enableRateLimit': True\n})\n\n# After instantiation\nexchange.apiKey = os.environ.get('BINANCE_API_KEY')\nexchange.secret = os.environ.get('BINANCE_SECRET')\n```\n\n### Testing Authentication\n```python\ntry:\n    balance = exchange.fetch_balance()\n    print('Authentication successful!')\nexcept ccxt.AuthenticationError:\n    print('Invalid API credentials')\n```\n\n## Error Handling\n\n### Exception Hierarchy\n```\nBaseError\n├─ NetworkError (recoverable - retry)\n│  ├─ RequestTimeout\n│  ├─ ExchangeNotAvailable\n│  ├─ RateLimitExceeded\n│  └─ DDoSProtection\n└─ ExchangeError (non-recoverable - don't retry)\n   ├─ AuthenticationError\n   ├─ InsufficientFunds\n   ├─ InvalidOrder\n   └─ NotSupported\n```\n\n### Basic Error Handling\n```python\nimport ccxt\n\ntry:\n    ticker = exchange.fetch_ticker('BTC\u002FUSDT')\nexcept ccxt.NetworkError as e:\n    print('Network error - retry:', str(e))\nexcept ccxt.ExchangeError as e:\n    print('Exchange error - do not retry:', str(e))\nexcept Exception as e:\n    print('Unknown error:', str(e))\n```\n\n### Specific Exception Handling\n```python\ntry:\n    order = exchange.create_order('BTC\u002FUSDT', 'limit', 'buy', 0.01, 50000)\nexcept ccxt.InsufficientFunds:\n    print('Not enough balance')\nexcept ccxt.InvalidOrder:\n    print('Invalid order parameters')\nexcept ccxt.RateLimitExceeded:\n    print('Rate limit hit - wait before retrying')\n    exchange.sleep(1000)  # Wait 1 second\nexcept ccxt.AuthenticationError:\n    print('Check your API credentials')\n```\n\n### Retry Logic for Network Errors\n```python\ndef fetch_with_retry(max_retries=3):\n    for i in range(max_retries):\n        try:\n            return exchange.fetch_ticker('BTC\u002FUSDT')\n        except ccxt.NetworkError:\n            if i \u003C max_retries - 1:\n                print(f'Retry {i + 1}\u002F{max_retries}')\n                exchange.sleep(1000 * (i + 1))  # Exponential backoff\n            else:\n                raise\n```\n\n## Async vs Sync\n\n### When to Use Sync\n- Simple scripts\n- Single exchange operations\n- Jupyter notebooks\n- Quick testing\n\n### When to Use Async\n- Multiple concurrent operations\n- WebSocket connections (required)\n- High-performance trading bots\n- Multiple exchange monitoring\n\n### Sync Example\n```python\nimport ccxt\n\nexchange = ccxt.binance({'enableRateLimit': True})\nticker = exchange.fetch_ticker('BTC\u002FUSDT')\nprint(ticker['last'])\n```\n\n### Async Example\n```python\nimport asyncio\nimport ccxt.async_support as ccxt\n\nasync def main():\n    exchange = ccxt.binance({'enableRateLimit': True})\n    ticker = await exchange.fetch_ticker('BTC\u002FUSDT')\n    print(ticker['last'])\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n### Multiple Exchanges Async\n```python\nasync def fetch_all():\n    exchanges = [\n        ccxt.binance({'enableRateLimit': True}),\n        ccxt.coinbase({'enableRateLimit': True}),\n        ccxt.kraken({'enableRateLimit': True})\n    ]\n\n    # Fetch concurrently\n    tasks = [ex.fetch_ticker('BTC\u002FUSDT') for ex in exchanges]\n    tickers = await asyncio.gather(*tasks, return_exceptions=True)\n\n    for ex, ticker in zip(exchanges, tickers):\n        if isinstance(ticker, Exception):\n            print(f'{ex.id}: ERROR - {ticker}')\n        else:\n            print(f'{ex.id}: ${ticker[\"last\"]}')\n        await ex.close()\n\nasyncio.run(fetch_all())\n```\n\n## Rate Limiting\n\n### Built-in Rate Limiter (Recommended)\n```python\nexchange = ccxt.binance({\n    'enableRateLimit': True  # Automatically throttles requests\n})\n```\n\n### Manual Delays\n```python\nexchange.fetch_ticker('BTC\u002FUSDT')\nexchange.sleep(1000)  # Wait 1 second (milliseconds)\nexchange.fetch_ticker('ETH\u002FUSDT')\n```\n\n### Checking Rate Limit\n```python\nprint(exchange.rateLimit)  # Milliseconds between requests\n```\n\n## Common Pitfalls\n\n### Forgetting `await` in Async Mode\n```python\n# Wrong - returns coroutine, not data\nasync def wrong():\n    ticker = exchange.fetch_ticker('BTC\u002FUSDT')  # Missing await!\n    print(ticker['last'])  # ERROR\n\n# Correct\nasync def correct():\n    ticker = await exchange.fetch_ticker('BTC\u002FUSDT')\n    print(ticker['last'])  # Works!\n```\n\n### Using Sync for WebSocket\n```python\n# Wrong - WebSocket requires async\nimport ccxt.pro as ccxtpro\nexchange = ccxtpro.binance()\nticker = exchange.watch_ticker('BTC\u002FUSDT')  # ERROR: Need await!\n\n# Correct\nimport asyncio\nimport ccxt.pro as ccxtpro\n\nasync def main():\n    exchange = ccxtpro.binance()\n    ticker = await exchange.watch_ticker('BTC\u002FUSDT')\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n### Not Closing Async Exchange\n```python\n# Wrong - resource leak\nasync def wrong():\n    exchange = ccxt.binance()\n    await exchange.fetch_ticker('BTC\u002FUSDT')\n    # Forgot to close!\n\n# Correct\nasync def correct():\n    exchange = ccxt.binance()\n    try:\n        await exchange.fetch_ticker('BTC\u002FUSDT')\n    finally:\n        await exchange.close()\n```\n\n### Using Sync in Async Code\n```python\n# Wrong - blocks event loop\nasync def wrong():\n    exchange = ccxt.binance()  # Sync import!\n    ticker = exchange.fetch_ticker('BTC\u002FUSDT')  # Blocking!\n\n# Correct\nimport ccxt.async_support as ccxt\n\nasync def correct():\n    exchange = ccxt.binance()\n    ticker = await exchange.fetch_ticker('BTC\u002FUSDT')\n    await exchange.close()\n```\n\n### Using REST for Real-time Monitoring\n```python\n# Wrong - wastes rate limits\nwhile True:\n    ticker = exchange.fetch_ticker('BTC\u002FUSDT')  # REST\n    print(ticker['last'])\n    exchange.sleep(1000)\n\n# Correct - use WebSocket\nimport ccxt.pro as ccxtpro\n\nasync def correct():\n    exchange = ccxtpro.binance()\n    while True:\n        ticker = await exchange.watch_ticker('BTC\u002FUSDT')  # WebSocket\n        print(ticker['last'])\n    await exchange.close()\n```\n\n## Troubleshooting\n\n### Common Issues\n\n**1. \"ModuleNotFoundError: No module named 'ccxt'\"**\n- Solution: Run `pip install ccxt`\n\n**2. \"RateLimitExceeded\"**\n- Solution: Enable rate limiter: `'enableRateLimit': True`\n- Or add manual delays between requests\n\n**3. \"AuthenticationError\"**\n- Solution: Check API key and secret\n- Verify API key permissions on exchange\n- Check system clock is synced (use NTP)\n\n**4. \"InvalidNonce\"**\n- Solution: Sync system clock\n- Use only one exchange instance per API key\n\n**5. \"InsufficientFunds\"**\n- Solution: Check available balance (`balance['BTC']['free']`)\n- Account for trading fees\n\n**6. \"ExchangeNotAvailable\"**\n- Solution: Check exchange status\u002Fmaintenance\n- Retry after a delay\n\n**7. SSL\u002FCertificate errors**\n- Solution: Update certifi: `pip install --upgrade certifi`\n\n**8. Slow performance**\n- Solution: Install performance enhancements:\n  - `pip install orjson` (faster JSON)\n  - `pip install coincurve` (faster signing)\n\n### Debugging\n\n```python\n# Enable verbose logging\nexchange.verbose = True\n\n# Check exchange capabilities\nprint(exchange.has)\n# {\n#   'fetchTicker': True,\n#   'fetchOrderBook': True,\n#   'createOrder': True,\n#   ...\n# }\n\n# Check market information\nprint(exchange.markets['BTC\u002FUSDT'])\n\n# Check last request\u002Fresponse\nprint(exchange.last_http_response)\nprint(exchange.last_json_response)\n```\n\n## Learn More\n\n- [CCXT Manual](https:\u002F\u002Fdocs.ccxt.com\u002F)\n- [CCXT Pro Documentation](https:\u002F\u002Fdocs.ccxt.com\u002Fen\u002Flatest\u002Fccxt.pro.html)\n- [Supported Exchanges](https:\u002F\u002Fgithub.com\u002Fccxt\u002Fccxt#supported-cryptocurrency-exchange-markets)\n- [GitHub Repository](https:\u002F\u002Fgithub.com\u002Fccxt\u002Fccxt)\n","# CCXT for Python\n\nA comprehensive guide to using CCXT in Python projects for cryptocurrency exchange integration.\n\n## Installation\n\n### REST API (Standard)\n```bash\npip install ccxt\n```\n\n### WebSocket API (Real-time, ccxt.pro)\n```bash\npip install ccxt\n```\n\n### Optional Performance Enhancements\n```bash\npip install orjson      # Faster JSON parsing\npip install coincurve   # Faster ECDSA signing (45ms → 0.05ms)\n```\n\nBoth REST and WebSocket APIs are included in the same package.\n\n## Quick Start\n\n### REST API - Synchronous\n```python\nimport ccxt\n\nexchange = ccxt.binance()\nexchange.load_markets()\nticker = exchange.fetch_ticker('BTC\u002FUSDT')\nprint(ticker)\n```\n\n### REST API - Asynchronous\n```python\nimport asyncio\nimport ccxt.async_support as ccxt\n\nasync def main():\n    exchange = ccxt.binance()\n    await exchange.load_markets()\n    ticker = await exchange.fetch_ticker('BTC\u002FUSDT')\n    print(ticker)\n    await exchange.close()  # Important!\n\nasyncio.run(main())\n```\n\n### WebSocket API - Real-time Updates\n```python\nimport asyncio\nimport ccxt.pro as ccxtpro\n\nasync def main():\n    exchange = ccxtpro.binance()\n    while True:\n        ticker = await exchange.watch_ticker('BTC\u002FUSDT')\n        print(ticker)  # Live updates!\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n## REST vs WebSocket\n\n| Import | For REST | For WebSocket |\n|--------|----------|---------------|\n| **Sync** | `import ccxt` | (WebSocket requires async) |\n| **Async** | `import ccxt.async_support as ccxt` | `import ccxt.pro as ccxtpro` |\n\n| Feature | REST API | WebSocket API |\n|---------|----------|---------------|\n| **Use for** | One-time queries, placing orders | Real-time monitoring, live price feeds |\n| **Method prefix** | `fetch_*` (fetch_ticker, fetch_order_book) | `watch_*` (watch_ticker, watch_order_book) |\n| **Speed** | Slower (HTTP request\u002Fresponse) | Faster (persistent connection) |\n| **Rate limits** | Strict (1-2 req\u002Fsec) | More lenient (continuous stream) |\n| **Best for** | Trading, account management | Price monitoring, arbitrage detection |\n\n**When to use REST:**\n- Placing orders\n- Fetching account balance\n- One-time data queries\n- Order management (cancel, fetch orders)\n\n**When to use WebSocket:**\n- Real-time price monitoring\n- Live orderbook updates\n- Arbitrage detection\n- Portfolio tracking with live updates\n\n## Creating Exchange Instance\n\n### REST API - Synchronous\n```python\nimport ccxt\n\n# Public API (no authentication)\nexchange = ccxt.binance({\n    'enableRateLimit': True  # Recommended!\n})\n\n# Private API (with authentication)\nexchange = ccxt.binance({\n    'apiKey': 'YOUR_API_KEY',\n    'secret': 'YOUR_SECRET',\n    'enableRateLimit': True\n})\n```\n\n### REST API - Asynchronous\n```python\nimport ccxt.async_support as ccxt\n\nexchange = ccxt.binance({\n    'apiKey': 'YOUR_API_KEY',\n    'secret': 'YOUR_SECRET',\n    'enableRateLimit': True\n})\n\n# Always close when done\nawait exchange.close()\n```\n\n### WebSocket API\n```python\nimport ccxt.pro as ccxtpro\n\n# Public WebSocket\nexchange = ccxtpro.binance()\n\n# Private WebSocket (with authentication)\nexchange = ccxtpro.binance({\n    'apiKey': 'YOUR_API_KEY',\n    'secret': 'YOUR_SECRET'\n})\n\n# Always close when done\nawait exchange.close()\n```\n\n## Common REST Operations\n\n### Loading Markets\n```python\n# Load all available trading pairs\nexchange.load_markets()\n\n# Access market information\nbtc_market = exchange.market('BTC\u002FUSDT')\nprint(btc_market['limits']['amount']['min'])  # Minimum order amount\n```\n\n### Fetching Ticker\n```python\n# Single ticker\nticker = exchange.fetch_ticker('BTC\u002FUSDT')\nprint(ticker['last'])      # Last price\nprint(ticker['bid'])       # Best bid\nprint(ticker['ask'])       # Best ask\nprint(ticker['volume'])    # 24h volume\n\n# Multiple tickers (if supported)\ntickers = exchange.fetch_tickers(['BTC\u002FUSDT', 'ETH\u002FUSDT'])\n```\n\n### Fetching Order Book\n```python\n# Full orderbook\norderbook = exchange.fetch_order_book('BTC\u002FUSDT')\nprint(orderbook['bids'][0])  # [price, amount]\nprint(orderbook['asks'][0])  # [price, amount]\n\n# Limited depth\norderbook = exchange.fetch_order_book('BTC\u002FUSDT', 5)  # Top 5 levels\n```\n\n### Creating Orders\n\n#### Limit Order\n```python\n# Buy limit order\norder = exchange.create_limit_buy_order('BTC\u002FUSDT', 0.01, 50000)\nprint(order['id'])\n\n# Sell limit order\norder = exchange.create_limit_sell_order('BTC\u002FUSDT', 0.01, 60000)\n\n# Generic limit order\norder = exchange.create_order('BTC\u002FUSDT', 'limit', 'buy', 0.01, 50000)\n```\n\n#### Market Order\n```python\n# Buy market order\norder = exchange.create_market_buy_order('BTC\u002FUSDT', 0.01)\n\n# Sell market order\norder = exchange.create_market_sell_order('BTC\u002FUSDT', 0.01)\n\n# Generic market order\norder = exchange.create_order('BTC\u002FUSDT', 'market', 'sell', 0.01)\n```\n\n### Fetching Balance\n```python\nbalance = exchange.fetch_balance()\nprint(balance['BTC']['free'])   # Available balance\nprint(balance['BTC']['used'])   # Balance in orders\nprint(balance['BTC']['total'])  # Total balance\n```\n\n### Fetching Orders\n```python\n# Open orders\nopen_orders = exchange.fetch_open_orders('BTC\u002FUSDT')\n\n# Closed orders\nclosed_orders = exchange.fetch_closed_orders('BTC\u002FUSDT')\n\n# All orders (open + closed)\nall_orders = exchange.fetch_orders('BTC\u002FUSDT')\n\n# Single order by ID\norder = exchange.fetch_order(order_id, 'BTC\u002FUSDT')\n```\n\n### Fetching Trades\n```python\n# Recent public trades\ntrades = exchange.fetch_trades('BTC\u002FUSDT', limit=10)\n\n# Your trades (requires authentication)\nmy_trades = exchange.fetch_my_trades('BTC\u002FUSDT')\n```\n\n### Canceling Orders\n```python\n# Cancel single order\nexchange.cancel_order(order_id, 'BTC\u002FUSDT')\n\n# Cancel all orders for a symbol\nexchange.cancel_all_orders('BTC\u002FUSDT')\n```\n\n## WebSocket Operations (Real-time)\n\n### Watching Ticker (Live Price Updates)\n```python\nimport asyncio\nimport ccxt.pro as ccxtpro\n\nasync def main():\n    exchange = ccxtpro.binance()\n    while True:\n        ticker = await exchange.watch_ticker('BTC\u002FUSDT')\n        print(ticker['last'], ticker['timestamp'])\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n### Watching Order Book (Live Depth Updates)\n```python\nasync def main():\n    exchange = ccxtpro.binance()\n    while True:\n        orderbook = await exchange.watch_order_book('BTC\u002FUSDT')\n        print('Best bid:', orderbook['bids'][0])\n        print('Best ask:', orderbook['asks'][0])\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n### Watching Trades (Live Trade Stream)\n```python\nasync def main():\n    exchange = ccxtpro.binance()\n    while True:\n        trades = await exchange.watch_trades('BTC\u002FUSDT')\n        for trade in trades:\n            print(trade['price'], trade['amount'], trade['side'])\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n### Watching Your Orders (Live Order Updates)\n```python\nasync def main():\n    exchange = ccxtpro.binance({\n        'apiKey': 'YOUR_API_KEY',\n        'secret': 'YOUR_SECRET'\n    })\n    while True:\n        orders = await exchange.watch_orders('BTC\u002FUSDT')\n        for order in orders:\n            print(order['id'], order['status'], order['filled'])\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n### Watching Balance (Live Balance Updates)\n```python\nasync def main():\n    exchange = ccxtpro.binance({\n        'apiKey': 'YOUR_API_KEY',\n        'secret': 'YOUR_SECRET'\n    })\n    while True:\n        balance = await exchange.watch_balance()\n        print('BTC:', balance['BTC'])\n        print('USDT:', balance['USDT'])\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n### Watching Multiple Symbols\n```python\nasync def main():\n    exchange = ccxtpro.binance()\n    symbols = ['BTC\u002FUSDT', 'ETH\u002FUSDT', 'SOL\u002FUSDT']\n\n    while True:\n        # Watch all symbols concurrently\n        tickers = await exchange.watch_tickers(symbols)\n        for symbol, ticker in tickers.items():\n            print(symbol, ticker['last'])\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n## Complete Method Reference\n\n### Market Data Methods\n\n#### Tickers & Prices\n- `fetchTicker(symbol)` - Fetch ticker for one symbol\n- `fetchTickers([symbols])` - Fetch multiple tickers at once\n- `fetchBidsAsks([symbols])` - Fetch best bid\u002Fask for multiple symbols\n- `fetchLastPrices([symbols])` - Fetch last prices\n- `fetchMarkPrices([symbols])` - Fetch mark prices (derivatives)\n\n#### Order Books\n- `fetchOrderBook(symbol, limit)` - Fetch order book\n- `fetchOrderBooks([symbols])` - Fetch multiple order books\n- `fetchL2OrderBook(symbol)` - Fetch level 2 order book\n- `fetchL3OrderBook(symbol)` - Fetch level 3 order book (if supported)\n\n#### Trades\n- `fetchTrades(symbol, since, limit)` - Fetch public trades\n- `fetchMyTrades(symbol, since, limit)` - Fetch your trades (auth required)\n- `fetchOrderTrades(orderId, symbol)` - Fetch trades for specific order\n\n#### OHLCV (Candlesticks)\n- `fetchOHLCV(symbol, timeframe, since, limit)` - Fetch candlestick data\n- `fetchIndexOHLCV(symbol, timeframe)` - Fetch index price OHLCV\n- `fetchMarkOHLCV(symbol, timeframe)` - Fetch mark price OHLCV\n- `fetchPremiumIndexOHLCV(symbol, timeframe)` - Fetch premium index OHLCV\n\n### Account & Balance\n\n- `fetchBalance()` - Fetch account balance (auth required)\n- `fetchAccounts()` - Fetch sub-accounts\n- `fetchLedger(code, since, limit)` - Fetch ledger history\n- `fetchLedgerEntry(id, code)` - Fetch specific ledger entry\n- `fetchTransactions(code, since, limit)` - Fetch transactions\n- `fetchDeposits(code, since, limit)` - Fetch deposit history\n- `fetchWithdrawals(code, since, limit)` - Fetch withdrawal history\n- `fetchDepositsWithdrawals(code, since, limit)` - Fetch both deposits and withdrawals\n\n### Trading Methods\n\n#### Creating Orders\n- `createOrder(symbol, type, side, amount, price, params)` - Create order (generic)\n- `createLimitOrder(symbol, side, amount, price)` - Create limit order\n- `createMarketOrder(symbol, side, amount)` - Create market order\n- `createLimitBuyOrder(symbol, amount, price)` - Buy limit order\n- `createLimitSellOrder(symbol, amount, price)` - Sell limit order\n- `createMarketBuyOrder(symbol, amount)` - Buy market order\n- `createMarketSellOrder(symbol, amount)` - Sell market order\n- `createMarketBuyOrderWithCost(symbol, cost)` - Buy with specific cost\n- `createStopLimitOrder(symbol, side, amount, price, stopPrice)` - Stop-limit order\n- `createStopMarketOrder(symbol, side, amount, stopPrice)` - Stop-market order\n- `createStopLossOrder(symbol, side, amount, stopPrice)` - Stop-loss order\n- `createTakeProfitOrder(symbol, side, amount, takeProfitPrice)` - Take-profit order\n- `createTrailingAmountOrder(symbol, side, amount, trailingAmount)` - Trailing stop\n- `createTrailingPercentOrder(symbol, side, amount, trailingPercent)` - Trailing stop %\n- `createTriggerOrder(symbol, side, amount, triggerPrice)` - Trigger order\n- `createPostOnlyOrder(symbol, side, amount, price)` - Post-only order\n- `createReduceOnlyOrder(symbol, side, amount, price)` - Reduce-only order\n- `createOrders([orders])` - Create multiple orders at once\n- `createOrderWithTakeProfitAndStopLoss(symbol, type, side, amount, price, tpPrice, slPrice)` - OCO order\n\n#### Managing Orders\n- `fetchOrder(orderId, symbol)` - Fetch single order\n- `fetchOrders(symbol, since, limit)` - Fetch all orders\n- `fetchOpenOrders(symbol, since, limit)` - Fetch open orders\n- `fetchClosedOrders(symbol, since, limit)` - Fetch closed orders\n- `fetchCanceledOrders(symbol, since, limit)` - Fetch canceled orders\n- `fetchOpenOrder(orderId, symbol)` - Fetch specific open order\n- `fetchOrdersByStatus(status, symbol)` - Fetch orders by status\n- `cancelOrder(orderId, symbol)` - Cancel single order\n- `cancelOrders([orderIds], symbol)` - Cancel multiple orders\n- `cancelAllOrders(symbol)` - Cancel all orders for symbol\n- `editOrder(orderId, symbol, type, side, amount, price)` - Modify order\n\n### Margin & Leverage\n\n- `fetchBorrowRate(code)` - Fetch borrow rate for margin\n- `fetchBorrowRates([codes])` - Fetch multiple borrow rates\n- `fetchBorrowRateHistory(code, since, limit)` - Historical borrow rates\n- `fetchCrossBorrowRate(code)` - Cross margin borrow rate\n- `fetchIsolatedBorrowRate(symbol, code)` - Isolated margin borrow rate\n- `borrowMargin(code, amount, symbol)` - Borrow margin\n- `repayMargin(code, amount, symbol)` - Repay margin\n- `fetchLeverage(symbol)` - Fetch leverage\n- `setLeverage(leverage, symbol)` - Set leverage\n- `fetchLeverageTiers(symbols)` - Fetch leverage tiers\n- `fetchMarketLeverageTiers(symbol)` - Leverage tiers for market\n- `setMarginMode(marginMode, symbol)` - Set margin mode (cross\u002Fisolated)\n- `fetchMarginMode(symbol)` - Fetch margin mode\n\n### Derivatives & Futures\n\n#### Positions\n- `fetchPosition(symbol)` - Fetch single position\n- `fetchPositions([symbols])` - Fetch all positions\n- `fetchPositionsForSymbol(symbol)` - Fetch positions for symbol\n- `fetchPositionHistory(symbol, since, limit)` - Position history\n- `fetchPositionsHistory(symbols, since, limit)` - Multiple position history\n- `fetchPositionMode(symbol)` - Fetch position mode (one-way\u002Fhedge)\n- `setPositionMode(hedged, symbol)` - Set position mode\n- `closePosition(symbol, side)` - Close position\n- `closeAllPositions()` - Close all positions\n\n#### Funding & Settlement\n- `fetchFundingRate(symbol)` - Current funding rate\n- `fetchFundingRates([symbols])` - Multiple funding rates\n- `fetchFundingRateHistory(symbol, since, limit)` - Funding rate history\n- `fetchFundingHistory(symbol, since, limit)` - Your funding payments\n- `fetchFundingInterval(symbol)` - Funding interval\n- `fetchSettlementHistory(symbol, since, limit)` - Settlement history\n- `fetchMySettlementHistory(symbol, since, limit)` - Your settlement history\n\n#### Open Interest & Liquidations\n- `fetchOpenInterest(symbol)` - Open interest for symbol\n- `fetchOpenInterests([symbols])` - Multiple open interests\n- `fetchOpenInterestHistory(symbol, timeframe, since, limit)` - OI history\n- `fetchLiquidations(symbol, since, limit)` - Public liquidations\n- `fetchMyLiquidations(symbol, since, limit)` - Your liquidations\n\n#### Options\n- `fetchOption(symbol)` - Fetch option info\n- `fetchOptionChain(code)` - Fetch option chain\n- `fetchGreeks(symbol)` - Fetch option greeks\n- `fetchVolatilityHistory(code, since, limit)` - Volatility history\n- `fetchUnderlyingAssets()` - Fetch underlying assets\n\n### Fees & Limits\n\n- `fetchTradingFee(symbol)` - Trading fee for symbol\n- `fetchTradingFees([symbols])` - Trading fees for multiple symbols\n- `fetchTradingLimits([symbols])` - Trading limits\n- `fetchTransactionFee(code)` - Transaction\u002Fwithdrawal fee\n- `fetchTransactionFees([codes])` - Multiple transaction fees\n- `fetchDepositWithdrawFee(code)` - Deposit\u002Fwithdrawal fee\n- `fetchDepositWithdrawFees([codes])` - Multiple deposit\u002Fwithdraw fees\n\n### Deposits & Withdrawals\n\n- `fetchDepositAddress(code, params)` - Get deposit address\n- `fetchDepositAddresses([codes])` - Multiple deposit addresses\n- `fetchDepositAddressesByNetwork(code)` - Addresses by network\n- `createDepositAddress(code, params)` - Create new deposit address\n- `fetchDeposit(id, code)` - Fetch single deposit\n- `fetchWithdrawal(id, code)` - Fetch single withdrawal\n- `fetchWithdrawAddresses(code)` - Fetch withdrawal addresses\n- `fetchWithdrawalWhitelist(code)` - Fetch whitelist\n- `withdraw(code, amount, address, tag, params)` - Withdraw funds\n- `deposit(code, amount, params)` - Deposit funds (if supported)\n\n### Transfer & Convert\n\n- `transfer(code, amount, fromAccount, toAccount)` - Internal transfer\n- `fetchTransfer(id, code)` - Fetch transfer info\n- `fetchTransfers(code, since, limit)` - Fetch transfer history\n- `fetchConvertCurrencies()` - Currencies available for convert\n- `fetchConvertQuote(fromCode, toCode, amount)` - Get conversion quote\n- `createConvertTrade(fromCode, toCode, amount)` - Execute conversion\n- `fetchConvertTrade(id)` - Fetch convert trade\n- `fetchConvertTradeHistory(code, since, limit)` - Convert history\n\n### Market Info\n\n- `fetchMarkets()` - Fetch all markets\n- `fetchCurrencies()` - Fetch all currencies\n- `fetchTime()` - Fetch exchange server time\n- `fetchStatus()` - Fetch exchange status\n- `fetchBorrowInterest(code, symbol, since, limit)` - Borrow interest paid\n- `fetchLongShortRatio(symbol, timeframe, since, limit)` - Long\u002Fshort ratio\n- `fetchLongShortRatioHistory(symbol, timeframe, since, limit)` - L\u002FS ratio history\n\n### WebSocket Methods (ccxt.pro)\n\nAll REST methods have WebSocket equivalents with `watch*` prefix:\n\n#### Real-time Market Data\n- `watchTicker(symbol)` - Watch single ticker\n- `watchTickers([symbols])` - Watch multiple tickers\n- `watchOrderBook(symbol)` - Watch order book updates\n- `watchOrderBookForSymbols([symbols])` - Watch multiple order books\n- `watchTrades(symbol)` - Watch public trades\n- `watchOHLCV(symbol, timeframe)` - Watch candlestick updates\n- `watchBidsAsks([symbols])` - Watch best bid\u002Fask\n\n#### Real-time Account Data (Auth Required)\n- `watchBalance()` - Watch balance updates\n- `watchOrders(symbol)` - Watch your order updates\n- `watchMyTrades(symbol)` - Watch your trade updates\n- `watchPositions([symbols])` - Watch position updates\n- `watchPositionsForSymbol(symbol)` - Watch positions for symbol\n\n### Authentication Required\n\nMethods marked with 🔒 require API credentials:\n\n- All `create*` methods (creating orders, addresses)\n- All `cancel*` methods (canceling orders)\n- All `edit*` methods (modifying orders)\n- All `fetchMy*` methods (your trades, orders)\n- `fetchBalance`, `fetchLedger`, `fetchAccounts`\n- `withdraw`, `transfer`, `deposit`\n- Margin\u002Fleverage methods\n- Position methods\n- `watchBalance`, `watchOrders`, `watchMyTrades`, `watchPositions`\n\n### Checking Method Availability\n\nNot all exchanges support all methods. Check before using:\n\n```\n\u002F\u002F Check if method is supported\nif (exchange.has['fetchOHLCV']) {\n    const candles = await exchange.fetchOHLCV('BTC\u002FUSDT', '1h')\n}\n\n\u002F\u002F Check multiple capabilities\nconsole.log(exchange.has)\n\u002F\u002F {\n\u002F\u002F   fetchTicker: true,\n\u002F\u002F   fetchOHLCV: true,\n\u002F\u002F   fetchMyTrades: true,\n\u002F\u002F   fetchPositions: false,\n\u002F\u002F   ...\n\u002F\u002F }\n```\n\n### Method Naming Convention\n\n- `fetch*` - REST API methods (HTTP requests)\n- `watch*` - WebSocket methods (real-time streams)\n- `create*` - Create new resources (orders, addresses)\n- `cancel*` - Cancel existing resources\n- `edit*` - Modify existing resources\n- `set*` - Configure settings (leverage, margin mode)\n- `*Ws` suffix - WebSocket variant (some exchanges)\n\n\n\n## Proxy Configuration\n\nCCXT supports HTTP, HTTPS, and SOCKS proxies for both REST and WebSocket connections.\n\n### Setting Proxy\n\n```\n\u002F\u002F HTTP Proxy\nexchange.httpProxy = 'http:\u002F\u002Fyour-proxy-host:port'\n\n\u002F\u002F HTTPS Proxy  \nexchange.httpsProxy = 'https:\u002F\u002Fyour-proxy-host:port'\n\n\u002F\u002F SOCKS Proxy\nexchange.socksProxy = 'socks:\u002F\u002Fyour-proxy-host:port'\n\n\u002F\u002F Proxy with authentication\nexchange.httpProxy = 'http:\u002F\u002Fuser:pass@proxy-host:port'\n```\n\n### Proxy for WebSocket\n\nWebSocket connections also respect proxy settings:\n\n```\nexchange.httpsProxy = 'https:\u002F\u002Fproxy:8080'\n\u002F\u002F WebSocket connections will use this proxy\n```\n\n### Testing Proxy Connection\n\n```\nexchange.httpProxy = 'http:\u002F\u002Flocalhost:8080'\ntry {\n    await exchange.fetchTicker('BTC\u002FUSDT')\n    console.log('Proxy working!')\n} catch (error) {\n    console.error('Proxy connection failed:', error)\n}\n```\n\n## WebSocket-Specific Methods\n\nSome exchanges provide WebSocket variants of REST methods for faster order placement and management. These use the `*Ws` suffix:\n\n### Trading via WebSocket\n\n**Creating Orders:**\n- `createOrderWs` - Create order via WebSocket (faster than REST)\n- `createLimitOrderWs` - Create limit order via WebSocket\n- `createMarketOrderWs` - Create market order via WebSocket\n- `createLimitBuyOrderWs` - Buy limit order via WebSocket\n- `createLimitSellOrderWs` - Sell limit order via WebSocket\n- `createMarketBuyOrderWs` - Buy market order via WebSocket\n- `createMarketSellOrderWs` - Sell market order via WebSocket\n- `createStopLimitOrderWs` - Stop-limit order via WebSocket\n- `createStopMarketOrderWs` - Stop-market order via WebSocket\n- `createStopLossOrderWs` - Stop-loss order via WebSocket\n- `createTakeProfitOrderWs` - Take-profit order via WebSocket\n- `createTrailingAmountOrderWs` - Trailing stop via WebSocket\n- `createTrailingPercentOrderWs` - Trailing stop % via WebSocket\n- `createPostOnlyOrderWs` - Post-only order via WebSocket\n- `createReduceOnlyOrderWs` - Reduce-only order via WebSocket\n\n**Managing Orders:**\n- `editOrderWs` - Edit order via WebSocket\n- `cancelOrderWs` - Cancel order via WebSocket (faster than REST)\n- `cancelOrdersWs` - Cancel multiple orders via WebSocket\n- `cancelAllOrdersWs` - Cancel all orders via WebSocket\n\n**Fetching Data:**\n- `fetchOrderWs` - Fetch order via WebSocket\n- `fetchOrdersWs` - Fetch orders via WebSocket\n- `fetchOpenOrdersWs` - Fetch open orders via WebSocket\n- `fetchClosedOrdersWs` - Fetch closed orders via WebSocket\n- `fetchMyTradesWs` - Fetch your trades via WebSocket\n- `fetchBalanceWs` - Fetch balance via WebSocket\n- `fetchPositionWs` - Fetch position via WebSocket\n- `fetchPositionsWs` - Fetch positions via WebSocket\n- `fetchPositionsForSymbolWs` - Fetch positions for symbol via WebSocket\n- `fetchTradingFeesWs` - Fetch trading fees via WebSocket\n\n### When to Use WebSocket Methods\n\n**Use `*Ws` methods when:**\n- You need faster order placement (lower latency)\n- You're already connected via WebSocket\n- You want to reduce REST API rate limit usage\n- Trading strategies require sub-100ms latency\n\n**Use REST methods when:**\n- You need guaranteed execution confirmation\n- You're making one-off requests\n- The exchange doesn't support the WebSocket variant\n- You need detailed error responses\n\n### Example: Order Placement Comparison\n\n**REST API (slower, more reliable):**\n```\nconst order = await exchange.createOrder('BTC\u002FUSDT', 'limit', 'buy', 0.01, 50000)\n```\n\n**WebSocket API (faster, lower latency):**\n```\nconst order = await exchange.createOrderWs('BTC\u002FUSDT', 'limit', 'buy', 0.01, 50000)\n```\n\n### Checking WebSocket Method Availability\n\nNot all exchanges support WebSocket trading methods:\n\n```\nif (exchange.has['createOrderWs']) {\n    \u002F\u002F Exchange supports WebSocket order creation\n    const order = await exchange.createOrderWs('BTC\u002FUSDT', 'limit', 'buy', 0.01, 50000)\n} else {\n    \u002F\u002F Fall back to REST\n    const order = await exchange.createOrder('BTC\u002FUSDT', 'limit', 'buy', 0.01, 50000)\n}\n```\n\n\n## Authentication\n\n### Setting API Keys\n\n```python\nimport os\n\n# During instantiation (recommended)\nexchange = ccxt.binance({\n    'apiKey': os.environ.get('BINANCE_API_KEY'),\n    'secret': os.environ.get('BINANCE_SECRET'),\n    'enableRateLimit': True\n})\n\n# After instantiation\nexchange.apiKey = os.environ.get('BINANCE_API_KEY')\nexchange.secret = os.environ.get('BINANCE_SECRET')\n```\n\n### Testing Authentication\n```python\ntry:\n    balance = exchange.fetch_balance()\n    print('Authentication successful!')\nexcept ccxt.AuthenticationError:\n    print('Invalid API credentials')\n```\n\n## Error Handling\n\n### Exception Hierarchy\n```\nBaseError\n├─ NetworkError (recoverable - retry)\n│  ├─ RequestTimeout\n│  ├─ ExchangeNotAvailable\n│  ├─ RateLimitExceeded\n│  └─ DDoSProtection\n└─ ExchangeError (non-recoverable - don't retry)\n   ├─ AuthenticationError\n   ├─ InsufficientFunds\n   ├─ InvalidOrder\n   └─ NotSupported\n```\n\n### Basic Error Handling\n```python\nimport ccxt\n\ntry:\n    ticker = exchange.fetch_ticker('BTC\u002FUSDT')\nexcept ccxt.NetworkError as e:\n    print('Network error - retry:', str(e))\nexcept ccxt.ExchangeError as e:\n    print('Exchange error - do not retry:', str(e))\nexcept Exception as e:\n    print('Unknown error:', str(e))\n```\n\n### Specific Exception Handling\n```python\ntry:\n    order = exchange.create_order('BTC\u002FUSDT', 'limit', 'buy', 0.01, 50000)\nexcept ccxt.InsufficientFunds:\n    print('Not enough balance')\nexcept ccxt.InvalidOrder:\n    print('Invalid order parameters')\nexcept ccxt.RateLimitExceeded:\n    print('Rate limit hit - wait before retrying')\n    exchange.sleep(1000)  # Wait 1 second\nexcept ccxt.AuthenticationError:\n    print('Check your API credentials')\n```\n\n### Retry Logic for Network Errors\n```python\ndef fetch_with_retry(max_retries=3):\n    for i in range(max_retries):\n        try:\n            return exchange.fetch_ticker('BTC\u002FUSDT')\n        except ccxt.NetworkError:\n            if i \u003C max_retries - 1:\n                print(f'Retry {i + 1}\u002F{max_retries}')\n                exchange.sleep(1000 * (i + 1))  # Exponential backoff\n            else:\n                raise\n```\n\n## Async vs Sync\n\n### When to Use Sync\n- Simple scripts\n- Single exchange operations\n- Jupyter notebooks\n- Quick testing\n\n### When to Use Async\n- Multiple concurrent operations\n- WebSocket connections (required)\n- High-performance trading bots\n- Multiple exchange monitoring\n\n### Sync Example\n```python\nimport ccxt\n\nexchange = ccxt.binance({'enableRateLimit': True})\nticker = exchange.fetch_ticker('BTC\u002FUSDT')\nprint(ticker['last'])\n```\n\n### Async Example\n```python\nimport asyncio\nimport ccxt.async_support as ccxt\n\nasync def main():\n    exchange = ccxt.binance({'enableRateLimit': True})\n    ticker = await exchange.fetch_ticker('BTC\u002FUSDT')\n    print(ticker['last'])\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n### Multiple Exchanges Async\n```python\nasync def fetch_all():\n    exchanges = [\n        ccxt.binance({'enableRateLimit': True}),\n        ccxt.coinbase({'enableRateLimit': True}),\n        ccxt.kraken({'enableRateLimit': True})\n    ]\n\n    # Fetch concurrently\n    tasks = [ex.fetch_ticker('BTC\u002FUSDT') for ex in exchanges]\n    tickers = await asyncio.gather(*tasks, return_exceptions=True)\n\n    for ex, ticker in zip(exchanges, tickers):\n        if isinstance(ticker, Exception):\n            print(f'{ex.id}: ERROR - {ticker}')\n        else:\n            print(f'{ex.id}: ${ticker[\"last\"]}')\n        await ex.close()\n\nasyncio.run(fetch_all())\n```\n\n## Rate Limiting\n\n### Built-in Rate Limiter (Recommended)\n```python\nexchange = ccxt.binance({\n    'enableRateLimit': True  # Automatically throttles requests\n})\n```\n\n### Manual Delays\n```python\nexchange.fetch_ticker('BTC\u002FUSDT')\nexchange.sleep(1000)  # Wait 1 second (milliseconds)\nexchange.fetch_ticker('ETH\u002FUSDT')\n```\n\n### Checking Rate Limit\n```python\nprint(exchange.rateLimit)  # Milliseconds between requests\n```\n\n## Common Pitfalls\n\n### Forgetting `await` in Async Mode\n```python\n# Wrong - returns coroutine, not data\nasync def wrong():\n    ticker = exchange.fetch_ticker('BTC\u002FUSDT')  # Missing await!\n    print(ticker['last'])  # ERROR\n\n# Correct\nasync def correct():\n    ticker = await exchange.fetch_ticker('BTC\u002FUSDT')\n    print(ticker['last'])  # Works!\n```\n\n### Using Sync for WebSocket\n```python\n# Wrong - WebSocket requires async\nimport ccxt.pro as ccxtpro\nexchange = ccxtpro.binance()\nticker = exchange.watch_ticker('BTC\u002FUSDT')  # ERROR: Need await!\n\n# Correct\nimport asyncio\nimport ccxt.pro as ccxtpro\n\nasync def main():\n    exchange = ccxtpro.binance()\n    ticker = await exchange.watch_ticker('BTC\u002FUSDT')\n    await exchange.close()\n\nasyncio.run(main())\n```\n\n### Not Closing Async Exchange\n```python\n# Wrong - resource leak\nasync def wrong():\n    exchange = ccxt.binance()\n    await exchange.fetch_ticker('BTC\u002FUSDT')\n    # Forgot to close!\n\n# Correct\nasync def correct():\n    exchange = ccxt.binance()\n    try:\n        await exchange.fetch_ticker('BTC\u002FUSDT')\n    finally:\n        await exchange.close()\n```\n\n### Using Sync in Async Code\n```python\n# Wrong - blocks event loop\nasync def wrong():\n    exchange = ccxt.binance()  # Sync import!\n    ticker = exchange.fetch_ticker('BTC\u002FUSDT')  # Blocking!\n\n# Correct\nimport ccxt.async_support as ccxt\n\nasync def correct():\n    exchange = ccxt.binance()\n    ticker = await exchange.fetch_ticker('BTC\u002FUSDT')\n    await exchange.close()\n```\n\n### Using REST for Real-time Monitoring\n```python\n# Wrong - wastes rate limits\nwhile True:\n    ticker = exchange.fetch_ticker('BTC\u002FUSDT')  # REST\n    print(ticker['last'])\n    exchange.sleep(1000)\n\n# Correct - use WebSocket\nimport ccxt.pro as ccxtpro\n\nasync def correct():\n    exchange = ccxtpro.binance()\n    while True:\n        ticker = await exchange.watch_ticker('BTC\u002FUSDT')  # WebSocket\n        print(ticker['last'])\n    await exchange.close()\n```\n\n## Troubleshooting\n\n### Common Issues\n\n**1. \"ModuleNotFoundError: No module named 'ccxt'\"**\n- Solution: Run `pip install ccxt`\n\n**2. \"RateLimitExceeded\"**\n- Solution: Enable rate limiter: `'enableRateLimit': True`\n- Or add manual delays between requests\n\n**3. \"AuthenticationError\"**\n- Solution: Check API key and secret\n- Verify API key permissions on exchange\n- Check system clock is synced (use NTP)\n\n**4. \"InvalidNonce\"**\n- Solution: Sync system clock\n- Use only one exchange instance per API key\n\n**5. \"InsufficientFunds\"**\n- Solution: Check available balance (`balance['BTC']['free']`)\n- Account for trading fees\n\n**6. \"ExchangeNotAvailable\"**\n- Solution: Check exchange status\u002Fmaintenance\n- Retry after a delay\n\n**7. SSL\u002FCertificate errors**\n- Solution: Update certifi: `pip install --upgrade certifi`\n\n**8. Slow performance**\n- Solution: Install performance enhancements:\n  - `pip install orjson` (faster JSON)\n  - `pip install coincurve` (faster signing)\n\n### Debugging\n\n```python\n# Enable verbose logging\nexchange.verbose = True\n\n# Check exchange capabilities\nprint(exchange.has)\n# {\n#   'fetchTicker': True,\n#   'fetchOrderBook': True,\n#   'createOrder': True,\n#   ...\n# }\n\n# Check market information\nprint(exchange.markets['BTC\u002FUSDT'])\n\n# Check last request\u002Fresponse\nprint(exchange.last_http_response)\nprint(exchange.last_json_response)\n```\n\n## Learn More\n\n- [CCXT Manual](https:\u002F\u002Fdocs.ccxt.com\u002F)\n- [CCXT Pro Documentation](https:\u002F\u002Fdocs.ccxt.com\u002Fen\u002Flatest\u002Fccxt.pro.html)\n- [Supported Exchanges](https:\u002F\u002Fgithub.com\u002Fccxt\u002Fccxt#supported-cryptocurrency-exchange-markets)\n- [GitHub Repository](https:\u002F\u002Fgithub.com\u002Fccxt\u002Fccxt)\n",{"name":5,"description":7},"master","b4414608cd5a3f87d1525b518f1c6add8363540d","skills\u002Fccxt-python",6,"https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato","https:\u002F\u002Fwww.dataqbs.com\u002Foctorato","https:\u002F\u002Fgithub.com\u002FCarlosCaPe","www.dataqbs.com"," AI-powered data engineering\r\n& consulting\r\n\r\nWe build data platforms that turn complexity into clarity — from cloud architecture and ETL pipelines to AI-driven","2026-11-14 00:21:00",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add CarlosCaPe\u002Foctorato --skill ccxt-python",{"tool":40,"command":41},"bunx","bunx skills add CarlosCaPe\u002Foctorato --skill ccxt-python",{"tool":43,"command":44},"pnpm","pnpm dlx skills add CarlosCaPe\u002Foctorato --skill ccxt-python","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fccxt-python\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"skill.json","REFERENCE","参考文档",282,"https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fccxt-python\u002Fskill.json",[55,64,72,79,87,95],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":60,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M74EVAA4A4B4AKR5TT732GP4","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":68,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M74EV4WMRDKP2NQS4YWR8PXH","wrangler","Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwrangler\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwrangler\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M74EV05MHTXKEXD4B2QJEYTF","workspace-skill-discovery","Discover and include ALL skills across the workspace — not just global ones. Use at the start of every session or when the user asks about available skills. Ensures project-level skills (under .claude\u002Fskills\u002F or skills\u002F in any repo) are never missed.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fworkspace-skill-discovery\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":83,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M74ETV78525B4VP2F28Z6NRD","workers-best-practices","Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fworkers-best-practices\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fworkers-best-practices\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M74ETR75NF67WGVEN7288ACV","winui-app","Create, build and design WinUI 3 desktop apps with C# and the Windows App SDK following Microsoft's official guidance and CommunityToolkit. Covers XAML, navigation, theming, accessibility and deployment.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwinui-app\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwinui-app\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M74ETJFRNPPNSQZ36C6HD6CW","windows-brain-script-portability","Scripts in ~\u002F.claude\u002Fscripts\u002F that run on a Windows brain: use the python3.cmd shim and not bare python3, and reconfigure stdout to UTF-8 if you print symbols. Use it when writing a brain script or triaging a Windows-only crash.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwindows-brain-script-portability\u002FSKILL.md",[],[]]