349/bybit/SKILL.md
Trade spot and perpetual futures on Bybit — market/limit/stop/trailing/TP+SL combo orders, account balances, positions, and market data. Supports Bybit Spot and Linear Perpetuals (USDT). Requires BYBIT_API_KEY and BYBIT_SECRET in environment for trading. Use when trading on Bybit, checking Bybit balances or positions, placing TP+SL combo orders, or accessing Bybit market data.
npx skillsauth add starchild-ai-agent/community-skills @349/bybitInstall 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 Bybit — one of the top derivatives exchanges — directly from Starchild.
Supports Spot and Linear Perpetuals (USDT-margined). Uses the bundled scripts/ccex_core.py engine.
Add to workspace/.env:
BYBIT_API_KEY=your_api_key_here
BYBIT_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:
python3 skills/bybit/scripts/ccex_core.py <action> --exchange bybit [options]
Get ETH/USDT price:
python3 skills/bybit/scripts/ccex_core.py ticker --exchange bybit --symbol ETH/USDT
Check balances:
python3 skills/bybit/scripts/ccex_core.py balance --exchange bybit
Buy 0.01 ETH at market:
python3 skills/bybit/scripts/ccex_core.py order --exchange bybit \
--symbol ETH/USDT --side buy --type market --amount 0.01
Limit buy ETH at $2,800:
python3 skills/bybit/scripts/ccex_core.py order --exchange bybit \
--symbol ETH/USDT --side buy --type limit --amount 0.01 --price 2800
Stop loss at $2,500:
python3 skills/bybit/scripts/ccex_core.py order --exchange bybit \
--symbol ETH/USDT --side sell --type stop --amount 0.01 --stop_price 2500
Trailing stop (amount-based, $50 trail):
python3 skills/bybit/scripts/ccex_core.py order --exchange bybit \
--symbol ETH/USDT --side sell --type stop --amount 0.01 --trailing_delta 50
Futures: Long 0.1 ETH perpetual:
python3 skills/bybit/scripts/ccex_core.py order --exchange bybit \
--symbol ETH/USDT --side buy --type market --amount 0.1 --futures
Close futures position (reduce-only):
python3 skills/bybit/scripts/ccex_core.py order --exchange bybit \
--symbol ETH/USDT --side sell --type market --amount 0.1 --futures --reduce_only
View open positions:
python3 skills/bybit/scripts/ccex_core.py position --exchange bybit --futures
Cancel order:
python3 skills/bybit/scripts/ccex_core.py cancel --exchange bybit \
--symbol ETH/USDT --order_id abc123
Bybit supports attaching both a take profit AND stop loss to an entry order simultaneously — use the raw Bybit API via a custom params dict in the script. For simple stop or TP, the unified CCXT API handles it.
For combined TP+SL on entry, use this pattern in a custom script:
exchange.create_order("ETH/USDT", "market", "buy", 0.1, None, {
"takeProfit": "3200",
"stopLoss": "2500",
"tpTriggerBy": "LastPrice",
"slTriggerBy": "LastPrice",
})
Bybit uses a "Unified Trading Account" — spot, derivatives, and options share the same margin pool. CCXT handles this automatically.
Bybit does not support native OCO. ccex-core simulates OCO with two separate orders and warns you to cancel one manually when the other fills.
Bybit allows 10 requests/second (order endpoints). CCXT handles this automatically.
Run this after setup to verify everything before placing trades:
python3 skills/bybit/scripts/ccex_core.py ticker --exchange bybit --symbol ETH/USDT
If credentials are configured, also test private access:
python3 skills/bybit/scripts/ccex_core.py balance --exchange bybit
| Error | Likely Cause | Fix |
|-------|-------------|-----|
| Missing dependency: ccxt | ccxt not installed | pip install --break-system-packages ccxt |
| Missing API credentials for bybit | BYBIT_API_KEY/BYBIT_SECRET not set | Add to workspace/.env |
| 10003 Invalid API key | Wrong key in .env | Re-check BYBIT_API_KEY |
| 10006 Too many visits | Rate limit hit | CCXT handles; reduce call frequency |
| Insufficient balance | Not enough funds | Check balance first |
| 110014 Reduce-only position does not exist | No open position | Check positions first |
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.