Binance Spot trading via authenticated API endpoints. Supports market data queries, order placement, account info, and order management on mainnet and testnet.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
The command stays on one line. Scroll horizontally to inspect it before copying.
Prefer a local copy? Download the files currently available to SkillsMP.
Showing SKILL.md
SKILL.md
Source instructions · Read-only preview
name
binance-spot
description
Binance Spot trading via authenticated API endpoints. Supports market data queries, order placement, account info, and order management on mainnet and testnet.
showPermissionSets: Controls whether the content of the permissionSets field is populated or not. Defaults to true (e.g., true)
symbol: (e.g., BNBUSDT)
fromId: ID to get aggregate trades from INCLUSIVE. (e.g., 1)
startTime: Timestamp in ms to get aggregate trades from INCLUSIVE. (e.g., 1735693200000)
endTime: Timestamp in ms to get aggregate trades until INCLUSIVE. (e.g., 1735693200000)
limit: Default: 500; Maximum: 1000. (e.g., 500)
timeZone: Default: 0 (UTC)
recvWindow: The value cannot be greater than 60000. Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified. (e.g., 5000)
timestamp: (e.g., 1)
quantity: (e.g., 1)
quoteOrderQty: (e.g., 1)
price: (e.g., 400)
newClientOrderId: A unique id among open orders. Automatically generated if not sent. Orders with the same newClientOrderID can be accepted only when the previous one is filled, otherwise the order will be rejected.
strategyId: (e.g., 1)
strategyType: The value cannot be less than 1000000. (e.g., 1)
stopPrice: Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders. (e.g., 1)
trailingDelta: See Trailing Stop order FAQ. (e.g., 1)
icebergQty: Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order. (e.g., 1)
Credentials requested: Mask secrets (show last 5 chars only)
Listing accounts: Show names and environment, never keys
Account selection: Ask if ambiguous, default to main
When doing a transaction in mainnet, confirm with user before by asking to write "CONFIRM" to proceed
New credentials: Prompt for name, environment, signing mode
Adding New Accounts
When user provides new credentials:
Ask for account name
Ask: Mainnet or Testnet?
Store in TOOLS.md with masked display confirmation
Signing Requests
All trading endpoints require HMAC SHA256 signature:
Build query string with all params + timestamp (Unix ms)
Sign query string with secretKey using HMAC SHA256, RSA, or Ed25519 (depending on account config)
Append signature to query string
Include X-MBX-APIKEY header
newQty
cancelNewClientOrderId: Used to uniquely identify this cancel. Automatically generated by default.
cancelOrigClientOrderId: Either cancelOrderId or cancelOrigClientOrderId must be sent. If both cancelOrderId and cancelOrigClientOrderId parameters are provided, the cancelOrderId is searched first, then the cancelOrigClientOrderId from that result is checked against that order. If both conditions are not met the request will be rejected.
cancelOrderId: Either cancelOrderId or cancelOrigClientOrderId must be sent. If both cancelOrderId and cancelOrigClientOrderId parameters are provided, the cancelOrderId is searched first, then the cancelOrigClientOrderId from that result is checked against that order. If both conditions are not met the request will be rejected. (e.g., 1)
listClientOrderId: A unique Id for the entire orderList
quantity: (e.g., 1)
limitClientOrderId: A unique Id for the limit order
price: (e.g., 1)
limitStrategyId: (e.g., 1)
limitStrategyType: The value cannot be less than 1000000. (e.g., 1)
limitIcebergQty: Used to make the LIMIT_MAKER leg an iceberg order. (e.g., 1)
stopClientOrderId: A unique Id for the stop loss/stop loss limit leg
stopPrice: (e.g., 1)
stopStrategyId: (e.g., 1)
stopStrategyType: The value cannot be less than 1000000. (e.g., 1)
stopLimitPrice: If provided, stopLimitTimeInForce is required. (e.g., 1)
stopIcebergQty: Used with STOP_LOSS_LIMIT leg to make an iceberg order. (e.g., 1)
computeCommissionRates: Default: false See Commissions FAQ to learn more.
orderListId: Either orderListId or listClientOrderId must be provided (e.g., 1)
aboveClientOrderId: Arbitrary unique ID among open orders for the above order. Automatically generated if not sent
aboveIcebergQty: Note that this can only be used if aboveTimeInForce is GTC. (e.g., 1)
abovePrice: Can be used if aboveType is STOP_LOSS_LIMIT , LIMIT_MAKER, or TAKE_PROFIT_LIMIT to specify the limit price. (e.g., 1)
aboveStopPrice: Can be used if aboveType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT. Either aboveStopPrice or aboveTrailingDelta or both, must be specified. (e.g., 1)
aboveTrailingDelta: See Trailing Stop order FAQ. (e.g., 1)
aboveStrategyId: Arbitrary numeric value identifying the above order within an order strategy. (e.g., 1)
aboveStrategyType: Arbitrary numeric value identifying the above order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)
abovePegOffsetValue: (e.g., 1)
belowClientOrderId: Arbitrary unique ID among open orders for the below order. Automatically generated if not sent
belowIcebergQty: Note that this can only be used if belowTimeInForce is GTC. (e.g., 1)
belowPrice: Can be used if belowType is STOP_LOSS_LIMIT, LIMIT_MAKER, or TAKE_PROFIT_LIMIT to specify the limit price. (e.g., 1)
belowStopPrice: Can be used if belowType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT or TAKE_PROFIT_LIMIT Either belowStopPrice or belowTrailingDelta or both, must be specified. (e.g., 1)
belowTrailingDelta: See Trailing Stop order FAQ. (e.g., 1)
belowStrategyId: Arbitrary numeric value identifying the below order within an order strategy. (e.g., 1)
belowStrategyType: Arbitrary numeric value identifying the below order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)
belowPegOffsetValue: (e.g., 1)
workingClientOrderId: Arbitrary unique ID among open orders for the working order. Automatically generated if not sent.
workingPrice: (e.g., 1)
workingQuantity: Sets the quantity for the working order. (e.g., 1)
workingIcebergQty: This can only be used if workingTimeInForce is GTC, or if workingType is LIMIT_MAKER. (e.g., 1)
workingStrategyId: Arbitrary numeric value identifying the working order within an order strategy. (e.g., 1)
workingStrategyType: Arbitrary numeric value identifying the working order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)
workingPegOffsetValue: (e.g., 1)
pendingClientOrderId: Arbitrary unique ID among open orders for the pending order. Automatically generated if not sent.
pendingPrice: (e.g., 1)
pendingStopPrice: (e.g., 1)
pendingTrailingDelta: (e.g., 1)
pendingIcebergQty: This can only be used if pendingTimeInForce is GTC or if pendingType is LIMIT_MAKER. (e.g., 1)
pendingStrategyId: Arbitrary numeric value identifying the pending order within an order strategy. (e.g., 1)
pendingStrategyType: Arbitrary numeric value identifying the pending order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)
pendingPegOffsetValue: (e.g., 1)
pendingAboveClientOrderId: Arbitrary unique ID among open orders for the pending above order. Automatically generated if not sent.
pendingAbovePrice: Can be used if pendingAboveType is STOP_LOSS_LIMIT , LIMIT_MAKER, or TAKE_PROFIT_LIMIT to specify the limit price. (e.g., 1)
pendingAboveStopPrice: Can be used if pendingAboveType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT (e.g., 1)
pendingAboveTrailingDelta: See Trailing Stop FAQ (e.g., 1)
pendingAboveIcebergQty: This can only be used if pendingAboveTimeInForce is GTC or if pendingAboveType is LIMIT_MAKER. (e.g., 1)
pendingAboveStrategyId: Arbitrary numeric value identifying the pending above order within an order strategy. (e.g., 1)
pendingAboveStrategyType: Arbitrary numeric value identifying the pending above order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)
pendingAbovePegOffsetValue: (e.g., 1)
pendingBelowClientOrderId: Arbitrary unique ID among open orders for the pending below order. Automatically generated if not sent.
pendingBelowPrice: Can be used if pendingBelowType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT to specify limit price (e.g., 1)
pendingBelowStopPrice: Can be used if pendingBelowType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT or TAKE_PROFIT_LIMIT. Either pendingBelowStopPrice or pendingBelowTrailingDelta or both, must be specified. (e.g., 1)
pendingBelowTrailingDelta: (e.g., 1)
pendingBelowIcebergQty: This can only be used if pendingBelowTimeInForce is GTC, or if pendingBelowType is LIMIT_MAKER. (e.g., 1)
pendingBelowStrategyId: Arbitrary numeric value identifying the pending below order within an order strategy. (e.g., 1)
pendingBelowStrategyType: Arbitrary numeric value identifying the pending below order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)
pendingBelowPegOffsetValue: (e.g., 1)
pendingQuantity: Sets the quantity for the pending order. (e.g., 1)
omitZeroBalances: When set to true, emits only the non-zero balances of an account. Default value: false