spot
認証済みAPIエンドポイントを介してBinanceで現物取引リクエストを実行し、APIキーとシークレットキーが必要で、結果はJSON形式で返されます。
npx skills add binance/binance-skills-hub --skill spotBefore / After 効果比較
1 组開発者は、URLの連結、認証ヘッダー(APIキーとシークレットキーの署名)の追加、返されるJSONデータの処理など、複雑なHTTPリクエストを手動で構築する必要があります。このプロセスは煩雑でエラーが発生しやすいです。
Binance Spotスキルを使用すると、開発者はバイナンス現物APIの呼び出しを簡素化し、事前定義されたコマンドを直接使用して取引所情報や口座残高などを照会できます。システムが認証とデータ形式を自動的に処理するため、開発効率と精度が向上します。 例: - 以前:`/api/v3/exchangeInfo` へGETリクエストを手動で構築して送信 - 以後:`spot` スキルを呼び出し、取引所情報のJSON結果を直接取得
spot
Binance Spot Skill Spot request on Binance using authenticated API endpoints. Requires API key and secret key for certain endpoints. Return the result in JSON format. Quick Reference Endpoint Description Required Optional Authentication /api/v3/exchangeInfo (GET) Exchange information None symbol, symbols, permissions, showPermissionSets, symbolStatus No /api/v3/ping (GET) Test connectivity None None No /api/v3/time (GET) Check server time None None No /api/v3/aggTrades (GET) Compressed/Aggregate trades list symbol fromId, startTime, endTime, limit No /api/v3/avgPrice (GET) Current average price symbol None No /api/v3/depth (GET) Order book symbol limit, symbolStatus No /api/v3/historicalTrades (GET) Old trade lookup symbol limit, fromId No /api/v3/klines (GET) Kline/Candlestick data symbol, interval startTime, endTime, timeZone, limit No /api/v3/ticker (GET) Rolling window price change statistics None symbol, symbols, windowSize, type, symbolStatus No /api/v3/ticker/24hr (GET) 24hr ticker price change statistics None symbol, symbols, type, symbolStatus No /api/v3/ticker/bookTicker (GET) Symbol order book ticker None symbol, symbols, symbolStatus No /api/v3/ticker/price (GET) Symbol price ticker None symbol, symbols, symbolStatus No /api/v3/ticker/tradingDay (GET) Trading Day Ticker None symbol, symbols, timeZone, type, symbolStatus No /api/v3/trades (GET) Recent trades list symbol limit No /api/v3/uiKlines (GET) UIKlines symbol, interval startTime, endTime, timeZone, limit No /api/v3/openOrders (DELETE) Cancel All Open Orders on a Symbol symbol recvWindow Yes /api/v3/openOrders (GET) Current open orders None symbol, recvWindow Yes /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 /api/v3/order (DELETE) Cancel order symbol orderId, origClientOrderId, newClientOrderId, cancelRestrictions, recvWindow Yes /api/v3/order (GET) Query order symbol orderId, origClientOrderId, recvWindow Yes /api/v3/order/amend/keepPriority (PUT) Order Amend Keep Priority symbol, newQty orderId, origClientOrderId, newClientOrderId, recvWindow Yes /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 /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 /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 /api/v3/orderList (DELETE) Cancel Order list symbol orderListId, listClientOrderId, newClientOrderId, recvWindow Yes /api/v3/orderList (GET) Query Order list None orderListId, origClientOrderId, recvWindow Yes /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 /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 /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 /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 /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 /api/v3/sor/order (POST) New order using SOR symbol, side, type, quantity timeInForce, price, newClientOrderId, strategyId, strategyType, icebergQty, newOrderRespType, selfTradePreventionMode, recvWindow Yes /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 /api/v3/account (GET) Account information None omitZeroBalances, recvWindow Yes /api/v3/account/commission (GET) Query Commission Rates symbol None Yes /api/v3/allOrderList (GET) Query all Order lists None fromId, startTime, endTime, limit, recvWindow Yes /api/v3/allOrders (GET) All orders symbol orderId, startTime, endTime, limit, recvWindow Yes /api/v3/myAllocations (GET) Query Allocations symbol startTime, endTime, fromAllocationId, limit, orderId, recvWindow Yes /api/v3/myFilters (GET) Query relevant filters symbol recvWindow Yes /api/v3/myPreventedMatches (GET) Query Prevented Matches symbol preventedMatchId, orderId, fromPreventedMatchId, limit, recvWindow Yes /api/v3/myTrades (GET) Account trade list symbol orderId, startTime, endTime, fromId, limit, recvWindow Yes /api/v3/openOrderList (GET) Query Open Order lists None recvWindow Yes /api/v3/order/amendments (GET) Query Order Amendments symbol, orderId fromExecutionId, limit, recvWindow Yes /api/v3/rateLimit/order (GET) Query Unfilled Order Count None recvWindow Yes Parameters Common Parameters symbol: Symbol to query (e.g., BNBUSDT) symbols: List of symbols to query permissions: List of permissions to query 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) pegOffsetValue: Priceleveltopegthepriceto(max:100). SeePeggedOrdersInfo (e.g., 1) orderId: (e.g., 1) origClientOrderId: newQty: newQty must be greater than 0 and less than the order's quantity. (e.g., 1) 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 a
...
ユーザーレビュー (0)
レビューを書く
レビューなし
統計データ
ユーザー評価
この Skill を評価