supabase
Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...
margin-trading
Binance Margin-trading request using the Binance API. Authentication requires API key and secret key.
Full skill instructions
Margin-trading request on Binance using authenticated API endpoints. Requires API key and secret key for certain endpoints. Return the result in JSON format.
| Endpoint | Description | Required | Optional | Authentication |
|---|---|---|---|---|
/sapi/v1/margin/max-leverage (POST) | Adjust cross margin max leverage (USER_DATA) | maxLeverage | None | Yes |
/sapi/v1/margin/isolated/account (DELETE) | Disable Isolated Margin Account (TRADE) | symbol | recvWindow | Yes |
/sapi/v1/margin/isolated/account (POST) | Enable Isolated Margin Account (TRADE) | symbol | recvWindow | Yes |
/sapi/v1/margin/isolated/account (GET) | Query Isolated Margin Account Info (USER_DATA) | None | symbols, recvWindow | Yes |
/sapi/v1/bnbBurn (GET) | Get BNB Burn Status (USER_DATA) | None | recvWindow | Yes |
/sapi/v1/margin/tradeCoeff (GET) | Get Summary of Margin account (USER_DATA) | None | recvWindow | Yes |
/sapi/v1/margin/capital-flow (GET) | Query Cross Isolated Margin Capital Flow (USER_DATA) | None | asset, symbol, type, startTime, endTime, fromId, limit, recvWindow | Yes |
/sapi/v1/margin/account (GET) | Query Cross Margin Account Details (USER_DATA) | None | recvWindow | Yes |
/sapi/v1/margin/crossMarginData (GET) | Query Cross Margin Fee Data (USER_DATA) | None | vipLevel, coin, recvWindow | Yes |
/sapi/v1/margin/isolated/accountLimit (GET) | Query Enabled Isolated Margin Account Limit (USER_DATA) | None | recvWindow | Yes |
/sapi/v1/margin/isolatedMarginData (GET) | Query Isolated Margin Fee Data (USER_DATA) | None | vipLevel, symbol, recvWindow | Yes |
/sapi/v1/margin/interestHistory (GET) | Get Interest History (USER_DATA) | None | asset, isolatedSymbol, startTime, endTime, current, size, recvWindow | Yes |
/sapi/v1/margin/next-hourly-interest-rate (GET) | Get future hourly interest rate (USER_DATA) | assets, isIsolated | None | Yes |
/sapi/v1/margin/borrow-repay (POST) | Margin account borrow/repay(MARGIN) | asset, isIsolated, symbol, amount, type | recvWindow | Yes |
/sapi/v1/margin/borrow-repay (GET) | Query borrow/repay records in Margin account(USER_DATA) | type | asset, isolatedSymbol, txId, startTime, endTime, current, size, recvWindow | Yes |
/sapi/v1/margin/interestRateHistory (GET) | Query Margin Interest Rate History (USER_DATA) | asset | vipLevel, startTime, endTime, recvWindow | Yes |
/sapi/v1/margin/maxBorrowable (GET) | Query Max Borrow (USER_DATA) | asset | isolatedSymbol, recvWindow | Yes |
/sapi/v1/margin/crossMarginCollateralRatio (GET) | Cross margin collateral ratio (MARKET_DATA) | None | None | No |
/sapi/v1/margin/allPairs (GET) | Get All Cross Margin Pairs (MARKET_DATA) | None | symbol | No |
/sapi/v1/margin/isolated/allPairs (GET) | Get All Isolated Margin Symbol(MARKET_DATA) | None | symbol, recvWindow | No |
/sapi/v1/margin/allAssets (GET) | Get All Margin Assets (MARKET_DATA) | None | asset | No |
/sapi/v1/margin/delist-schedule (GET) | Get Delist Schedule (MARKET_DATA) | None | recvWindow | No |
/sapi/v1/margin/limit-price-pairs (GET) | Get Limit Price Pairs(MARKET_DATA) | None | None | No |
/sapi/v1/margin/list-schedule (GET) | Get list Schedule (MARKET_DATA) | None | recvWindow | No |
/sapi/v1/margin/risk-based-liquidation-ratio (GET) | Get Margin Asset Risk-Based Liquidation Ratio (MARKET_DATA) | None | None | No |
/sapi/v1/margin/restricted-asset (GET) | Get Margin Restricted Assets (MARKET_DATA) | None | None | No |
/sapi/v1/margin/isolatedMarginTier (GET) | Query Isolated Margin Tier Data (USER_DATA) | symbol | tier, recvWindow | Yes |
/sapi/v1/margin/leverageBracket (GET) | Query Liability Coin Leverage Bracket in Cross Margin Pro Mode(MARKET_DATA) | None | None | No |
/sapi/v1/margin/priceIndex (GET) | Query Margin PriceIndex (MARKET_DATA) | symbol | None | No |
/sapi/v1/margin/available-inventory (GET) | Query Margin Available Inventory(USER_DATA) | type | None | Yes |
/sapi/v1/margin/listen-key (DELETE) | Close User Data Stream (USER_STREAM) | None | None | No |
/sapi/v1/margin/listen-key (PUT) | Keepalive User Data Stream (USER_STREAM) | listenKey | None | No |
/sapi/v1/margin/listen-key (POST) | Start User Data Stream (USER_STREAM) | None | None | No |
/sapi/v1/margin/apiKey (POST) | Create Special Key(Low-Latency Trading)(TRADE) | apiName | symbol, ip, publicKey, permissionMode, recvWindow | Yes |
/sapi/v1/margin/apiKey (DELETE) | Delete Special Key(Low-Latency Trading)(TRADE) | None | apiName, symbol, recvWindow | Yes |
/sapi/v1/margin/apiKey (GET) | Query Special key(Low Latency Trading)(TRADE) | None | symbol, recvWindow | Yes |
/sapi/v1/margin/apiKey/ip (PUT) | Edit ip for Special Key(Low-Latency Trading)(TRADE) | ip | symbol, recvWindow | Yes |
/sapi/v1/margin/forceLiquidationRec (GET) | Get Force Liquidation Record (USER_DATA) | None | startTime, endTime, isolatedSymbol, current, size, recvWindow | Yes |
/sapi/v1/margin/exchange-small-liability (GET) | Get Small Liability Exchange Coin List (USER_DATA) | None | recvWindow | Yes |
/sapi/v1/margin/exchange-small-liability (POST) | Small Liability Exchange (MARGIN) | assetNames | recvWindow | Yes |
/sapi/v1/margin/exchange-small-liability-history (GET) | Get Small Liability Exchange History (USER_DATA) | current, size | startTime, endTime, recvWindow | Yes |
/sapi/v1/margin/openOrders (DELETE) | Margin Account Cancel all Open Orders on a Symbol (TRADE) | symbol | isIsolated, recvWindow | Yes |
/sapi/v1/margin/openOrders (GET) | Query Margin Account's Open Orders (USER_DATA) | None | symbol, isIsolated, recvWindow | Yes |
/sapi/v1/margin/orderList (DELETE) | Margin Account Cancel OCO (TRADE) | symbol | isIsolated, orderListId, listClientOrderId, newClientOrderId, recvWindow | Yes |
/sapi/v1/margin/orderList (GET) | Query Margin Account's OCO (USER_DATA) | None | isIsolated, symbol, orderListId, origClientOrderId, recvWindow | Yes |
/sapi/v1/margin/order (DELETE) | Margin Account Cancel Order (TRADE) | symbol | isIsolated, orderId, origClientOrderId, newClientOrderId, recvWindow | Yes |
/sapi/v1/margin/order (POST) | Margin Account New Order (TRADE) | symbol, side, type | isIsolated, quantity, quoteOrderQty, price, stopPrice, newClientOrderId, icebergQty, newOrderRespType, sideEffectType, timeInForce, selfTradePreventionMode, autoRepayAtCancel, recvWindow | Yes |
/sapi/v1/margin/order (GET) | Query Margin Account's Order (USER_DATA) | symbol | isIsolated, orderId, origClientOrderId, recvWindow | Yes |
/sapi/v1/margin/order/oco (POST) | Margin Account New OCO (TRADE) | symbol, side, quantity, price, stopPrice | isIsolated, listClientOrderId, limitClientOrderId, limitIcebergQty, stopClientOrderId, stopLimitPrice, stopIcebergQty, stopLimitTimeInForce, newOrderRespType, sideEffectType, selfTradePreventionMode, autoRepayAtCancel, recvWindow | Yes |
/sapi/v1/margin/order/oto (POST) | Margin Account New OTO (TRADE) | symbol, workingType, workingSide, workingPrice, workingQuantity, workingIcebergQty, pendingType, pendingSide, pendingQuantity | isIsolated, listClientOrderId, newOrderRespType, sideEffectType, selfTradePreventionMode, autoRepayAtCancel, workingClientOrderId, workingTimeInForce, pendingClientOrderId, pendingPrice, pendingStopPrice, pendingTrailingDelta, pendingIcebergQty, pendingTimeInForce | Yes |
/sapi/v1/margin/order/otoco (POST) | Margin Account New OTOCO (TRADE) | symbol, workingType, workingSide, workingPrice, workingQuantity, pendingSide, pendingQuantity, pendingAboveType | isIsolated, sideEffectType, autoRepayAtCancel, listClientOrderId, newOrderRespType, selfTradePreventionMode, workingClientOrderId, workingIcebergQty, workingTimeInForce, pendingAboveClientOrderId, pendingAbovePrice, pendingAboveStopPrice, pendingAboveTrailingDelta, pendingAboveIcebergQty, pendingAboveTimeInForce, pendingBelowType, pendingBelowClientOrderId, pendingBelowPrice, pendingBelowStopPrice, pendingBelowTrailingDelta, pendingBelowIcebergQty, pendingBelowTimeInForce | Yes |
/sapi/v1/margin/manual-liquidation (POST) | Margin Manual Liquidation(MARGIN) | type | symbol, recvWindow | Yes |
/sapi/v1/margin/rateLimit/order (GET) | Query Current Margin Order Count Usage (TRADE) | None | isIsolated, symbol, recvWindow | Yes |
/sapi/v1/margin/allOrderList (GET) | Query Margin Account's all OCO (USER_DATA) | None | isIsolated, symbol, fromId, startTime, endTime, limit, recvWindow | Yes |
/sapi/v1/margin/allOrders (GET) | Query Margin Account's All Orders (USER_DATA) | symbol | isIsolated, orderId, startTime, endTime, limit, recvWindow | Yes |
/sapi/v1/margin/openOrderList (GET) | Query Margin Account's Open OCO (USER_DATA) | None | isIsolated, symbol, recvWindow | Yes |
/sapi/v1/margin/myTrades (GET) | Query Margin Account's Trade List (USER_DATA) | symbol | isIsolated, orderId, startTime, endTime, fromId, limit, recvWindow | Yes |
/sapi/v1/margin/myPreventedMatches (GET) | Query Prevented Matches(USER_DATA) | symbol | preventedMatchId, orderId, fromPreventedMatchId, recvWindow, isIsolated | Yes |
/sapi/v1/margin/api-key-list (GET) | Query Special key List(Low Latency Trading)(TRADE) | None | symbol, recvWindow | Yes |
/sapi/v1/margin/transfer (GET) | Get Cross Margin Transfer History (USER_DATA) | None | asset, type, startTime, endTime, current, size, isolatedSymbol, recvWindow | Yes |
/sapi/v1/margin/maxTransferable (GET) | Query Max Transfer-Out Amount (USER_DATA) | asset | isolatedSymbol, recvWindow | Yes |
fromId is set, data with id greater than fromId will be returned. Otherwise, the latest data will be returned. (e.g., 1)TRUE for Isolated Margin, FALSE for Cross Margin, Default FALSE (e.g., FALSE)MARGIN,ISOLATEDtranId in POST /sapi/v1/margin/loan (e.g., 1)orderListId or listClientOrderId must be provided (e.g., 1)orderListId or listClientOrderId must be provided (e.g., 1)stopLimitTimeInForce is required. (e.g., 1.0)GTC/FOK/IOCLIMIT, LIMIT_MAKERworkingTimeInForce is GTC. (e.g., 1.0)MARKET orders using quoteOrderQty are not supported. (e.g., Order Types)pendingTimeInForce is GTC. (e.g., 1.0)workingTimeInForce is GTC. (e.g., 1.0)LIMIT_MAKER, STOP_LOSS, and STOP_LOSS_LIMITpendingAboveTimeInForce is GTC. (e.g., 1.0)LIMIT_MAKER, STOP_LOSS, and STOP_LOSS_LIMITpendingBelowTimeInForce is GTC. (e.g., 1.0)STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders. (e.g., 1.0)LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order. (e.g., 1.0)For endpoints that require authentication, you will need to provide Binance API credentials. Required credentials:
Base URLs:
Users can provide Binance API credentials in different ways. The agent will try to retrieve automatically with the two first ways the credentials, but users can also explicitly tell the agent that they have set the credentials or stored them in a .env file, and the agent should re-read that file when they do. The agent can also make http requests with the two first methods without user confirmation.
Search for the following specific variables only (never dump the full environment):
Authorized environment variables
BINANCE_API_KEY and BINANCE_SECRET_KEYRead and use in a single exec call so the raw key never enters the agent's context:
KEY="$BINANCE_API_KEY"
SECRET="$BINANCE_SECRET_KEY"
response=$(curl -s -X GET "$URL" \
-H "X-MBX-APIKEY: $KEY" \
--data-urlencode "param1=value1")
echo "$response"
Environment variables must be set before OpenClaw starts. They are inherited at process startup and cannot be injected into a running instance. If you need to add or update credentials without restarting, use a secrets file (see option 2).
Check ~/.openclaw/secrets.env , ~/.env, or a .env file in the workspace. Read individual keys with grep, never source the full file:
# Try all credential locations in order
API_KEY=$(grep '^BINANCE_API_KEY=' ~/.openclaw/secrets.env 2>/dev/null | cut -d= -f2-)
SECRET_KEY=$(grep '^BINANCE_SECRET_KEY=' ~/.openclaw/secrets.env 2>/dev/null | cut -d= -f2-)
# Fallback: search .env in known directories (KEY=VALUE then raw line format)
for dir in ~/.openclaw ~; do
[ -n "$API_KEY" ] && break
env_file="$dir/.env"
[ -f "$env_file" ] || continue
# Read first two lines
line1=$(sed -n '1p' "$env_file")
line2=$(sed -n '2p' "$env_file")
# Check if lines contain '=' indicating KEY=VALUE format
if [[ "$line1" == *=* && "$line2" == *=* ]]; then
API_KEY=$(grep '^BINANCE_API_KEY=' "$env_file" 2>/dev/null | cut -d= -f2-)
SECRET_KEY=$(grep '^BINANCE_SECRET_KEY=' "$env_file" 2>/dev/null | cut -d= -f2-)
else
# Treat lines as raw values
API_KEY="$line1"
SECRET_KEY="$line2"
fi
done
This file can be updated at any time without restarting OpenClaw, keys are read fresh on each invocation. Users can tell you the variables are now set or stored in a .env file, and you should re-read that file when they do.
Sending a file where the content is in the following format:
abc123...xyz
secret123...key
printenv, env, export, or set without a specific variable namegrep on env files without anchoring to a specific key ('^VARNAME=')source .env or . .env)TOOLS.md to version control if it contains real credentials — add it to .gitignoreNever disclose the location of the API key and secret file.
Never send the API key and secret to any website other than Mainnet and Testnet.
When showing credentials to users:
su1Qc...8akf***...aws1Example response when asked for credentials: Account: main API Key: su1Qc...8akf Secret: ***...aws1
When listing accounts, show names and environment only — never keys: Binance Accounts:
When performing transactions in mainnet, always confirm with the user before proceeding by asking them to write "CONFIRM" to proceed.
## Binance Accounts
### main
- API Key: abc123...xyz
- Secret: secret123...key
- Description: Primary trading account
### futures-keys
- API Key: futures789...def
- Secret: futuressecret...uvw
- Description: Futures trading account
When user provides new credentials by Inline file or message:
TOOLS.md with masked display confirmationFor trading endpoints that require a signature:
X-MBX-APIKEY header.Otherwise, do not perform steps 4–6.
For endpoints that include the newClientOrderId parameter, the value must always start with agent-. If the parameter is not provided, agent- followed by 18 random alphanumeric characters will be generated automatically. If a value is provided, it will be prefixed with agent-
Example: agent-1a2b3c4d5e6f7g8h9i
Include User-Agent header with the following string: binance-margin-trading/1.1.0 (Skill)
See references/authentication.md for implementation details.
Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...
Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.
Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.
A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.
Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.
Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.
Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.
Send, read, and manage Gmail messages, drafts, labels, and account settings.
Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.
Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.
Discover your celebrity doppelgänger with StarByFace!
GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams
Detect AI-generated voices to protect against audio fraud.
Ensure Your Content's Originality with AI Plagiarism Checker
Upscale images by 400% without quality loss
Protect your social media from copyright disputes
Accurately Detect AI-Generated Content with TheChecker.AI
Chrome extension that detects and flags AI-generated content