Skip to content

Latest commit

 

History

History
581 lines (386 loc) · 26.5 KB

File metadata and controls

581 lines (386 loc) · 26.5 KB

Account

GET /fapi/v2/account - Account Information V2

binance-cli futures-usds account-information-v2 --recv-window 5000

GET /fapi/v3/account - Account Information V3

binance-cli futures-usds account-information-v3 --recv-window 5000

GET /fapi/v2/balance - Futures Account Balance V2

binance-cli futures-usds futures-account-balance-v2 --recv-window 5000

GET /fapi/v3/balance - Futures Account Balance V3

binance-cli futures-usds futures-account-balance-v3 --recv-window 5000

GET /fapi/v1/accountConfig - Futures Account Configuration

binance-cli futures-usds futures-account-configuration --recv-window 5000

GET /fapi/v1/apiTradingStatus - Futures Trading Quantitative Rules Indicators

binance-cli futures-usds futures-trading-quantitative-rules-indicators --symbol "symbol_example" --recv-window 5000

GET /fapi/v1/feeBurn - Get BNB Burn Status

binance-cli futures-usds get-bnb-burn-status --recv-window 5000

GET /fapi/v1/multiAssetsMargin - Get Current Multi-Assets Mode

binance-cli futures-usds get-current-multi-assets-mode --recv-window 5000

GET /fapi/v1/positionSide/dual - Get Current Position Mode

binance-cli futures-usds get-current-position-mode --recv-window 5000

GET /fapi/v1/order/asyn - Get Download Id For Futures Order History

binance-cli futures-usds get-download-id-for-futures-order-history --start-time 1623319461670 --end-time 1641782889000 --recv-window 5000

GET /fapi/v1/trade/asyn - Get Download Id For Futures Trade History

binance-cli futures-usds get-download-id-for-futures-trade-history --start-time 1623319461670 --end-time 1641782889000 --recv-window 5000

GET /fapi/v1/income/asyn - Get Download Id For Futures Transaction History

binance-cli futures-usds get-download-id-for-futures-transaction-history --start-time 1623319461670 --end-time 1641782889000 --recv-window 5000

GET /fapi/v1/order/asyn/id - Get Futures Order History Download Link by Id

binance-cli futures-usds get-futures-order-history-download-link-by-id --download-id "1" --recv-window 5000

GET /fapi/v1/trade/asyn/id - Get Futures Trade Download Link by Id

binance-cli futures-usds get-futures-trade-download-link-by-id --download-id "1" --recv-window 5000

GET /fapi/v1/income/asyn/id - Get Futures Transaction History Download Link by Id

binance-cli futures-usds get-futures-transaction-history-download-link-by-id --download-id "1" --recv-window 5000

GET /fapi/v1/income - Get Income History

binance-cli futures-usds get-income-history --symbol "symbol_example" --income-type "incomeType_example" --start-time 1623319461670 --end-time 1641782889000 --page 1 --limit 100 --recv-window 5000

GET /fapi/v1/leverageBracket - Notional and Leverage Brackets

binance-cli futures-usds notional-and-leverage-brackets --symbol "symbol_example" --recv-window 5000

GET /fapi/v1/rateLimit/order - Query User Rate Limit

binance-cli futures-usds query-user-rate-limit --recv-window 5000

GET /fapi/v1/symbolConfig - Symbol Configuration

binance-cli futures-usds symbol-configuration --symbol "symbol_example" --recv-window 5000

POST /fapi/v1/feeBurn - Toggle BNB Burn On Futures Trade

binance-cli futures-usds toggle-bnb-burn-on-futures-trade --json {}

GET /fapi/v1/commissionRate - User Commission Rate

binance-cli futures-usds user-commission-rate --symbol "symbol_example" --recv-window 5000

Convert

POST /fapi/v1/convert/acceptQuote - Accept the offered quote

binance-cli futures-usds accept-the-offered-quote --json {}

GET /fapi/v1/convert/exchangeInfo - List All Convert Pairs

