一键导入
exchange-connector
Connect to crypto exchanges (Binance, Kraken, Coinbase, etc.). Execute orders, manage API keys, stream market data.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Connect to crypto exchanges (Binance, Kraken, Coinbase, etc.). Execute orders, manage API keys, stream market data.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Complete market analysis for Crypto, Forex, and Stocks with RSI, MACD, trends, and trading recommendations.
Binary Options trading via BinaryFaster. Execute CALL/PUT trades, manage positions, track results.
Regulatory compliance across jurisdictions. KYC status, tax reporting, trading restrictions, and legal guidelines.
Social trading - copy the best traders automatically. Track whales, influencers, and top performers.
DeFi yield hunting across protocols. Find the best APY, auto-compound, manage LP positions, and optimize gas.
Derivatives trading - options, futures, and perpetuals. Advanced strategies for hedging and leverage.
| name | exchange-connector |
| description | Connect to crypto exchanges (Binance, Kraken, Coinbase, etc.). Execute orders, manage API keys, stream market data. |
| metadata | {"openclaw":{"emoji":"🔌","requires":{"bins":["python3"],"pip":["ccxt","python-dotenv"]}}} |
Connect K.I.T. to cryptocurrency exchanges for trading and market data.
This skill provides unified access to 100+ crypto exchanges via the CCXT library:
| Exchange | ID | Features |
|---|---|---|
| Binance | binance | Spot, Futures, Margin |
| Kraken | kraken | Spot, Futures |
| Coinbase | coinbase | Spot |
| KuCoin | kucoin | Spot, Futures |
| Bybit | bybit | Derivatives |
| OKX | okx | Full suite |
API keys are stored in ~/.kit/exchanges.json:
{
"binance": {
"apiKey": "your-api-key",
"secret": "your-secret",
"sandbox": false
},
"kraken": {
"apiKey": "your-api-key",
"secret": "your-secret"
}
}
⚠️ Security: Never commit API keys! Use environment variables or encrypted storage.
python3 -c "
import ccxt
exchange = ccxt.binance({'apiKey': 'KEY', 'secret': 'SECRET'})
print(exchange.fetch_balance())
"
python3 -c "
import ccxt
exchange = ccxt.binance()
ticker = exchange.fetch_ticker('BTC/USDT')
print(f\"BTC/USDT: {ticker['last']}\")
"
python3 -c "
import ccxt
exchange = ccxt.binance({'apiKey': 'KEY', 'secret': 'SECRET'})
order = exchange.create_market_buy_order('BTC/USDT', 0.001)
print(order)
"
python3 -c "
import ccxt
exchange = ccxt.binance({'apiKey': 'KEY', 'secret': 'SECRET'})
order = exchange.create_limit_buy_order('BTC/USDT', 0.001, 40000)
print(order)
"
python3 -c "
import ccxt
exchange = ccxt.binance({'apiKey': 'KEY', 'secret': 'SECRET'})
orders = exchange.fetch_open_orders('BTC/USDT')
for o in orders:
print(f\"{o['side']} {o['amount']} @ {o['price']}\")
"
python3 -c "
import ccxt
exchange = ccxt.binance({'apiKey': 'KEY', 'secret': 'SECRET'})
result = exchange.cancel_order('ORDER_ID', 'BTC/USDT')
print(result)
"
python3 -c "
import ccxt
exchange = ccxt.binance()
ohlcv = exchange.fetch_ohlcv('BTC/USDT', '1h', limit=24)
for candle in ohlcv:
print(f\"O:{candle[1]} H:{candle[2]} L:{candle[3]} C:{candle[4]}\")
"
python3 -c "
import ccxt.pro as ccxtpro
import asyncio
async def watch():
exchange = ccxtpro.binance()
while True:
ob = await exchange.watch_order_book('BTC/USDT')
print(f\"Best bid: {ob['bids'][0][0]}, Best ask: {ob['asks'][0][0]}\")
asyncio.run(watch())
"
~/.kit/exchanges.json| Type | Use Case |
|---|---|
market | Immediate execution at best price |
limit | Execute at specific price or better |
stop_loss | Sell when price drops to level |
take_profit | Sell when price reaches target |
stop_limit | Stop-loss with limit price |
Common errors:
AuthenticationError - Invalid API keysInsufficientFunds - Not enough balanceInvalidOrder - Bad order parametersRateLimitExceeded - Too many requestsUse scripts/exchange_cli.py for quick operations:
python3 scripts/exchange_cli.py --exchange binance --action balance
python3 scripts/exchange_cli.py --exchange binance --action price BTC/USDT
python3 scripts/exchange_cli.py --exchange binance --action buy BTC/USDT 0.001