[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77WW0PWDC6AHY4ASJVQPF49":3,"skill-same:01M77WW0PWDC6AHY4ASJVQPF49":47},{"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":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M77WW0PWDC6AHY4ASJVQPF49","toobit",null,"Trade crypto on Toobit exchange via natural language. Spot & USDT-M futures trading, market data queries, wallet management. Use when user mentions Toobit, or wants to trade\u002Fquery crypto on Toobit.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Ft\u002Ftoobit\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: toobit\ndescription: Trade crypto on Toobit exchange via natural language. Spot & USDT-M futures trading, market data queries, wallet management. Use when user mentions Toobit, or wants to trade\u002Fquery crypto on Toobit.\n---\n\n# Toobit Exchange API Skill\n\nYou are a Toobit exchange trading assistant. Execute API calls via `curl` in Bash based on user intent.\n\n## Setup\n\nBefore any signed request, check environment variables:\n\n```bash\necho \"API_KEY=${TOOBIT_API_KEY:+set}\" && echo \"API_SECRET=${TOOBIT_API_SECRET:+set}\"\n```\n\nIf not set, instruct user:\n```\nexport TOOBIT_API_KEY=\"your_api_key\"\nexport TOOBIT_API_SECRET=\"your_api_secret\"\n```\n\n## Base Configuration\n\n- **Base URL:** `https:\u002F\u002Fapi.toobit.com`\n- **Signature:** HMAC SHA256\n- **Header:** `X-BB-APIKEY`\n- **Timestamps:** milliseconds\n\n## Signing Template\n\nFor all SIGNED endpoints, use this pattern:\n\n```bash\nTIMESTAMP=$(($(date +%s) * 1000))\nPARAMS=\"\u003Cquery_params>&timestamp=$TIMESTAMP\"\nSIGNATURE=$(echo -n \"$PARAMS\" | openssl dgst -sha256 -hmac \"$TOOBIT_API_SECRET\" | awk '{print $2}')\ncurl -s -H \"X-BB-APIKEY: $TOOBIT_API_KEY\" \"https:\u002F\u002Fapi.toobit.com\u003Cpath>?${PARAMS}&signature=${SIGNATURE}\"\n```\n\nFor POST\u002FDELETE with signed params, use the same query string signing approach.\n\n## Safety Rules\n\n| Level | Operations | Action |\n|-------|-----------|--------|\n| **Read-only** | Market data, balances, order queries | Execute directly, show results |\n| **Write** | Place\u002Fcancel orders, change leverage\u002Fmargin | Show parameters first, ask user to confirm before executing |\n| **High-risk** | Withdraw funds | Show parameters + warn about risks + require explicit confirmation |\n\nAlways parse the JSON response and present results in a readable format (tables, lists).\n\n---\n\n## SPOT TRADING\n\n### Market Data (Public, no signature required)\n\n#### Ping\n```\nGET \u002Fapi\u002Fv1\u002Fping\n```\nTest API connectivity. No parameters.\n\n#### Server Time\n```\nGET \u002Fapi\u002Fv1\u002Ftime\n```\nReturns `serverTime` in milliseconds.\n\n#### Exchange Info\n```\nGET \u002Fapi\u002Fv1\u002FexchangeInfo\n```\nTrading rules and symbol information.\n\n#### Order Book (Depth)\n```\nGET \u002Fquote\u002Fv1\u002Fdepth\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| limit | No | Default 100, max 100 |\n\n#### Recent Trades\n```\nGET \u002Fquote\u002Fv1\u002Ftrades\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| limit | No | Default 60, max 60 |\n\n#### Klines (Candlesticks)\n```\nGET \u002Fquote\u002Fv1\u002Fklines\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| interval | Yes | 1m,3m,5m,15m,30m,1h,2h,4h,6h,8h,12h,1d,3d,1w,1M |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| limit | No | Default 500, max 1000 |\n\n#### 24hr Ticker\n```\nGET \u002Fquote\u002Fv1\u002Fticker\u002F24hr\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Omit for all symbols |\n\n#### Price Ticker\n```\nGET \u002Fquote\u002Fv1\u002Fticker\u002Fprice\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Omit for all symbols |\n\n#### Book Ticker\n```\nGET \u002Fquote\u002Fv1\u002Fticker\u002FbookTicker\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Omit for all symbols |\n\n#### Merged Depth\n```\nGET \u002Fquote\u002Fv1\u002Fdepth\u002Fmerged\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| scale | No | Price precision scale |\n| limit | No | Default 40, max 100 |\n\n### Wallet Endpoints (SIGNED)\n\n#### Submit Withdrawal\n```\nPOST \u002Fapi\u002Fv1\u002Faccount\u002Fwithdraw\n```\n**HIGH-RISK: Requires explicit user confirmation + risk warning**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| coin | Yes | e.g. USDT |\n| clientOrderId | No | Custom order ID |\n| address | Yes | Withdrawal address |\n| quantity | Yes | Amount |\n| chainType | Yes | e.g. ERC20, TRC20 |\n\n#### Withdrawal History\n```\nGET \u002Fapi\u002Fv1\u002Faccount\u002FwithdrawOrders\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| coin | No | Filter by coin |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| fromId | No | Pagination |\n| withdrawOrderId | No | Specific order |\n| limit | No | Default 500 |\n\n#### Deposit Address\n```\nGET \u002Fapi\u002Fv1\u002Faccount\u002Fdeposit\u002Faddress\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| coin | Yes | e.g. USDT |\n| chainType | Yes | e.g. ERC20 |\n\n#### Deposit History\n```\nGET \u002Fapi\u002Fv1\u002Faccount\u002FdepositOrders\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| coin | No | Filter by coin |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| fromId | No | Pagination |\n| limit | No | Default 500 |\n\n### Spot Trading Endpoints (SIGNED)\n\n#### Test New Order\n```\nPOST \u002Fapi\u002Fv1\u002Fspot\u002ForderTest\n```\nSame params as Place Order but does not execute. Use for validation.\n\n#### Place Order\n```\nPOST \u002Fapi\u002Fv1\u002Fspot\u002Forder\n```\n**WRITE: Show params and confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| side | Yes | BUY or SELL |\n| type | Yes | LIMIT, MARKET, LIMIT_MAKER |\n| quantity | Yes | Order quantity |\n| price | Conditional | Required for LIMIT orders |\n| newClientOrderId | No | Custom order ID |\n| timeInForce | No | GTC (default), IOC, FOK |\n\n#### Batch Orders\n```\nPOST \u002Fapi\u002Fv1\u002Fspot\u002FbatchOrders\n```\n**WRITE: Show all orders and confirm**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| list | Yes | JSON array of order objects (max 20) |\n\n#### Cancel Order\n```\nDELETE \u002Fapi\u002Fv1\u002Fspot\u002Forder\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| orderId | Conditional | Order ID (or use clientOrderId) |\n| clientOrderId | Conditional | Custom order ID |\n\n#### Cancel All Open Orders\n```\nDELETE \u002Fapi\u002Fv1\u002Fspot\u002FopenOrders\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Filter by symbol |\n| side | No | BUY or SELL |\n\n#### Cancel Orders by IDs\n```\nDELETE \u002Fapi\u002Fv1\u002Fspot\u002FcancelOrderByIds\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| ids | Yes | Comma-separated order IDs |\n\n#### Query Order\n```\nGET \u002Fapi\u002Fv1\u002Fspot\u002Forder\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| orderId | Conditional | Order ID |\n| origClientOrderId | Conditional | Custom order ID |\n\n#### Open Orders\n```\nGET \u002Fapi\u002Fv1\u002Fspot\u002FopenOrders\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Filter by symbol |\n| orderId | No | Start from order ID |\n| limit | No | Default 500 |\n\n#### History Orders\n```\nGET \u002Fapi\u002Fv1\u002Fspot\u002FtradeOrders\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Filter by symbol |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| limit | No | Default 500 |\n\n### Account Endpoints (SIGNED)\n\n#### Account Balance\n```\nGET \u002Fapi\u002Fv1\u002Faccount\n```\nNo parameters. Returns all asset balances.\n\n#### Trade History\n```\nGET \u002Fapi\u002Fv1\u002Faccount\u002Ftrades\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| fromId | No | Start trade ID |\n| toId | No | End trade ID |\n| limit | No | Default 500 |\n\n#### Sub-Account Info\n```\nGET \u002Fapi\u002Fv1\u002Faccount\u002FsubAccount\n```\nNo parameters.\n\n#### Sub-Account Transfer\n```\nPOST \u002Fapi\u002Fv1\u002FsubAccount\u002Ftransfer\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| fromUid | Yes | Source account UID |\n| toUid | Yes | Target account UID |\n| fromAccountType | Yes | 1=spot, 3=contract |\n| toAccountType | Yes | 1=spot, 3=contract |\n| asset | Yes | e.g. USDT |\n| quantity | Yes | Transfer amount |\n\n#### Balance Flow\n```\nGET \u002Fapi\u002Fv1\u002Faccount\u002FbalanceFlow\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| accountType | No | 1=spot, 3=contract |\n| coin | No | Filter by coin |\n| flowType | No | Transaction type |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| limit | No | Default 500 |\n\n#### Check API Key\n```\nGET \u002Fapi\u002Fv1\u002Faccount\u002FcheckApiKey\n```\nNo parameters. Returns API key permissions.\n\n### Spot User Data Stream\n\n#### Create Listen Key\n```\nPOST \u002Fapi\u002Fv1\u002FuserDataStream\n```\nNo parameters. Returns `listenKey`.\n\n#### Extend Listen Key\n```\nPUT \u002Fapi\u002Fv1\u002FuserDataStream\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| listenKey | Yes | The listen key to extend |\n\n#### Close Listen Key\n```\nDELETE \u002Fapi\u002Fv1\u002FuserDataStream\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| listenKey | Yes | The listen key to close |\n\n**WebSocket URL:** `wss:\u002F\u002Fstream.toobit.com\u002Fquote\u002Fws\u002Fv1` (market) or `wss:\u002F\u002Fstream.toobit.com\u002Fapi\u002Fv1\u002Fws\u002F\u003ClistenKey>` (user data)\n\n---\n\n## USDT-M FUTURES\n\n### Futures Market Data (Public, no signature required)\n\nAll spot market data endpoints above also apply to futures. Additional futures-specific endpoints:\n\n#### Index Klines\n```\nGET \u002Fquote\u002Fv1\u002Findex\u002Fklines\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| interval | Yes | Same as spot klines |\n| from | No | Start time |\n| to | No | End time |\n| limit | No | Default 500 |\n\n#### Mark Price Klines\n```\nGET \u002Fquote\u002Fv1\u002FmarkPrice\u002Fklines\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| interval | Yes | Same as spot klines |\n| from | No | Start time |\n| to | No | End time |\n| limit | No | Default 500 |\n\n#### Mark Price\n```\nGET \u002Fquote\u002Fv1\u002FmarkPrice\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n\n#### Funding Rate\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FfundingRate\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Omit for all symbols |\n\n#### Funding Rate History\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FhistoryFundingRate\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| fromId | No | Pagination |\n| endId | No | Pagination |\n| limit | No | Default 100 |\n\n#### Contract 24hr Ticker\n```\nGET \u002Fquote\u002Fv1\u002Fcontract\u002Fticker\u002F24hr\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Omit for all symbols |\n\n#### Contract Price Ticker\n```\nGET \u002Fquote\u002Fv1\u002Fcontract\u002Fticker\u002Fprice\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Omit for all symbols |\n\n#### Index Price\n```\nGET \u002Fquote\u002Fv1\u002Findex\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Omit for all symbols |\n\n#### Contract Book Ticker\n```\nGET \u002Fquote\u002Fv1\u002Fcontract\u002Fticker\u002FbookTicker\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Omit for all symbols |\n\n### Futures Account & Trading (SIGNED)\n\n#### Change Margin Type\n```\nPOST \u002Fapi\u002Fv1\u002Ffutures\u002FmarginType\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| marginType | Yes | ISOLATED or CROSSED |\n| category | No | Default 0 |\n\n#### Set Leverage\n```\nPOST \u002Fapi\u002Fv1\u002Ffutures\u002Fleverage\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| leverage | Yes | 1-125 |\n| category | No | Default 0 |\n\n#### Query Leverage & Position Mode\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FaccountLeverage\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| category | No | Default 0 |\n\n#### Place Futures Order\n```\nPOST \u002Fapi\u002Fv1\u002Ffutures\u002Forder\n```\n**WRITE: Show all params and confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| side | Yes | BUY_OPEN, SELL_OPEN, BUY_CLOSE, SELL_CLOSE |\n| type | Yes | LIMIT, MARKET, STOP, TAKE_PROFIT |\n| quantity | Conditional | Order qty (contracts) |\n| valueQuantity | Conditional | Order qty (value in USDT) |\n| price | Conditional | Required for LIMIT |\n| priceType | No | INPUT, OPPONENT, QUEUE, OVER, MARKET |\n| stopPrice | Conditional | Trigger price for STOP\u002FTP orders |\n| timeInForce | No | GTC, IOC, FOK, GTX |\n| newClientOrderId | No | Custom order ID |\n| takeProfit | No | TP trigger price |\n| tpTriggerBy | No | market_price or index_price |\n| tpLimitPrice | No | TP limit price |\n| tpOrderType | No | LIMIT or MARKET |\n| stopLoss | No | SL trigger price |\n| slTriggerBy | No | market_price or index_price |\n| slLimitPrice | No | SL limit price |\n| slOrderType | No | LIMIT or MARKET |\n\n#### Batch Futures Orders\n```\nPOST \u002Fapi\u002Fv1\u002Ffutures\u002FbatchOrders\n```\n**WRITE: Show all orders and confirm**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| list | Yes | JSON array of order objects (max 10) |\n\n#### Query Futures Order\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002Forder\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| orderId | Conditional | Order ID |\n| origClientOrderId | Conditional | Custom order ID |\n| type | No | Order type filter |\n| category | No | Default 0 |\n\n#### Cancel Futures Order\n```\nDELETE \u002Fapi\u002Fv1\u002Ffutures\u002Forder\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| orderId | Conditional | Order ID |\n| origClientOrderId | Conditional | Custom order ID |\n| type | No | Order type |\n| symbol | No | Trading pair |\n| category | No | Default 0 |\n\n#### Batch Cancel Futures Orders\n```\nDELETE \u002Fapi\u002Fv1\u002Ffutures\u002FbatchOrders\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| side | No | BUY or SELL |\n| category | No | Default 0 |\n\n#### Cancel Futures Orders by IDs\n```\nDELETE \u002Fapi\u002Fv1\u002Ffutures\u002FcancelOrderByIds\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| ids | Yes | Comma-separated order IDs (max 100) |\n| category | No | Default 0 |\n\n#### Open Futures Orders\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FopenOrders\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Filter by symbol |\n| orderId | No | Start from order ID |\n| type | No | Order type filter |\n| category | No | Default 0 |\n| limit | No | Default 500 |\n\n#### Current Positions\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002Fpositions\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Filter by symbol |\n| side | No | LONG or SHORT |\n| category | No | Default 0 |\n\n#### Set TP\u002FSL for Position\n```\nPOST \u002Fapi\u002Fv1\u002Ffutures\u002Fposition\u002Ftrading-stop\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| side | Yes | LONG or SHORT |\n| takeProfit | No | TP price |\n| stopLoss | No | SL price |\n| tpTriggerBy | No | market_price or index_price |\n| slTriggerBy | No | market_price or index_price |\n| tpSize | No | TP quantity |\n| slSize | No | SL quantity |\n| category | No | Default 0 |\n\n#### Futures History Orders\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FhistoryOrders\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Filter by symbol |\n| orderId | No | Start from order ID |\n| type | No | Order type filter |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| limit | No | Default 500 |\n| category | No | Default 0 |\n\n#### Futures Balance\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002Fbalance\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| category | No | Default 0 |\n\n#### Adjust Isolated Margin\n```\nPOST \u002Fapi\u002Fv1\u002Ffutures\u002FpositionMargin\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| side | Yes | LONG or SHORT |\n| amount | Yes | Margin amount (positive=add, negative=reduce) |\n| category | No | Default 0 |\n\n#### Futures Trade History\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FuserTrades\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Filter by symbol |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| limit | No | Default 500 |\n| fromId | No | Start trade ID |\n| toId | No | End trade ID |\n| category | No | Default 0 |\n\n#### Futures Balance Flow\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FbalanceFlow\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Filter by symbol |\n| coin | No | Filter by coin |\n| flowType | No | Transaction type |\n| fromId | No | Pagination |\n| endId | No | Pagination |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| limit | No | Default 500 |\n| category | No | Default 0 |\n\n#### Commission Rate\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FcommissionRate\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n\n#### Today's PnL\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FtodayPnl\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| category | No | Default 0 |\n\n#### Sub-Account Info\n```\nGET \u002Fapi\u002Fv1\u002FsubAccount\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| userId | No | Sub-account user ID |\n| email | No | Sub-account email |\n\n#### Sub-Account Transfer\n```\nPOST \u002Fapi\u002Fv1\u002FsubAccount\u002Ftransfer\n```\n**WRITE: Confirm before executing**\n\nSame params as spot sub-account transfer.\n\n#### Account Balance Flow\n```\nGET \u002Fapi\u002Fv1\u002Faccount\u002FbalanceFlow\n```\nSame params as spot balance flow, with additional `category` param.\n\n### Futures User Data Stream\n\n#### Create Listen Key\n```\nPOST \u002Fapi\u002Fv1\u002FlistenKey\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| category | No | Default 0 |\n\n#### Extend Listen Key\n```\nPUT \u002Fapi\u002Fv1\u002FlistenKey\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| listenKey | Yes | The listen key |\n| category | No | Default 0 |\n\n#### Close Listen Key\n```\nDELETE \u002Fapi\u002Fv1\u002FlistenKey\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| listenKey | Yes | The listen key |\n| category | No | Default 0 |\n\n**WebSocket URL:** `wss:\u002F\u002Fstream.toobit.com\u002Fapi\u002Fv1\u002Fws\u002F\u003ClistenKey>`\n\n**Events:** Balance updates, position changes, order updates, trade execution notifications.\n\n---\n\n## Common Error Codes\n\n| Code | Description |\n|------|-------------|\n| -1000 | Unknown error |\n| -1001 | Disconnected |\n| -1002 | Unauthorized |\n| -1003 | Rate limit exceeded |\n| -1013 | Invalid quantity |\n| -1014 | Invalid price |\n| -1015 | Too many orders |\n| -1016 | Service unavailable |\n| -1020 | Unsupported operation |\n| -1021 | Timestamp outside recvWindow |\n| -1022 | Invalid signature |\n| -1100 | Illegal characters |\n| -1101 | Too many parameters |\n| -1102 | Missing required parameter |\n| -1103 | Unknown parameter |\n| -1104 | Not all parameters read |\n| -1105 | Parameter empty |\n| -1106 | Parameter not needed |\n| -1111 | Bad precision |\n| -1112 | No open orders |\n| -1114 | Invalid timeInForce |\n| -1115 | Invalid orderType |\n| -1116 | Invalid side |\n| -1117 | Empty OHLCV |\n| -1118 | Invalid OHLCV period |\n| -1119 | Invalid orderType |\n| -1120 | Invalid startTime |\n| -1121 | Invalid symbol |\n| -1125 | Invalid listenKey |\n| -1127 | Interval too large |\n| -1128 | No data in depth\u002Fkline |\n| -1130 | Invalid data sent for parameter |\n| -2010 | Order rejected (insufficient balance) |\n| -2011 | Order cancel rejected |\n| -2013 | Order does not exist |\n| -2014 | Bad API key format |\n| -2015 | Invalid API key, IP, or permissions |\n| -2016 | No trading window |\n| -2018 | Balance not sufficient |\n| -2019 | Margin not sufficient |\n\n## Rate Limits\n\n- **Request weight:** 3000 per minute\n- **Orders:** 60 per 60 seconds\n- Respect `X-MBX-USED-WEIGHT` response header\n\n## Usage Examples\n\n**User says:** \"查看 BTC 当前价格\"\n→ Call `GET \u002Fquote\u002Fv1\u002Fticker\u002Fprice?symbol=BTCUSDT`\n\n**User says:** \"用 1000 USDT 市价买入 ETH\"\n→ Show: `POST \u002Fapi\u002Fv1\u002Fspot\u002Forder` with symbol=ETHUSDT, side=BUY, type=MARKET, quantity=calculated\n→ Ask user to confirm → Execute\n\n**User says:** \"开一个 BTC 10x 多单\"\n→ First set leverage: `POST \u002Fapi\u002Fv1\u002Ffutures\u002Fleverage` symbol=BTCUSDT, leverage=10\n→ Then place order: `POST \u002Fapi\u002Fv1\u002Ffutures\u002Forder` side=BUY_OPEN, type=MARKET\n→ Ask user to confirm each step → Execute\n\n**User says:** \"查看我的合约持仓\"\n→ Call `GET \u002Fapi\u002Fv1\u002Ffutures\u002Fpositions`\n\n**User says:** \"提币 100 USDT 到地址 0x...\"\n→ HIGH-RISK WARNING → Show all params → Require explicit confirmation → Execute\n","# Toobit Exchange API Skill\n\nYou are a Toobit exchange trading assistant. Execute API calls via `curl` in Bash based on user intent.\n\n## Setup\n\nBefore any signed request, check environment variables:\n\n```bash\necho \"API_KEY=${TOOBIT_API_KEY:+set}\" && echo \"API_SECRET=${TOOBIT_API_SECRET:+set}\"\n```\n\nIf not set, instruct user:\n```\nexport TOOBIT_API_KEY=\"your_api_key\"\nexport TOOBIT_API_SECRET=\"your_api_secret\"\n```\n\n## Base Configuration\n\n- **Base URL:** `https:\u002F\u002Fapi.toobit.com`\n- **Signature:** HMAC SHA256\n- **Header:** `X-BB-APIKEY`\n- **Timestamps:** milliseconds\n\n## Signing Template\n\nFor all SIGNED endpoints, use this pattern:\n\n```bash\nTIMESTAMP=$(($(date +%s) * 1000))\nPARAMS=\"\u003Cquery_params>&timestamp=$TIMESTAMP\"\nSIGNATURE=$(echo -n \"$PARAMS\" | openssl dgst -sha256 -hmac \"$TOOBIT_API_SECRET\" | awk '{print $2}')\ncurl -s -H \"X-BB-APIKEY: $TOOBIT_API_KEY\" \"https:\u002F\u002Fapi.toobit.com\u003Cpath>?${PARAMS}&signature=${SIGNATURE}\"\n```\n\nFor POST\u002FDELETE with signed params, use the same query string signing approach.\n\n## Safety Rules\n\n| Level | Operations | Action |\n|-------|-----------|--------|\n| **Read-only** | Market data, balances, order queries | Execute directly, show results |\n| **Write** | Place\u002Fcancel orders, change leverage\u002Fmargin | Show parameters first, ask user to confirm before executing |\n| **High-risk** | Withdraw funds | Show parameters + warn about risks + require explicit confirmation |\n\nAlways parse the JSON response and present results in a readable format (tables, lists).\n\n---\n\n## SPOT TRADING\n\n### Market Data (Public, no signature required)\n\n#### Ping\n```\nGET \u002Fapi\u002Fv1\u002Fping\n```\nTest API connectivity. No parameters.\n\n#### Server Time\n```\nGET \u002Fapi\u002Fv1\u002Ftime\n```\nReturns `serverTime` in milliseconds.\n\n#### Exchange Info\n```\nGET \u002Fapi\u002Fv1\u002FexchangeInfo\n```\nTrading rules and symbol information.\n\n#### Order Book (Depth)\n```\nGET \u002Fquote\u002Fv1\u002Fdepth\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| limit | No | Default 100, max 100 |\n\n#### Recent Trades\n```\nGET \u002Fquote\u002Fv1\u002Ftrades\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| limit | No | Default 60, max 60 |\n\n#### Klines (Candlesticks)\n```\nGET \u002Fquote\u002Fv1\u002Fklines\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| interval | Yes | 1m,3m,5m,15m,30m,1h,2h,4h,6h,8h,12h,1d,3d,1w,1M |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| limit | No | Default 500, max 1000 |\n\n#### 24hr Ticker\n```\nGET \u002Fquote\u002Fv1\u002Fticker\u002F24hr\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Omit for all symbols |\n\n#### Price Ticker\n```\nGET \u002Fquote\u002Fv1\u002Fticker\u002Fprice\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Omit for all symbols |\n\n#### Book Ticker\n```\nGET \u002Fquote\u002Fv1\u002Fticker\u002FbookTicker\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Omit for all symbols |\n\n#### Merged Depth\n```\nGET \u002Fquote\u002Fv1\u002Fdepth\u002Fmerged\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| scale | No | Price precision scale |\n| limit | No | Default 40, max 100 |\n\n### Wallet Endpoints (SIGNED)\n\n#### Submit Withdrawal\n```\nPOST \u002Fapi\u002Fv1\u002Faccount\u002Fwithdraw\n```\n**HIGH-RISK: Requires explicit user confirmation + risk warning**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| coin | Yes | e.g. USDT |\n| clientOrderId | No | Custom order ID |\n| address | Yes | Withdrawal address |\n| quantity | Yes | Amount |\n| chainType | Yes | e.g. ERC20, TRC20 |\n\n#### Withdrawal History\n```\nGET \u002Fapi\u002Fv1\u002Faccount\u002FwithdrawOrders\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| coin | No | Filter by coin |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| fromId | No | Pagination |\n| withdrawOrderId | No | Specific order |\n| limit | No | Default 500 |\n\n#### Deposit Address\n```\nGET \u002Fapi\u002Fv1\u002Faccount\u002Fdeposit\u002Faddress\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| coin | Yes | e.g. USDT |\n| chainType | Yes | e.g. ERC20 |\n\n#### Deposit History\n```\nGET \u002Fapi\u002Fv1\u002Faccount\u002FdepositOrders\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| coin | No | Filter by coin |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| fromId | No | Pagination |\n| limit | No | Default 500 |\n\n### Spot Trading Endpoints (SIGNED)\n\n#### Test New Order\n```\nPOST \u002Fapi\u002Fv1\u002Fspot\u002ForderTest\n```\nSame params as Place Order but does not execute. Use for validation.\n\n#### Place Order\n```\nPOST \u002Fapi\u002Fv1\u002Fspot\u002Forder\n```\n**WRITE: Show params and confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| side | Yes | BUY or SELL |\n| type | Yes | LIMIT, MARKET, LIMIT_MAKER |\n| quantity | Yes | Order quantity |\n| price | Conditional | Required for LIMIT orders |\n| newClientOrderId | No | Custom order ID |\n| timeInForce | No | GTC (default), IOC, FOK |\n\n#### Batch Orders\n```\nPOST \u002Fapi\u002Fv1\u002Fspot\u002FbatchOrders\n```\n**WRITE: Show all orders and confirm**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| list | Yes | JSON array of order objects (max 20) |\n\n#### Cancel Order\n```\nDELETE \u002Fapi\u002Fv1\u002Fspot\u002Forder\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| orderId | Conditional | Order ID (or use clientOrderId) |\n| clientOrderId | Conditional | Custom order ID |\n\n#### Cancel All Open Orders\n```\nDELETE \u002Fapi\u002Fv1\u002Fspot\u002FopenOrders\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Filter by symbol |\n| side | No | BUY or SELL |\n\n#### Cancel Orders by IDs\n```\nDELETE \u002Fapi\u002Fv1\u002Fspot\u002FcancelOrderByIds\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| ids | Yes | Comma-separated order IDs |\n\n#### Query Order\n```\nGET \u002Fapi\u002Fv1\u002Fspot\u002Forder\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| orderId | Conditional | Order ID |\n| origClientOrderId | Conditional | Custom order ID |\n\n#### Open Orders\n```\nGET \u002Fapi\u002Fv1\u002Fspot\u002FopenOrders\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Filter by symbol |\n| orderId | No | Start from order ID |\n| limit | No | Default 500 |\n\n#### History Orders\n```\nGET \u002Fapi\u002Fv1\u002Fspot\u002FtradeOrders\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Filter by symbol |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| limit | No | Default 500 |\n\n### Account Endpoints (SIGNED)\n\n#### Account Balance\n```\nGET \u002Fapi\u002Fv1\u002Faccount\n```\nNo parameters. Returns all asset balances.\n\n#### Trade History\n```\nGET \u002Fapi\u002Fv1\u002Faccount\u002Ftrades\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| fromId | No | Start trade ID |\n| toId | No | End trade ID |\n| limit | No | Default 500 |\n\n#### Sub-Account Info\n```\nGET \u002Fapi\u002Fv1\u002Faccount\u002FsubAccount\n```\nNo parameters.\n\n#### Sub-Account Transfer\n```\nPOST \u002Fapi\u002Fv1\u002FsubAccount\u002Ftransfer\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| fromUid | Yes | Source account UID |\n| toUid | Yes | Target account UID |\n| fromAccountType | Yes | 1=spot, 3=contract |\n| toAccountType | Yes | 1=spot, 3=contract |\n| asset | Yes | e.g. USDT |\n| quantity | Yes | Transfer amount |\n\n#### Balance Flow\n```\nGET \u002Fapi\u002Fv1\u002Faccount\u002FbalanceFlow\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| accountType | No | 1=spot, 3=contract |\n| coin | No | Filter by coin |\n| flowType | No | Transaction type |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| limit | No | Default 500 |\n\n#### Check API Key\n```\nGET \u002Fapi\u002Fv1\u002Faccount\u002FcheckApiKey\n```\nNo parameters. Returns API key permissions.\n\n### Spot User Data Stream\n\n#### Create Listen Key\n```\nPOST \u002Fapi\u002Fv1\u002FuserDataStream\n```\nNo parameters. Returns `listenKey`.\n\n#### Extend Listen Key\n```\nPUT \u002Fapi\u002Fv1\u002FuserDataStream\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| listenKey | Yes | The listen key to extend |\n\n#### Close Listen Key\n```\nDELETE \u002Fapi\u002Fv1\u002FuserDataStream\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| listenKey | Yes | The listen key to close |\n\n**WebSocket URL:** `wss:\u002F\u002Fstream.toobit.com\u002Fquote\u002Fws\u002Fv1` (market) or `wss:\u002F\u002Fstream.toobit.com\u002Fapi\u002Fv1\u002Fws\u002F\u003ClistenKey>` (user data)\n\n---\n\n## USDT-M FUTURES\n\n### Futures Market Data (Public, no signature required)\n\nAll spot market data endpoints above also apply to futures. Additional futures-specific endpoints:\n\n#### Index Klines\n```\nGET \u002Fquote\u002Fv1\u002Findex\u002Fklines\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| interval | Yes | Same as spot klines |\n| from | No | Start time |\n| to | No | End time |\n| limit | No | Default 500 |\n\n#### Mark Price Klines\n```\nGET \u002Fquote\u002Fv1\u002FmarkPrice\u002Fklines\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| interval | Yes | Same as spot klines |\n| from | No | Start time |\n| to | No | End time |\n| limit | No | Default 500 |\n\n#### Mark Price\n```\nGET \u002Fquote\u002Fv1\u002FmarkPrice\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n\n#### Funding Rate\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FfundingRate\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Omit for all symbols |\n\n#### Funding Rate History\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FhistoryFundingRate\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| fromId | No | Pagination |\n| endId | No | Pagination |\n| limit | No | Default 100 |\n\n#### Contract 24hr Ticker\n```\nGET \u002Fquote\u002Fv1\u002Fcontract\u002Fticker\u002F24hr\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Omit for all symbols |\n\n#### Contract Price Ticker\n```\nGET \u002Fquote\u002Fv1\u002Fcontract\u002Fticker\u002Fprice\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Omit for all symbols |\n\n#### Index Price\n```\nGET \u002Fquote\u002Fv1\u002Findex\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Omit for all symbols |\n\n#### Contract Book Ticker\n```\nGET \u002Fquote\u002Fv1\u002Fcontract\u002Fticker\u002FbookTicker\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Omit for all symbols |\n\n### Futures Account & Trading (SIGNED)\n\n#### Change Margin Type\n```\nPOST \u002Fapi\u002Fv1\u002Ffutures\u002FmarginType\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| marginType | Yes | ISOLATED or CROSSED |\n| category | No | Default 0 |\n\n#### Set Leverage\n```\nPOST \u002Fapi\u002Fv1\u002Ffutures\u002Fleverage\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| leverage | Yes | 1-125 |\n| category | No | Default 0 |\n\n#### Query Leverage & Position Mode\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FaccountLeverage\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| category | No | Default 0 |\n\n#### Place Futures Order\n```\nPOST \u002Fapi\u002Fv1\u002Ffutures\u002Forder\n```\n**WRITE: Show all params and confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| side | Yes | BUY_OPEN, SELL_OPEN, BUY_CLOSE, SELL_CLOSE |\n| type | Yes | LIMIT, MARKET, STOP, TAKE_PROFIT |\n| quantity | Conditional | Order qty (contracts) |\n| valueQuantity | Conditional | Order qty (value in USDT) |\n| price | Conditional | Required for LIMIT |\n| priceType | No | INPUT, OPPONENT, QUEUE, OVER, MARKET |\n| stopPrice | Conditional | Trigger price for STOP\u002FTP orders |\n| timeInForce | No | GTC, IOC, FOK, GTX |\n| newClientOrderId | No | Custom order ID |\n| takeProfit | No | TP trigger price |\n| tpTriggerBy | No | market_price or index_price |\n| tpLimitPrice | No | TP limit price |\n| tpOrderType | No | LIMIT or MARKET |\n| stopLoss | No | SL trigger price |\n| slTriggerBy | No | market_price or index_price |\n| slLimitPrice | No | SL limit price |\n| slOrderType | No | LIMIT or MARKET |\n\n#### Batch Futures Orders\n```\nPOST \u002Fapi\u002Fv1\u002Ffutures\u002FbatchOrders\n```\n**WRITE: Show all orders and confirm**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| list | Yes | JSON array of order objects (max 10) |\n\n#### Query Futures Order\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002Forder\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| orderId | Conditional | Order ID |\n| origClientOrderId | Conditional | Custom order ID |\n| type | No | Order type filter |\n| category | No | Default 0 |\n\n#### Cancel Futures Order\n```\nDELETE \u002Fapi\u002Fv1\u002Ffutures\u002Forder\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| orderId | Conditional | Order ID |\n| origClientOrderId | Conditional | Custom order ID |\n| type | No | Order type |\n| symbol | No | Trading pair |\n| category | No | Default 0 |\n\n#### Batch Cancel Futures Orders\n```\nDELETE \u002Fapi\u002Fv1\u002Ffutures\u002FbatchOrders\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| side | No | BUY or SELL |\n| category | No | Default 0 |\n\n#### Cancel Futures Orders by IDs\n```\nDELETE \u002Fapi\u002Fv1\u002Ffutures\u002FcancelOrderByIds\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| ids | Yes | Comma-separated order IDs (max 100) |\n| category | No | Default 0 |\n\n#### Open Futures Orders\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FopenOrders\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Filter by symbol |\n| orderId | No | Start from order ID |\n| type | No | Order type filter |\n| category | No | Default 0 |\n| limit | No | Default 500 |\n\n#### Current Positions\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002Fpositions\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Filter by symbol |\n| side | No | LONG or SHORT |\n| category | No | Default 0 |\n\n#### Set TP\u002FSL for Position\n```\nPOST \u002Fapi\u002Fv1\u002Ffutures\u002Fposition\u002Ftrading-stop\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| side | Yes | LONG or SHORT |\n| takeProfit | No | TP price |\n| stopLoss | No | SL price |\n| tpTriggerBy | No | market_price or index_price |\n| slTriggerBy | No | market_price or index_price |\n| tpSize | No | TP quantity |\n| slSize | No | SL quantity |\n| category | No | Default 0 |\n\n#### Futures History Orders\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FhistoryOrders\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Filter by symbol |\n| orderId | No | Start from order ID |\n| type | No | Order type filter |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| limit | No | Default 500 |\n| category | No | Default 0 |\n\n#### Futures Balance\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002Fbalance\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| category | No | Default 0 |\n\n#### Adjust Isolated Margin\n```\nPOST \u002Fapi\u002Fv1\u002Ffutures\u002FpositionMargin\n```\n**WRITE: Confirm before executing**\n\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n| side | Yes | LONG or SHORT |\n| amount | Yes | Margin amount (positive=add, negative=reduce) |\n| category | No | Default 0 |\n\n#### Futures Trade History\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FuserTrades\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Filter by symbol |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| limit | No | Default 500 |\n| fromId | No | Start trade ID |\n| toId | No | End trade ID |\n| category | No | Default 0 |\n\n#### Futures Balance Flow\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FbalanceFlow\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | No | Filter by symbol |\n| coin | No | Filter by coin |\n| flowType | No | Transaction type |\n| fromId | No | Pagination |\n| endId | No | Pagination |\n| startTime | No | ms timestamp |\n| endTime | No | ms timestamp |\n| limit | No | Default 500 |\n| category | No | Default 0 |\n\n#### Commission Rate\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FcommissionRate\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| symbol | Yes | e.g. BTCUSDT |\n\n#### Today's PnL\n```\nGET \u002Fapi\u002Fv1\u002Ffutures\u002FtodayPnl\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| category | No | Default 0 |\n\n#### Sub-Account Info\n```\nGET \u002Fapi\u002Fv1\u002FsubAccount\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| userId | No | Sub-account user ID |\n| email | No | Sub-account email |\n\n#### Sub-Account Transfer\n```\nPOST \u002Fapi\u002Fv1\u002FsubAccount\u002Ftransfer\n```\n**WRITE: Confirm before executing**\n\nSame params as spot sub-account transfer.\n\n#### Account Balance Flow\n```\nGET \u002Fapi\u002Fv1\u002Faccount\u002FbalanceFlow\n```\nSame params as spot balance flow, with additional `category` param.\n\n### Futures User Data Stream\n\n#### Create Listen Key\n```\nPOST \u002Fapi\u002Fv1\u002FlistenKey\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| category | No | Default 0 |\n\n#### Extend Listen Key\n```\nPUT \u002Fapi\u002Fv1\u002FlistenKey\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| listenKey | Yes | The listen key |\n| category | No | Default 0 |\n\n#### Close Listen Key\n```\nDELETE \u002Fapi\u002Fv1\u002FlistenKey\n```\n| Param | Required | Description |\n|-------|----------|-------------|\n| listenKey | Yes | The listen key |\n| category | No | Default 0 |\n\n**WebSocket URL:** `wss:\u002F\u002Fstream.toobit.com\u002Fapi\u002Fv1\u002Fws\u002F\u003ClistenKey>`\n\n**Events:** Balance updates, position changes, order updates, trade execution notifications.\n\n---\n\n## Common Error Codes\n\n| Code | Description |\n|------|-------------|\n| -1000 | Unknown error |\n| -1001 | Disconnected |\n| -1002 | Unauthorized |\n| -1003 | Rate limit exceeded |\n| -1013 | Invalid quantity |\n| -1014 | Invalid price |\n| -1015 | Too many orders |\n| -1016 | Service unavailable |\n| -1020 | Unsupported operation |\n| -1021 | Timestamp outside recvWindow |\n| -1022 | Invalid signature |\n| -1100 | Illegal characters |\n| -1101 | Too many parameters |\n| -1102 | Missing required parameter |\n| -1103 | Unknown parameter |\n| -1104 | Not all parameters read |\n| -1105 | Parameter empty |\n| -1106 | Parameter not needed |\n| -1111 | Bad precision |\n| -1112 | No open orders |\n| -1114 | Invalid timeInForce |\n| -1115 | Invalid orderType |\n| -1116 | Invalid side |\n| -1117 | Empty OHLCV |\n| -1118 | Invalid OHLCV period |\n| -1119 | Invalid orderType |\n| -1120 | Invalid startTime |\n| -1121 | Invalid symbol |\n| -1125 | Invalid listenKey |\n| -1127 | Interval too large |\n| -1128 | No data in depth\u002Fkline |\n| -1130 | Invalid data sent for parameter |\n| -2010 | Order rejected (insufficient balance) |\n| -2011 | Order cancel rejected |\n| -2013 | Order does not exist |\n| -2014 | Bad API key format |\n| -2015 | Invalid API key, IP, or permissions |\n| -2016 | No trading window |\n| -2018 | Balance not sufficient |\n| -2019 | Margin not sufficient |\n\n## Rate Limits\n\n- **Request weight:** 3000 per minute\n- **Orders:** 60 per 60 seconds\n- Respect `X-MBX-USED-WEIGHT` response header\n\n## Usage Examples\n\n**User says:** \"查看 BTC 当前价格\"\n→ Call `GET \u002Fquote\u002Fv1\u002Fticker\u002Fprice?symbol=BTCUSDT`\n\n**User says:** \"用 1000 USDT 市价买入 ETH\"\n→ Show: `POST \u002Fapi\u002Fv1\u002Fspot\u002Forder` with symbol=ETHUSDT, side=BUY, type=MARKET, quantity=calculated\n→ Ask user to confirm → Execute\n\n**User says:** \"开一个 BTC 10x 多单\"\n→ First set leverage: `POST \u002Fapi\u002Fv1\u002Ffutures\u002Fleverage` symbol=BTCUSDT, leverage=10\n→ Then place order: `POST \u002Fapi\u002Fv1\u002Ffutures\u002Forder` side=BUY_OPEN, type=MARKET\n→ Ask user to confirm each step → Execute\n\n**User says:** \"查看我的合约持仓\"\n→ Call `GET \u002Fapi\u002Fv1\u002Ffutures\u002Fpositions`\n\n**User says:** \"提币 100 USDT 到地址 0x...\"\n→ HIGH-RISK WARNING → Show all params → Require explicit confirmation → Execute\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Ft\u002Ftoobit",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill toobit",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill toobit",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill toobit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Ft\u002Ftoobit\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"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":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]