binance-cli futures-usds list-all-convert-pairs --from-asset "fromAsset_example" --to-asset "toAsset_example"
binance-cli futures-usds order-status --order-id 1 --quote-id "1"

POST /fapi/v1/convert/getQuote - Send Quote Request

binance-cli futures-usds send-quote-request --json {}

MarketData

binance-cli futures-usds adl-risk --symbol "symbol_example"
binance-cli futures-usds basis --pair "pair_example" --contract-type PERPETUAL --period 5m --limit 30 --start-time 1623319461670 --end-time 1641782889000

GET /fapi/v1/time - Check Server Time

binance-cli futures-usds check-server-time

GET /fapi/v1/indexInfo - Composite Index Symbol Information

binance-cli futures-usds composite-index-symbol-information --symbol "symbol_example"

GET /fapi/v1/aggTrades - Compressed/Aggregate Trades List

binance-cli futures-usds compressed-aggregate-trades-list --symbol "symbol_example" --from-id 1 --start-time 1623319461670 --end-time 1641782889000 --limit 100

GET /fapi/v1/continuousKlines - Continuous Contract Kline/Candlestick Data

binance-cli futures-usds continuous-contract-kline-candlestick-data --pair "pair_example" --contract-type PERPETUAL --interval 1m --start-time 1623319461670 --end-time 1641782889000 --limit 100

GET /fapi/v1/exchangeInfo - Exchange Information

binance-cli futures-usds exchange-information

GET /fapi/v1/fundingRate - Get Funding Rate History

binance-cli futures-usds get-funding-rate-history --symbol "symbol_example" --start-time 1623319461670 --end-time 1641782889000 --limit 100

GET /fapi/v1/fundingInfo - Get Funding Rate Info

binance-cli futures-usds get-funding-rate-info

GET /fapi/v1/indexPriceKlines - Index Price Kline/Candlestick Data

binance-cli futures-usds index-price-kline-candlestick-data --pair "pair_example" --interval 1m --start-time 1623319461670 --end-time 1641782889000 --limit 100

GET /fapi/v1/klines - Kline/Candlestick Data

binance-cli futures-usds kline-candlestick-data --symbol "symbol_example" --interval 1m --start-time 1623319461670 --end-time 1641782889000 --limit 100
binance-cli futures-usds long-short-ratio --symbol "symbol_example" --period 5m --limit 100 --start-time 1623319461670 --end-time 1641782889000
binance-cli futures-usds mark-price --symbol "symbol_example"

GET /fapi/v1/markPriceKlines - Mark Price Kline/Candlestick Data

binance-cli futures-usds mark-price-kline-candlestick-data --symbol "symbol_example" --interval 1m --start-time 1623319461670 --end-time 1641782889000 --limit 100

GET /fapi/v1/assetIndex - Multi-Assets Mode Asset Index

binance-cli futures-usds multi-assets-mode-asset-index --symbol "symbol_example"

GET /fapi/v1/historicalTrades - Old Trades Lookup

binance-cli futures-usds old-trades-lookup --symbol "symbol_example" --limit 100 --from-id 1
binance-cli futures-usds open-interest --symbol "symbol_example"

GET /futures/data/openInterestHist - Open Interest Statistics

binance-cli futures-usds open-interest-statistics --symbol "symbol_example" --period 5m --limit 100 --start-time 1623319461670 --end-time 1641782889000

GET /fapi/v1/depth - Order Book

binance-cli futures-usds order-book --symbol "symbol_example" --limit 100

GET /fapi/v1/premiumIndexKlines - Premium index Kline Data

binance-cli futures-usds premium-index-kline-data --symbol "symbol_example" --interval 1m --start-time 1623319461670 --end-time 1641782889000 --limit 100

GET /futures/data/delivery-price - Quarterly Contract Settlement Price

binance-cli futures-usds quarterly-contract-settlement-price --pair "pair_example"

GET /fapi/v1/constituents - Query Index Price Constituents

binance-cli futures-usds query-index-price-constituents --symbol "symbol_example"

