Binance Official Spot
/install binance-official-spot
\r \r
Binance Spot Skill\r
\r Spot request on Binance using authenticated API endpoints. Requires API key and secret key for certain endpoints. Return the result in JSON format.\r \r
Quick Reference\r
\r
| Endpoint | Description | Required | Optional | Authentication |\r
|----------|-------------|----------|----------|----------------|\r
| /api/v3/exchangeInfo (GET) | Exchange information | None | symbol, symbols, permissions, showPermissionSets, symbolStatus | No |\r
| /api/v3/ping (GET) | Test connectivity | None | None | No |\r
| /api/v3/time (GET) | Check server time | None | None | No |\r
| /api/v3/aggTrades (GET) | Compressed/Aggregate trades list | symbol | fromId, startTime, endTime, limit | No |\r
| /api/v3/avgPrice (GET) | Current average price | symbol | None | No |\r
| /api/v3/depth (GET) | Order book | symbol | limit, symbolStatus | No |\r
| /api/v3/historicalTrades (GET) | Old trade lookup | symbol | limit, fromId | No |\r
| /api/v3/klines (GET) | Kline/Candlestick data | symbol, interval | startTime, endTime, timeZone, limit | No |\r
| /api/v3/ticker (GET) | Rolling window price change statistics | None | symbol, symbols, windowSize, type, symbolStatus | No |\r
| /api/v3/ticker/24hr (GET) | 24hr ticker price change statistics | None | symbol, symbols, type, symbolStatus | No |\r
| /api/v3/ticker/bookTicker (GET) | Symbol order book ticker | None | symbol, symbols, symbolStatus | No |\r
| /api/v3/ticker/price (GET) | Symbol price ticker | None | symbol, symbols, symbolStatus | No |\r
| /api/v3/ticker/tradingDay (GET) | Trading Day Ticker | None | symbol, symbols, timeZone, type, symbolStatus | No |\r
| /api/v3/trades (GET) | Recent trades list | symbol | limit | No |\r
| /api/v3/uiKlines (GET) | UIKlines | symbol, interval | startTime, endTime, timeZone, limit | No |\r
| /api/v3/openOrders (DELETE) | Cancel All Open Orders on a Symbol | symbol | recvWindow | Yes |\r
| /api/v3/openOrders (GET) | Current open orders | None | symbol, recvWindow | Yes |\r
| /api/v3/order (POST) | New order | symbol, side, type | timeInForce, quantity, quoteOrderQty, price, newClientOrderId, strategyId, strategyType, stopPrice, trailingDelta, icebergQty, newOrderRespType, selfTradePreventionMode, pegPriceType, pegOffsetValue, pegOffsetType, recvWindow | Yes |\r
| /api/v3/order (DELETE) | Cancel order | symbol | orderId, origClientOrderId, newClientOrderId, cancelRestrictions, recvWindow | Yes |\r
| /api/v3/order (GET) | Query order | symbol | orderId, origClientOrderId, recvWindow | Yes |\r
| /api/v3/order/amend/keepPriority (PUT) | Order Amend Keep Priority | symbol, newQty | orderId, origClientOrderId, newClientOrderId, recvWindow | Yes |\r
| /api/v3/order/cancelReplace (POST) | Cancel an Existing Order and Send a New Order | symbol, side, type, cancelReplaceMode | timeInForce, quantity, quoteOrderQty, price, cancelNewClientOrderId, cancelOrigClientOrderId, cancelOrderId, newClientOrderId, strategyId, strategyType, stopPrice, trailingDelta, icebergQty, newOrderRespType, selfTradePreventionMode, cancelRestrictions, orderRateLimitExceededMode, pegPriceType, pegOffsetValue, pegOffsetType, recvWindow | Yes |\r
| /api/v3/order/oco (POST) | New OCO - Deprecated | symbol, side, quantity, price, stopPrice | listClientOrderId, limitClientOrderId, limitStrategyId, limitStrategyType, limitIcebergQty, trailingDelta, stopClientOrderId, stopStrategyId, stopStrategyType, stopLimitPrice, stopIcebergQty, stopLimitTimeInForce, newOrderRespType, selfTradePreventionMode, recvWindow | Yes |\r
| /api/v3/order/test (POST) | Test new order | symbol, side, type | computeCommissionRates, timeInForce, quantity, quoteOrderQty, price, newClientOrderId, strategyId, strategyType, stopPrice, trailingDelta, icebergQty, newOrderRespType, selfTradePreventionMode, pegPriceType, pegOffsetValue, pegOffsetType, recvWindow | Yes |\r
| /api/v3/orderList (DELETE) | Cancel Order list | symbol | orderListId, listClientOrderId, newClientOrderId, recvWindow | Yes |\r
| /api/v3/orderList (GET) | Query Order list | None | orderListId, origClientOrderId, recvWindow | Yes |\r
| /api/v3/orderList/oco (POST) | New Order list - OCO | symbol, side, quantity, aboveType, belowType | listClientOrderId, aboveClientOrderId, aboveIcebergQty, abovePrice, aboveStopPrice, aboveTrailingDelta, aboveTimeInForce, aboveStrategyId, aboveStrategyType, abovePegPriceType, abovePegOffsetType, abovePegOffsetValue, belowClientOrderId, belowIcebergQty, belowPrice, belowStopPrice, belowTrailingDelta, belowTimeInForce, belowStrategyId, belowStrategyType, belowPegPriceType, belowPegOffsetType, belowPegOffsetValue, newOrderRespType, selfTradePreventionMode, recvWindow | Yes |\r
| /api/v3/orderList/opo (POST) | New Order List - OPO | symbol, workingType, workingSide, workingPrice, workingQuantity, pendingType, pendingSide | listClientOrderId, newOrderRespType, selfTradePreventionMode, workingClientOrderId, workingIcebergQty, workingTimeInForce, workingStrategyId, workingStrategyType, workingPegPriceType, workingPegOffsetType, workingPegOffsetValue, pendingClientOrderId, pendingPrice, pendingStopPrice, pendingTrailingDelta, pendingIcebergQty, pendingTimeInForce, pendingStrategyId, pendingStrategyType, pendingPegPriceType, pendingPegOffsetType, pendingPegOffsetValue, recvWindow | Yes |\r
| /api/v3/orderList/opoco (POST) | New Order List - OPOCO | symbol, workingType, workingSide, workingPrice, workingQuantity, pendingSide, pendingAboveType | listClientOrderId, newOrderRespType, selfTradePreventionMode, workingClientOrderId, workingIcebergQty, workingTimeInForce, workingStrategyId, workingStrategyType, workingPegPriceType, workingPegOffsetType, workingPegOffsetValue, pendingAboveClientOrderId, pendingAbovePrice, pendingAboveStopPrice, pendingAboveTrailingDelta, pendingAboveIcebergQty, pendingAboveTimeInForce, pendingAboveStrategyId, pendingAboveStrategyType, pendingAbovePegPriceType, pendingAbovePegOffsetType, pendingAbovePegOffsetValue, pendingBelowType, pendingBelowClientOrderId, pendingBelowPrice, pendingBelowStopPrice, pendingBelowTrailingDelta, pendingBelowIcebergQty, pendingBelowTimeInForce, pendingBelowStrategyId, pendingBelowStrategyType, pendingBelowPegPriceType, pendingBelowPegOffsetType, pendingBelowPegOffsetValue, recvWindow | Yes |\r
| /api/v3/orderList/oto (POST) | New Order list - OTO | symbol, workingType, workingSide, workingPrice, workingQuantity, pendingType, pendingSide, pendingQuantity | listClientOrderId, newOrderRespType, selfTradePreventionMode, workingClientOrderId, workingIcebergQty, workingTimeInForce, workingStrategyId, workingStrategyType, workingPegPriceType, workingPegOffsetType, workingPegOffsetValue, pendingClientOrderId, pendingPrice, pendingStopPrice, pendingTrailingDelta, pendingIcebergQty, pendingTimeInForce, pendingStrategyId, pendingStrategyType, pendingPegPriceType, pendingPegOffsetType, pendingPegOffsetValue, recvWindow | Yes |\r
| /api/v3/orderList/otoco (POST) | New Order list - OTOCO | symbol, workingType, workingSide, workingPrice, workingQuantity, pendingSide, pendingQuantity, pendingAboveType | listClientOrderId, newOrderRespType, selfTradePreventionMode, workingClientOrderId, workingIcebergQty, workingTimeInForce, workingStrategyId, workingStrategyType, workingPegPriceType, workingPegOffsetType, workingPegOffsetValue, pendingAboveClientOrderId, pendingAbovePrice, pendingAboveStopPrice, pendingAboveTrailingDelta, pendingAboveIcebergQty, pendingAboveTimeInForce, pendingAboveStrategyId, pendingAboveStrategyType, pendingAbovePegPriceType, pendingAbovePegOffsetType, pendingAbovePegOffsetValue, pendingBelowType, pendingBelowClientOrderId, pendingBelowPrice, pendingBelowStopPrice, pendingBelowTrailingDelta, pendingBelowIcebergQty, pendingBelowTimeInForce, pendingBelowStrategyId, pendingBelowStrategyType, pendingBelowPegPriceType, pendingBelowPegOffsetType, pendingBelowPegOffsetValue, recvWindow | Yes |\r
| /api/v3/sor/order (POST) | New order using SOR | symbol, side, type, quantity | timeInForce, price, newClientOrderId, strategyId, strategyType, icebergQty, newOrderRespType, selfTradePreventionMode, recvWindow | Yes |\r
| /api/v3/sor/order/test (POST) | Test new order using SOR | symbol, side, type, quantity | computeCommissionRates, timeInForce, price, newClientOrderId, strategyId, strategyType, icebergQty, newOrderRespType, selfTradePreventionMode, recvWindow | Yes |\r
| /api/v3/account (GET) | Account information | None | omitZeroBalances, recvWindow | Yes |\r
| /api/v3/account/commission (GET) | Query Commission Rates | symbol | None | Yes |\r
| /api/v3/allOrderList (GET) | Query all Order lists | None | fromId, startTime, endTime, limit, recvWindow | Yes |\r
| /api/v3/allOrders (GET) | All orders | symbol | orderId, startTime, endTime, limit, recvWindow | Yes |\r
| /api/v3/myAllocations (GET) | Query Allocations | symbol | startTime, endTime, fromAllocationId, limit, orderId, recvWindow | Yes |\r
| /api/v3/myFilters (GET) | Query relevant filters | symbol | recvWindow | Yes |\r
| /api/v3/myPreventedMatches (GET) | Query Prevented Matches | symbol | preventedMatchId, orderId, fromPreventedMatchId, limit, recvWindow | Yes |\r
| /api/v3/myTrades (GET) | Account trade list | symbol | orderId, startTime, endTime, fromId, limit, recvWindow | Yes |\r
| /api/v3/openOrderList (GET) | Query Open Order lists | None | recvWindow | Yes |\r
| /api/v3/order/amendments (GET) | Query Order Amendments | symbol, orderId | fromExecutionId, limit, recvWindow | Yes |\r
| /api/v3/rateLimit/order (GET) | Query Unfilled Order Count | None | recvWindow | Yes |\r
\r
---\r
\r
Parameters\r
\r
Common Parameters\r
\r
- symbol: Symbol to query (e.g., BNBUSDT)\r
- symbols: List of symbols to query\r
- permissions: List of permissions to query\r
- showPermissionSets: Controls whether the content of the
permissionSetsfield is populated or not. Defaults totrue(e.g., true)\r - symbol: (e.g., BNBUSDT)\r
- fromId: ID to get aggregate trades from INCLUSIVE. (e.g., 1)\r
- startTime: Timestamp in ms to get aggregate trades from INCLUSIVE. (e.g., 1735693200000)\r
- endTime: Timestamp in ms to get aggregate trades until INCLUSIVE. (e.g., 1735693200000)\r
- limit: Default: 500; Maximum: 1000. (e.g., 500)\r
- timeZone: Default: 0 (UTC)\r
- 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)\r - timestamp: (e.g., 1)\r
- quantity: (e.g., 1)\r
- quoteOrderQty: (e.g., 1)\r
- price: (e.g., 400)\r
- newClientOrderId: A unique id among open orders. Automatically generated if not sent. Orders with the same
newClientOrderIDcan be accepted only when the previous one is filled, otherwise the order will be rejected.\r - strategyId: (e.g., 1)\r
- strategyType: The value cannot be less than
1000000. (e.g., 1)\r - stopPrice: Used with
STOP_LOSS,STOP_LOSS_LIMIT,TAKE_PROFIT, andTAKE_PROFIT_LIMITorders. (e.g., 1)\r - trailingDelta: See Trailing Stop order FAQ. (e.g., 1)\r
- icebergQty: Used with
LIMIT,STOP_LOSS_LIMIT, andTAKE_PROFIT_LIMITto create an iceberg order. (e.g., 1)\r - pegOffsetValue: Priceleveltopegthepriceto(max:100). SeePeggedOrdersInfo (e.g., 1)\r
- orderId: (e.g., 1)\r
- origClientOrderId: \r
- newQty:
newQtymust be greater than 0 and less than the order's quantity. (e.g., 1)\r - cancelNewClientOrderId: Used to uniquely identify this cancel. Automatically generated by default.\r
- cancelOrigClientOrderId: Either
cancelOrderIdorcancelOrigClientOrderIdmust be sent. \x3C/br> If bothcancelOrderIdandcancelOrigClientOrderIdparameters are provided, thecancelOrderIdis searched first, then thecancelOrigClientOrderIdfrom that result is checked against that order. \x3C/br> If both conditions are not met the request will be rejected.\r - cancelOrderId: Either
cancelOrderIdorcancelOrigClientOrderIdmust be sent. \x3C/br>If bothcancelOrderIdandcancelOrigClientOrderIdparameters are provided, thecancelOrderIdis searched first, then thecancelOrigClientOrderIdfrom that result is checked against that order. \x3C/br>If both conditions are not met the request will be rejected. (e.g., 1)\r - listClientOrderId: A unique Id for the entire orderList\r
- quantity: (e.g., 1)\r
- limitClientOrderId: A unique Id for the limit order\r
- price: (e.g., 1)\r
- limitStrategyId: (e.g., 1)\r
- limitStrategyType: The value cannot be less than
1000000. (e.g., 1)\r - limitIcebergQty: Used to make the
LIMIT_MAKERleg an iceberg order. (e.g., 1)\r - stopClientOrderId: A unique Id for the stop loss/stop loss limit leg\r
- stopPrice: (e.g., 1)\r
- stopStrategyId: (e.g., 1)\r
- stopStrategyType: The value cannot be less than
1000000. (e.g., 1)\r - stopLimitPrice: If provided,
stopLimitTimeInForceis required. (e.g., 1)\r - stopIcebergQty: Used with
STOP_LOSS_LIMITleg to make an iceberg order. (e.g., 1)\r - computeCommissionRates: Default:
falseSee Commissions FAQ to learn more.\r - orderListId: Either
orderListIdorlistClientOrderIdmust be provided (e.g., 1)\r - aboveClientOrderId: Arbitrary unique ID among open orders for the above order. Automatically generated if not sent\r
- aboveIcebergQty: Note that this can only be used if
aboveTimeInForceisGTC. (e.g., 1)\r - abovePrice: Can be used if
aboveTypeisSTOP_LOSS_LIMIT,LIMIT_MAKER, orTAKE_PROFIT_LIMITto specify the limit price. (e.g., 1)\r - aboveStopPrice: Can be used if
aboveTypeisSTOP_LOSS,STOP_LOSS_LIMIT,TAKE_PROFIT,TAKE_PROFIT_LIMIT. EitheraboveStopPriceoraboveTrailingDeltaor both, must be specified. (e.g., 1)\r - aboveTrailingDelta: See Trailing Stop order FAQ. (e.g., 1)\r
- aboveStrategyId: Arbitrary numeric value identifying the above order within an order strategy. (e.g., 1)\r
- aboveStrategyType: Arbitrary numeric value identifying the above order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)\r
- abovePegOffsetValue: (e.g., 1)\r
- belowClientOrderId: Arbitrary unique ID among open orders for the below order. Automatically generated if not sent\r
- belowIcebergQty: Note that this can only be used if
belowTimeInForceisGTC. (e.g., 1)\r - belowPrice: Can be used if
belowTypeisSTOP_LOSS_LIMIT,LIMIT_MAKER, orTAKE_PROFIT_LIMITto specify the limit price. (e.g., 1)\r - belowStopPrice: Can be used if
belowTypeisSTOP_LOSS,STOP_LOSS_LIMIT, TAKE_PROFITorTAKE_PROFIT_LIMITEither belowStopPrice or belowTrailingDelta or both, must be specified. (e.g., 1)\r - belowTrailingDelta: See Trailing Stop order FAQ. (e.g., 1)\r
- belowStrategyId: Arbitrary numeric value identifying the below order within an order strategy. (e.g., 1)\r
- belowStrategyType: Arbitrary numeric value identifying the below order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)\r
- belowPegOffsetValue: (e.g., 1)\r
- workingClientOrderId: Arbitrary unique ID among open orders for the working order. Automatically generated if not sent.\r
- workingPrice: (e.g., 1)\r
- workingQuantity: Sets the quantity for the working order. (e.g., 1)\r
- workingIcebergQty: This can only be used if
workingTimeInForceisGTC, or ifworkingTypeisLIMIT_MAKER. (e.g., 1)\r - workingStrategyId: Arbitrary numeric value identifying the working order within an order strategy. (e.g., 1)\r
- workingStrategyType: Arbitrary numeric value identifying the working order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)\r
- workingPegOffsetValue: (e.g., 1)\r
- pendingClientOrderId: Arbitrary unique ID among open orders for the pending order. Automatically generated if not sent.\r
- pendingPrice: (e.g., 1)\r
- pendingStopPrice: (e.g., 1)\r
- pendingTrailingDelta: (e.g., 1)\r
- pendingIcebergQty: This can only be used if
pendingTimeInForceisGTCor ifpendingTypeisLIMIT_MAKER. (e.g., 1)\r - pendingStrategyId: Arbitrary numeric value identifying the pending order within an order strategy. (e.g., 1)\r
- pendingStrategyType: Arbitrary numeric value identifying the pending order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)\r
- pendingPegOffsetValue: (e.g., 1)\r
- pendingAboveClientOrderId: Arbitrary unique ID among open orders for the pending above order. Automatically generated if not sent.\r
- pendingAbovePrice: Can be used if
pendingAboveTypeisSTOP_LOSS_LIMIT,LIMIT_MAKER, orTAKE_PROFIT_LIMITto specify the limit price. (e.g., 1)\r - pendingAboveStopPrice: Can be used if
pendingAboveTypeisSTOP_LOSS,STOP_LOSS_LIMIT,TAKE_PROFIT,TAKE_PROFIT_LIMIT(e.g., 1)\r - pendingAboveTrailingDelta: See Trailing Stop FAQ (e.g., 1)\r
- pendingAboveIcebergQty: This can only be used if
pendingAboveTimeInForceisGTCor ifpendingAboveTypeisLIMIT_MAKER. (e.g., 1)\r - pendingAboveStrategyId: Arbitrary numeric value identifying the pending above order within an order strategy. (e.g., 1)\r
- pendingAboveStrategyType: Arbitrary numeric value identifying the pending above order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)\r
- pendingAbovePegOffsetValue: (e.g., 1)\r
- pendingBelowClientOrderId: Arbitrary unique ID among open orders for the pending below order. Automatically generated if not sent.\r
- pendingBelowPrice: Can be used if
pendingBelowTypeisSTOP_LOSS_LIMITorTAKE_PROFIT_LIMITto specify limit price (e.g., 1)\r - pendingBelowStopPrice: Can be used if
pendingBelowTypeisSTOP_LOSS,STOP_LOSS_LIMIT, TAKE_PROFIT or TAKE_PROFIT_LIMIT. EitherpendingBelowStopPriceorpendingBelowTrailingDeltaor both, must be specified. (e.g., 1)\r - pendingBelowTrailingDelta: (e.g., 1)\r
- pendingBelowIcebergQty: This can only be used if
pendingBelowTimeInForceisGTC, or ifpendingBelowTypeisLIMIT_MAKER. (e.g., 1)\r - pendingBelowStrategyId: Arbitrary numeric value identifying the pending below order within an order strategy. (e.g., 1)\r
- pendingBelowStrategyType: Arbitrary numeric value identifying the pending below order strategy. Values smaller than 1000000 are reserved and cannot be used. (e.g., 1)\r
- pendingBelowPegOffsetValue: (e.g., 1)\r
- pendingQuantity: Sets the quantity for the pending order. (e.g., 1)\r
- omitZeroBalances: When set to
true, emits only the non-zero balances of an account. Default value:false\r - fromAllocationId: (e.g., 1)\r
- timestamp: (e.g., 1)\r
- preventedMatchId: (e.g., 1)\r
- fromPreventedMatchId: (e.g., 1)\r
- orderId: (e.g., 1)\r
- fromExecutionId: (e.g., 1)\r
- limit: Default:500; Maximum: 1000 (e.g., 500)\r \r \r
Enums\r
\r
- interval: 1s | 1m | 3m | 5m | 15m | 30m | 1h | 2h | 4h | 6h | 8h | 12h | 1d | 3d | 1w | 1M\r
- windowSize: 1m | 2m | 3m | 4m | 5m | 6m | 7m | 8m | 9m | 10m | 11m | 12m | 13m | 14m | 15m | 16m | 17m | 18m | 19m | 20m | 21m | 22m | 23m | 24m | 25m | 26m | 27m | 28m | 29m | 30m | 31m | 32m | 33m | 34m | 35m | 36m | 37m | 38m | 39m | 40m | 41m | 42m | 43m | 44m | 45m | 46m | 47m | 48m | 49m | 50m | 51m | 52m | 53m | 54m | 55m | 56m | 57m | 58m | 59m | 1h | 2h | 3h | 4h | 5h | 6h | 7h | 8h | 9h | 10h | 11h | 12h | 13h | 14h | 15h | 16h | 17h | 18h | 19h | 20h | 21h | 22h | 23h | 1d | 2d | 3d | 4d | 5d | 6d\r
- type: FULL | MINI\r
- type: MARKET | LIMIT | STOP_LOSS | STOP_LOSS_LIMIT | TAKE_PROFIT | TAKE_PROFIT_LIMIT | LIMIT_MAKER | NON_REPRESENTABLE\r
- selfTradePreventionMode: NONE | EXPIRE_TAKER | EXPIRE_MAKER | EXPIRE_BOTH | DECREMENT | NON_REPRESENTABLE\r
- symbolStatus: TRADING | END_OF_DAY | HALT | BREAK | NON_REPRESENTABLE\r
- timeInForce: GTC | IOC | FOK | NON_REPRESENTABLE\r
- pegPriceType: PRIMARY_PEG | MARKET_PEG | NON_REPRESENTABLE\r
- pegOffsetType: PRICE_LEVEL | NON_REPRESENTABLE\r
- newOrderRespType: ACK | RESULT | FULL | MARKET | LIMIT\r
- cancelRestrictions: ONLY_NEW | NEW | ONLY_PARTIALLY_FILLED | PARTIALLY_FILLED\r
- cancelReplaceMode: STOP_ON_FAILURE | ALLOW_FAILURE\r
- orderRateLimitExceededMode: DO_NOTHING | CANCEL_ONLY\r
- stopLimitTimeInForce: GTC | IOC | FOK\r
- side: BUY | SELL\r
- aboveType: STOP_LOSS_LIMIT | STOP_LOSS | LIMIT_MAKER | TAKE_PROFIT | TAKE_PROFIT_LIMIT\r
- aboveTimeInForce: GTC | IOC | FOK\r
- abovePegPriceType: PRIMARY_PEG | MARKET_PEG\r
- abovePegOffsetType: PRICE_LEVEL\r
- belowType: STOP_LOSS | STOP_LOSS_LIMIT | TAKE_PROFIT | TAKE_PROFIT_LIMIT\r
- belowTimeInForce: GTC | IOC | FOK\r
- belowPegPriceType: PRIMARY_PEG | MARKET_PEG\r
- belowPegOffsetType: PRICE_LEVEL\r
- workingType: LIMIT | LIMIT_MAKER\r
- workingPegPriceType: PRIMARY_PEG | MARKET_PEG\r
- workingPegOffsetType: PRICE_LEVEL\r
- pendingPegPriceType: PRIMARY_PEG | MARKET_PEG\r
- pendingPegOffsetType: PRICE_LEVEL\r
- pendingAboveType: STOP_LOSS_LIMIT | STOP_LOSS | LIMIT_MAKER | TAKE_PROFIT | TAKE_PROFIT_LIMIT\r
- pendingAbovePegPriceType: PRIMARY_PEG | MARKET_PEG\r
- pendingAbovePegOffsetType: PRICE_LEVEL\r
- pendingBelowType: STOP_LOSS | STOP_LOSS_LIMIT | TAKE_PROFIT | TAKE_PROFIT_LIMIT\r
- pendingBelowPegPriceType: PRIMARY_PEG | MARKET_PEG\r
- pendingBelowPegOffsetType: PRICE_LEVEL\r
- workingSide: BUY | SELL\r
- workingTimeInForce: GTC | IOC | FOK\r
- pendingType: LIMIT | MARKET | STOP_LOSS | STOP_LOSS_LIMIT | TAKE_PROFIT | TAKE_PROFIT_LIMIT | LIMIT_MAKER\r
- pendingSide: BUY | SELL\r
- pendingTimeInForce: GTC | IOC | FOK\r
- pendingAboveTimeInForce: GTC | IOC | FOK\r
- pendingBelowTimeInForce: GTC | IOC | FOK\r \r \r
Authentication\r
\r For endpoints that require authentication, you will need to provide Binance API credentials.\r Required credentials:\r \r
- apiKey: Your Binance API key (for header)\r
- secretKey: Your Binance API secret (for signing)\r \r Base URLs:\r
- Mainnet: https://api.binance.com\r
- Testnet: https://testnet.binance.vision\r
- Demo: https://demo-api.binance.com\r \r
Security\r
\r
Share Credentials\r
\r Users can provide Binance API credentials by sending a file where the content is in the following format:\r \r
abc123...xyz\r
secret123...key\r
```\r
\r
### Never Display Full Secrets\r
\r
When showing credentials to users:\r
- **API Key:** Show first 5 + last 4 characters: `su1Qc...8akf`\r
- **Secret Key:** Always mask, show only last 5: `***...aws1`\r
\r
Example response when asked for credentials:\r
Account: main\r
API Key: su1Qc...8akf\r
Secret: ***...aws1\r
Environment: Mainnet\r
\r
### Listing Accounts\r
\r
When listing accounts, show names and environment only — never keys:\r
Binance Accounts:\r
* main (Mainnet/Testnet)\r
* testnet-dev (Testnet)\r
* futures-keys (Mainnet)\r
\r
### Transactions in Mainnet\r
\r
When performing transactions in mainnet, always confirm with the user before proceeding by asking them to write "CONFIRM" to proceed.\r
\r
---\r
\r
## Binance Accounts\r
\r
### main\r
- API Key: your_mainnet_api_key\r
- Secret: your_mainnet_secret\r
- Testnet: false \r
\r
### testnet-dev\r
- API Key: your_testnet_api_key\r
- Secret: your_testnet_secret\r
- Testnet: true\r
\r
### TOOLS.md Structure\r
\r
```bash\r
## Binance Accounts\r
\r
### main\r
- API Key: abc123...xyz\r
- Secret: secret123...key\r
- Testnet: false\r
- Description: Primary trading account\r
\r
### testnet-dev\r
- API Key: test456...abc\r
- Secret: testsecret...xyz\r
- Testnet: true\r
- Description: Development/testing\r
\r
### futures-keys\r
- API Key: futures789...def\r
- Secret: futuressecret...uvw\r
- Testnet: false\r
- Description: Futures trading account\r
```\r
\r
## Agent Behavior\r
\r
1. Credentials requested: Mask secrets (show last 5 chars only)\r
2. Listing accounts: Show names and environment, never keys\r
3. Account selection: Ask if ambiguous, default to main\r
4. When doing a transaction in mainnet, confirm with user before by asking to write "CONFIRM" to proceed\r
5. New credentials: Prompt for name, environment, signing mode\r
\r
## Adding New Accounts\r
\r
When user provides new credentials:\r
\r
* Ask for account name\r
* Ask: Mainnet, Testnet or Demo\r
* Store in `TOOLS.md` with masked display confirmation \r
\r
## Signing Requests\r
\r
All trading endpoints require HMAC SHA256 signature:\r
\r
1. Build query string with all params + timestamp (Unix ms)\r
2. Sign query string with secretKey using HMAC SHA256, RSA, or Ed25519 (depending on account config)\r
3. Append signature to query string\r
4. Include `X-MBX-APIKEY` header\r
\r
## User Agent Header\r
\r
Include `User-Agent` header with the following string: `binance-spot/1.0.1 (Skill)`\r
\r
See [`references/authentication.md`](./references/authentication.md) for implementation details.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install binance-official-spot - 安装完成后,直接呼叫该 Skill 的名称或使用
/binance-official-spot触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Binance Official Spot 是什么?
Binance Spot request using the Binance API. Authentication requires API key and secret key. Supports testnet and mainnet. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 274 次。
如何安装 Binance Official Spot?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install binance-official-spot」即可一键安装,无需额外配置。
Binance Official Spot 是免费的吗?
是的,Binance Official Spot 完全免费(开源免费),可自由下载、安装和使用。
Binance Official Spot 支持哪些平台?
Binance Official Spot 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Binance Official Spot?
由 viktor-huang(@viktor-huang)开发并维护,当前版本 v1.0.1。