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 |
development
OpenSea API integration for NFT and token discovery, marketplace intelligence, and order/transaction workflows. Use when working with OpenSea data or trading flows (e.g. collection stats, trending collections/tokens, NFT metadata, listings/offers, swap quotes, transaction receipt polling).
development
Generate a warm, healing parallel-universe fairy tale (~1000 words) plus 3 cohesive storybook illustrations, themed "if this person had never been born, what would the world miss." Output is a polished HTML storybook that can be previewed and published. Use when the user wants a personalized "if I had never been born" / "如果我没出生" tale for a real person — input is a name, age, and 3 key life events. Great for birthdays, memorials, encouragement gifts, or healing keepsakes.
development
Onboard a user to Phala Cloud and deploy a verifiable Starchild TEE agent — a minimal FastAPI runtime running inside an Intel TDX confidential VM, plus a published chat dashboard with attestation verification. Use when the user wants to "try TEE", "run an agent in a confidential VM", "deploy to Phala", or replicate the internal Starchild TEE test setup.
tools
Trade on Polymarket prediction markets (CLOB V2) from a Privy EOA wallet. Search markets, place/cancel orders, manage positions. No private key handling. Use when the user wants to bet on event outcomes (e.g. "buy YES at 0.65 on the ceasefire market", "what are my open positions", "close my Trump bet").