GET /fapi/v1/insuranceBalance - Query Insurance Fund Balance Snapshot

binance-cli futures-usds query-insurance-fund-balance-snapshot --symbol "symbol_example"

GET /fapi/v1/trades - Recent Trades List

binance-cli futures-usds recent-trades-list --symbol "symbol_example" --limit 100

GET /fapi/v1/rpiDepth - RPI Order Book

binance-cli futures-usds rpi-order-book --symbol "symbol_example" --limit 100

GET /fapi/v1/ticker/bookTicker - Symbol Order Book Ticker

binance-cli futures-usds symbol-order-book-ticker --symbol "symbol_example"

GET /fapi/v1/ticker/price - Symbol Price Ticker

binance-cli futures-usds symbol-price-ticker --symbol "symbol_example"

GET /fapi/v2/ticker/price - Symbol Price Ticker V2

binance-cli futures-usds symbol-price-ticker-v2 --symbol "symbol_example"
binance-cli futures-usds taker-buy-sell-volume --symbol "symbol_example" --period 5m --limit 100 --start-time 1623319461670 --end-time 1641782889000

GET /fapi/v1/ping - Test Connectivity

binance-cli futures-usds test-connectivity

GET /fapi/v1/ticker/24hr - 24hr Ticker Price Change Statistics

binance-cli futures-usds ticker24hr-price-change-statistics --symbol "symbol_example"

GET /futures/data/topLongShortAccountRatio - Top Trader Long/Short Ratio (Accounts)

binance-cli futures-usds top-trader-long-short-ratio-accounts --symbol "symbol_example" --period 5m --limit 100 --start-time 1623319461670 --end-time 1641782889000

GET /futures/data/topLongShortPositionRatio - Top Trader Long/Short Ratio (Positions)

binance-cli futures-usds top-trader-long-short-ratio-positions --symbol "symbol_example" --period 5m --limit 100 --start-time 1623319461670 --end-time 1641782889000

GET /fapi/v1/tradingSchedule - Trading Schedule

binance-cli futures-usds trading-schedule

PortfolioMarginEndpoints

GET /fapi/v1/pmAccountInfo - Classic Portfolio Margin Account Information

binance-cli futures-usds classic-portfolio-margin-account-information --asset "asset_example" --recv-window 5000

Trade

GET /fapi/v1/userTrades - Account Trade List

binance-cli futures-usds account-trade-list --symbol "symbol_example" --order-id 1 --start-time 1623319461670 --end-time 1641782889000 --from-id 1 --limit 100 --recv-window 5000
binance-cli futures-usds all-orders --symbol "symbol_example" --order-id 1 --start-time 1623319461670 --end-time 1641782889000 --limit 100 --recv-window 5000

POST /fapi/v1/countdownCancelAll - Auto-Cancel All Open Orders

binance-cli futures-usds auto-cancel-all-open-orders --json {}

DELETE /fapi/v1/algoOrder - Cancel Algo Order

binance-cli futures-usds cancel-algo-order --algo-id 1 --client-algo-id "1" --recv-window 5000

DELETE /fapi/v1/algoOpenOrders - Cancel All Algo Open Orders

binance-cli futures-usds cancel-all-algo-open-orders --symbol "symbol_example" --recv-window 5000

DELETE /fapi/v1/allOpenOrders - Cancel All Open Orders

binance-cli futures-usds cancel-all-open-orders --symbol "symbol_example" --recv-window 5000

DELETE /fapi/v1/batchOrders - Cancel Multiple Orders

binance-cli futures-usds cancel-multiple-orders --symbol "symbol_example" --order-id-list 1234567  --orig-client-order-id-list "my_id_1"  --recv-window 5000

DELETE /fapi/v1/order - Cancel Order

binance-cli futures-usds cancel-order --symbol "symbol_example" --order-id 1 --orig-client-order-id "1" --recv-window 5000

POST /fapi/v1/leverage - Change Initial Leverage

binance-cli futures-usds change-initial-leverage --json {}

POST /fapi/v1/marginType - Change Margin Type

