349/binance/SKILL.md
Trade spot and futures on Binance — market/limit/stop/trailing/OCO orders, account balances, order history, and market data. Supports both Binance Spot and Binance Futures (USDM). Requires BINANCE_API_KEY and BINANCE_SECRET in environment for trading; market data is public. Use when trading on Binance, checking Binance balances, placing OCO orders, or accessing Binance market data.
npx skillsauth add starchild-ai-agent/community-skills @349/binanceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Trade on Binance — the world's largest CEX — directly from Starchild.
Supports Spot and USDM Futures. Uses the bundled scripts/ccex_core.py engine under the hood.
Add to workspace/.env:
BINANCE_API_KEY=your_api_key_here
BINANCE_SECRET=your_secret_here
pip install --break-system-packages ccxt
grep -q "pip install --break-system-packages ccxt" workspace/setup.sh || \
echo "pip install --break-system-packages ccxt" >> workspace/setup.sh
ALWAYS follow this order:
All actions run via the bundled engine. Use bash to call:
python3 skills/binance/scripts/ccex_core.py <action> --exchange binance [options]
Get BTC/USDT price:
python3 skills/binance/scripts/ccex_core.py ticker --exchange binance --symbol BTC/USDT
Check balances:
python3 skills/binance/scripts/ccex_core.py balance --exchange binance
Buy 0.001 BTC at market:
python3 skills/binance/scripts/ccex_core.py order --exchange binance \
--symbol BTC/USDT --side buy --type market --amount 0.001
Place limit buy at $90,000:
python3 skills/binance/scripts/ccex_core.py order --exchange binance \
--symbol BTC/USDT --side buy --type limit --amount 0.001 --price 90000
Stop loss at $85,000:
python3 skills/binance/scripts/ccex_core.py order --exchange binance \
--symbol BTC/USDT --side sell --type stop --amount 0.001 --stop_price 85000
Trailing stop (500 BIPS = 5%):
python3 skills/binance/scripts/ccex_core.py order --exchange binance \
--symbol BTC/USDT --side sell --type stop --amount 0.001 --trailing_delta 500
OCO order — limit sell at $100k, stop at $85k:
python3 skills/binance/scripts/ccex_core.py oco --exchange binance \
--symbol BTC/USDT --side sell --amount 0.001 \
--price 100000 --stop_price 85000 --stop_limit_price 84900
Futures: Long 0.01 BTC on Binance USDM:
python3 skills/binance/scripts/ccex_core.py order --exchange binance \
--symbol BTC/USDT --side buy --type market --amount 0.01 --futures
Cancel an order:
python3 skills/binance/scripts/ccex_core.py cancel --exchange binance \
--symbol BTC/USDT --order_id 12345678
Binance is the only major exchange with native OCO support. An OCO places a limit order and a stop-limit order simultaneously — when one fills, the other is automatically cancelled.
Parameters:
--price — the limit (take profit) price--stop_price — the stop trigger price--stop_limit_price — the actual limit price when stop triggers (optional, defaults to 0.1% below stop)Add --futures flag to any order command to route to Binance USDM Futures instead of spot.
Binance rate limits: 1200 requests/minute (weight-based). CCXT handles this automatically with enableRateLimit: true.
To use Binance testnet, set:
BINANCE_API_KEY=your_testnet_key
BINANCE_SECRET=your_testnet_secret
And modify the exchange config in skills/binance/scripts/ccex_core.py to add "test": True to options.
Run this after setup to verify everything before placing trades:
python3 skills/binance/scripts/ccex_core.py ticker --exchange binance --symbol BTC/USDT
If credentials are configured, also test private access:
python3 skills/binance/scripts/ccex_core.py balance --exchange binance
| Error | Likely Cause | Fix |
|-------|-------------|-----|
| Missing dependency: ccxt | ccxt not installed | pip install --break-system-packages ccxt |
| Missing API credentials for binance | BINANCE_API_KEY/BINANCE_SECRET not set | Add to workspace/.env |
| Invalid API Key | Wrong key in .env | Re-check BINANCE_API_KEY |
| Timestamp for this request | Clock skew | Sync system clock |
| MIN_NOTIONAL | Order too small | Increase amount (min ~$10 USDT) |
| Insufficient balance | Not enough funds | Check balance first |
| OCO price rules violation | Price ordering wrong | limit > current price > stop for sell OCO |
tools
TQX (tqx.trade) HK/US stock quant workflow via tqx-cli: cross-sectional factor analysis, event-driven strategy backtests on the panda_backtest engine, and agent-driven automated paper trading. Use when the user wants to run factor IC/IR analysis, backtest a Python trading strategy on Hong Kong or US stocks, or set up agent-automated trading (e.g. "backtest a moving-average strategy on AAPL", "analyze a momentum factor on HK stocks", "let the agent trade my paper account").
tools
中学物理实验教学参赛方案套件。包含四个完整实验(单摆测g、声悬浮测声速、向心力定量演示仪、电磁阻尼定量研究),每套含固件源码、3D打印图纸、教学PPT、教学文稿、采购清单、调试手册、视频分镜脚本、模拟器。Use when a teacher/student needs a complete, classroom-ready physics experiment package for competition or teaching.
development
End-to-end blog management for AI agents. Write, import, build, preview, and publish articles using the blog template. Covers draft workflow, article import, SEO, OG images, and deployment.
development
ESP8266/ESP32 + 磁簧开关/霍尔传感器 单摆测重力加速度实验套件。 硬件搭建→固件烧录→数据采集→Web仪表盘→g值计算→教学文档,一站式完成。 Use when the user wants to build a pendulum g-measurement experiment, measure gravity with a micro-controller, or needs a complete physics experiment package with hardware + firmware + dashboard + teaching materials.