Skip to content

Latest commit

 

History

History
289 lines (192 loc) · 12.6 KB

File metadata and controls

289 lines (192 loc) · 12.6 KB

Account

GET /api/v3/account/commission - Query Commission Rates

binance-cli spot account-commission --symbol "BNBUSDT"

GET /api/v3/allOrderList - Query all Order lists

binance-cli spot all-order-list --from-id 1 --start-time 1735693200000 --end-time 1735693200000 --limit 500 --recv-window 5000.0
binance-cli spot all-orders --symbol "BNBUSDT" --order-id 1 --start-time 1735693200000 --end-time 1735693200000 --limit 500 --recv-window 5000.0

GET /api/v3/account - Account information

binance-cli spot get-account --omit-zero-balances false --recv-window 5000.0

GET /api/v3/openOrders - Current open orders

binance-cli spot get-open-orders --symbol "BNBUSDT" --recv-window 5000.0

GET /api/v3/order - Query order

binance-cli spot get-order --symbol "BNBUSDT" --order-id 1 --orig-client-order-id "origClientOrderId_example" --recv-window 5000.0

GET /api/v3/orderList - Query Order list

binance-cli spot get-order-list --order-list-id 1 --orig-client-order-id "origClientOrderId_example" --recv-window 5000.0

GET /api/v3/myAllocations - Query Allocations

binance-cli spot my-allocations --symbol "BNBUSDT" --start-time 1735693200000 --end-time 1735693200000 --from-allocation-id 1 --limit 500 --order-id 1 --recv-window 5000.0

GET /api/v3/myFilters - Query relevant filters

binance-cli spot my-filters --symbol "BNBUSDT" --recv-window 5000.0

GET /api/v3/myPreventedMatches - Query Prevented Matches

binance-cli spot my-prevented-matches --symbol "BNBUSDT" --prevented-match-id 1 --order-id 1 --from-prevented-match-id 1 --limit 500 --recv-window 5000.0

GET /api/v3/myTrades - Account trade list

binance-cli spot my-trades --symbol "BNBUSDT" --order-id 1 --start-time 1735693200000 --end-time 1735693200000 --from-id 1 --limit 500 --recv-window 5000.0

GET /api/v3/openOrderList - Query Open Order lists

binance-cli spot open-order-list --recv-window 5000.0

GET /api/v3/order/amendments - Query Order Amendments

binance-cli spot order-amendments --symbol "BNBUSDT" --order-id 1 --from-execution-id 1 --limit 500 --recv-window 5000.0

GET /api/v3/rateLimit/order - Query Unfilled Order Count

binance-cli spot rate-limit-order --recv-window 5000.0

General

GET /api/v3/exchangeInfo - Exchange information

binance-cli spot exchange-info --symbol "BNBUSDT" --symbols "string_example"  --permissions "string_example"  --show-permission-sets true --symbol-status TRADING

GET /api/v3/executionRules - Query Execution Rules

binance-cli spot execution-rules --symbol "BNBUSDT" --symbols "string_example"  --symbol-status TRADING

GET /api/v3/ping - Test connectivity

binance-cli spot ping

GET /api/v3/time - Check server time

binance-cli spot time

Market

GET /api/v3/aggTrades - Compressed/Aggregate trades list

binance-cli spot agg-trades --symbol "BNBUSDT" --from-id 1 --start-time 1735693200000 --end-time 1735693200000 --limit 500

GET /api/v3/avgPrice - Current average price

binance-cli spot avg-price --symbol "BNBUSDT"

GET /api/v3/depth - Order book

binance-cli spot depth --symbol "BNBUSDT" --limit 500 --symbol-status TRADING

GET /api/v3/trades - Recent trades list

binance-cli spot get-trades --symbol "BNBUSDT" --limit 500

GET /api/v3/historicalTrades - Old trade lookup

binance-cli spot historical-trades --symbol "BNBUSDT" --limit 500 --from-id 1

GET /api/v3/klines - Kline/Candlestick data

binance-cli spot klines --symbol "BNBUSDT" --interval 1s --start-time 1735693200000 --end-time 1735693200000 --time-zone "timeZone_example" --limit 500

GET /api/v3/referencePrice - Query Reference Price

binance-cli spot reference-price --symbol "BNBUSDT"

GET /api/v3/referencePrice/calculation - Query Reference Price Calculation

binance-cli spot reference-price-calculation --symbol "BNBUSDT" --symbol-status TRADING

GET /api/v3/ticker - Rolling window price change statistics

binance-cli spot ticker --symbol "BNBUSDT" --symbols "string_example"  --window-size 1m --type FULL --symbol-status TRADING

GET /api/v3/ticker/24hr - 24hr ticker price change statistics

binance-cli spot ticker24hr --symbol "BNBUSDT" --symbols "string_example"  --type FULL --symbol-status TRADING

GET /api/v3/ticker/bookTicker - Symbol order book ticker

binance-cli spot ticker-book-ticker --symbol "BNBUSDT" --symbols "string_example"  --symbol-status TRADING

GET /api/v3/ticker/price - Symbol price ticker

binance-cli spot ticker-price --symbol "BNBUSDT" --symbols "string_example"  --symbol-status TRADING

GET /api/v3/ticker/tradingDay - Trading Day Ticker

binance-cli spot ticker-trading-day --symbol "BNBUSDT" --symbols "string_example"  --time-zone "timeZone_example" --type FULL --symbol-status TRADING
binance-cli spot ui-klines --symbol "BNBUSDT" --interval 1s --start-time 1735693200000 --end-time 1735693200000 --time-zone "timeZone_example" --limit 500

Trade

DELETE /api/v3/openOrders - Cancel All Open Orders on a Symbol

binance-cli spot delete-open-orders --symbol "BNBUSDT" --recv-window 5000.0

DELETE /api/v3/order - Cancel order

binance-cli spot delete-order --symbol "BNBUSDT" --order-id 1 --orig-client-order-id "origClientOrderId_example" --new-client-order-id "newClientOrderId_example" --cancel-restrictions ONLY_NEW --recv-window 5000.0

DELETE /api/v3/orderList - Cancel Order list

binance-cli spot delete-order-list --symbol "BNBUSDT" --order-list-id 1 --list-client-order-id "listClientOrderId_example" --new-client-order-id "newClientOrderId_example" --recv-window 5000.0

POST /api/v3/order - New order

binance-cli spot new-order --json {}

PUT /api/v3/order/amend/keepPriority - Order Amend Keep Priority

binance-cli spot order-amend-keep-priority --json {}

POST /api/v3/order/cancelReplace - Cancel an Existing Order and Send a New Order

binance-cli spot order-cancel-replace --json {}

POST /api/v3/orderList/oco - New Order list - OCO

binance-cli spot order-list-oco --json {}

POST /api/v3/orderList/opo - New Order List - OPO

binance-cli spot order-list-opo --json {}

POST /api/v3/orderList/opoco - New Order List - OPOCO

binance-cli spot order-list-opoco --json {}

POST /api/v3/orderList/oto - New Order list - OTO

binance-cli spot order-list-oto --json {}

POST /api/v3/orderList/otoco - New Order list - OTOCO

binance-cli spot order-list-otoco --json {}

POST /api/v3/order/oco - New OCO - Deprecated

binance-cli spot order-oco --json {}

POST /api/v3/order/test - Test new order

binance-cli spot order-test --json {}

POST /api/v3/sor/order - New order using SOR

binance-cli spot sor-order --json {}

POST /api/v3/sor/order/test - Test new order using SOR

binance-cli spot sor-order-test --json {}