binance-cli futures-usds change-margin-type --json {}

POST /fapi/v1/multiAssetsMargin - Change Multi-Assets Mode

binance-cli futures-usds change-multi-assets-mode --json {}

POST /fapi/v1/positionSide/dual - Change Position Mode

binance-cli futures-usds change-position-mode --json {}

GET /fapi/v1/openAlgoOrders - Current All Algo Open Orders

binance-cli futures-usds current-all-algo-open-orders --algo-type "algoType_example" --symbol "symbol_example" --algo-id 1 --recv-window 5000

GET /fapi/v1/openOrders - Current All Open Orders

binance-cli futures-usds current-all-open-orders --symbol "symbol_example" --recv-window 5000

POST /fapi/v1/stock/contract - Futures TradFi Perps Contract

binance-cli futures-usds futures-tradfi-perps-contract --json {}

GET /fapi/v1/orderAmendment - Get Order Modify History

binance-cli futures-usds get-order-modify-history --symbol "symbol_example" --order-id 1 --orig-client-order-id "1" --start-time 1623319461670 --end-time 1641782889000 --limit 100 --recv-window 5000

GET /fapi/v1/positionMargin/history - Get Position Margin Change History

binance-cli futures-usds get-position-margin-change-history --symbol "symbol_example" --type "type_example" --start-time 1623319461670 --end-time 1641782889000 --limit 100 --recv-window 5000

POST /fapi/v1/positionMargin - Modify Isolated Position Margin

binance-cli futures-usds modify-isolated-position-margin --json {}

PUT /fapi/v1/batchOrders - Modify Multiple Orders

binance-cli futures-usds modify-multiple-orders --json {}

PUT /fapi/v1/order - Modify Order

binance-cli futures-usds modify-order --json {}

POST /fapi/v1/algoOrder - New Algo Order

binance-cli futures-usds new-algo-order --json {}
binance-cli futures-usds new-order --json {}

POST /fapi/v1/batchOrders - Place Multiple Orders

binance-cli futures-usds place-multiple-orders --json {}

GET /fapi/v1/adlQuantile - Position ADL Quantile Estimation

binance-cli futures-usds position-adl-quantile-estimation --symbol "symbol_example" --recv-window 5000

GET /fapi/v2/positionRisk - Position Information V2

binance-cli futures-usds position-information-v2 --symbol "symbol_example" --recv-window 5000

GET /fapi/v3/positionRisk - Position Information V3

binance-cli futures-usds position-information-v3 --symbol "symbol_example" --recv-window 5000

GET /fapi/v1/algoOrder - Query Algo Order

binance-cli futures-usds query-algo-order --algo-id 1 --client-algo-id "1" --recv-window 5000

GET /fapi/v1/allAlgoOrders - Query All Algo Orders

binance-cli futures-usds query-all-algo-orders --symbol "symbol_example" --algo-id 1 --start-time 1623319461670 --end-time 1641782889000 --page 1 --limit 100 --recv-window 5000

GET /fapi/v1/openOrder - Query Current Open Order

binance-cli futures-usds query-current-open-order --symbol "symbol_example" --order-id 1 --orig-client-order-id "1" --recv-window 5000

GET /fapi/v1/order - Query Order

binance-cli futures-usds query-order --symbol "symbol_example" --order-id 1 --orig-client-order-id "1" --recv-window 5000
binance-cli futures-usds test-order --json {}

GET /fapi/v1/forceOrders - User's Force Orders

binance-cli futures-usds users-force-orders --symbol "symbol_example" --auto-close-type LIQUIDATION --start-time 1623319461670 --end-time 1641782889000 --limit 100 --recv-window 5000

UserDataStreams

DELETE /fapi/v1/listenKey - Close User Data Stream

binance-cli futures-usds close-user-data-stream

PUT /fapi/v1/listenKey - Keepalive User Data Stream

binance-cli futures-usds keepalive-user-data-stream

POST /fapi/v1/listenKey - Start User Data Stream

binance-cli futures-usds start-user-data-stream