example_rest.md

May 4, 2026 ยท View on GitHub

Account

/sapi/v1/margin/max-leverage - adjustCrossMarginMaxLeverage - AdjustCrossMarginMaxLeverageExample.php:27

/sapi/v1/margin/isolated/account - disableIsolatedMarginAccount - DisableIsolatedMarginAccountExample.php:26

/sapi/v1/margin/isolated/account - enableIsolatedMarginAccount - EnableIsolatedMarginAccountExample.php:27

/sapi/v1/bnbBurn - getBnbBurnStatus - GetBnbBurnStatusExample.php:25

/sapi/v1/margin/tradeCoeff - getSummaryOfMarginAccount - GetSummaryOfMarginAccountExample.php:25

/sapi/v1/margin/capital-flow - queryCrossIsolatedMarginCapitalFlow - QueryCrossIsolatedMarginCapitalFlowExample.php:32

/sapi/v1/margin/account - queryCrossMarginAccountDetails - QueryCrossMarginAccountDetailsExample.php:25

/sapi/v1/margin/crossMarginData - queryCrossMarginFeeData - QueryCrossMarginFeeDataExample.php:27

/sapi/v1/margin/isolated/accountLimit - queryEnabledIsolatedMarginAccountLimit - QueryEnabledIsolatedMarginAccountLimitExample.php:25

/sapi/v1/margin/isolated/account - queryIsolatedMarginAccountInfo - QueryIsolatedMarginAccountInfoExample.php:26

/sapi/v1/margin/isolatedMarginData - queryIsolatedMarginFeeData - QueryIsolatedMarginFeeDataExample.php:27

BorrowRepay

/sapi/v1/margin/next-hourly-interest-rate - getFutureHourlyInterestRate - GetFutureHourlyInterestRateExample.php:26

/sapi/v1/margin/interestHistory - getInterestHistory - GetInterestHistoryExample.php:31

/sapi/v1/margin/borrow-repay - marginAccountBorrowRepay - MarginAccountBorrowRepayExample.php:31

/sapi/v1/margin/borrow-repay - queryBorrowRepayRecordsInMarginAccount - QueryBorrowRepayRecordsInMarginAccountExample.php:33

/sapi/v1/margin/interestRateHistory - queryMarginInterestRateHistory - QueryMarginInterestRateHistoryExample.php:29

/sapi/v1/margin/maxBorrowable - queryMaxBorrow - QueryMaxBorrowExample.php:27

MarketData

/sapi/v1/margin/crossMarginCollateralRatio - crossMarginCollateralRatio - CrossMarginCollateralRatioExample.php:23

/sapi/v1/margin/allPairs - getAllCrossMarginPairs - GetAllCrossMarginPairsExample.php:24

/sapi/v1/margin/isolated/allPairs - getAllIsolatedMarginSymbol - GetAllIsolatedMarginSymbolExample.php:25

/sapi/v1/margin/allAssets - getAllMarginAssets - GetAllMarginAssetsExample.php:24

/sapi/v1/margin/delist-schedule - getDelistSchedule - GetDelistScheduleExample.php:24

/sapi/v1/margin/limit-price-pairs - getLimitPricePairs - GetLimitPricePairsExample.php:23

/sapi/v1/margin/list-schedule - getListSchedule - GetListScheduleExample.php:24

/sapi/v1/margin/risk-based-liquidation-ratio - getMarginAssetRiskBasedLiquidationRatio - GetMarginAssetRiskBasedLiquidationRatioExample.php:23

/sapi/v1/margin/restricted-asset - getMarginRestrictedAssets - GetMarginRestrictedAssetsExample.php:23

/sapi/v1/margin/isolatedMarginTier - queryIsolatedMarginTierData - QueryIsolatedMarginTierDataExample.php:27

/sapi/v1/margin/leverageBracket - queryLiabilityCoinLeverageBracketInCrossMarginProMode - QueryLiabilityCoinLeverageBracketInCrossMarginProModeExample.php:23

/sapi/v1/margin/available-inventory - queryMarginAvailableInventory - QueryMarginAvailableInventoryExample.php:25

/sapi/v1/margin/priceIndex - queryMarginPriceindex - QueryMarginPriceindexExample.php:24

RiskDataStream

/sapi/v1/margin/listen-key - closeUserDataStream - CloseUserDataStreamExample.php:23

/sapi/v1/margin/listen-key - keepaliveUserDataStream - KeepaliveUserDataStreamExample.php:26

/sapi/v1/margin/listen-key - startUserDataStream - StartUserDataStreamExample.php:23

Trade

/sapi/v1/margin/apiKey - createSpecialKey - CreateSpecialKeyExample.php:27

/sapi/v1/margin/apiKey - deleteSpecialKey - DeleteSpecialKeyExample.php:27

/sapi/v1/margin/apiKey/ip - editIpForSpecialKey - EditIpForSpecialKeyExample.php:27

/sapi/v1/margin/forceLiquidationRec - getForceLiquidationRecord - GetForceLiquidationRecordExample.php:30

/sapi/v1/margin/exchange-small-liability - getSmallLiabilityExchangeCoinList - GetSmallLiabilityExchangeCoinListExample.php:25

/sapi/v1/margin/exchange-small-liability-history - getSmallLiabilityExchangeHistory - GetSmallLiabilityExchangeHistoryExample.php:29

/sapi/v1/margin/openOrders - marginAccountCancelAllOpenOrdersOnASymbol - MarginAccountCancelAllOpenOrdersOnASymbolExample.php:27

/sapi/v1/margin/orderList - marginAccountCancelOco - MarginAccountCancelOcoExample.php:30

/sapi/v1/margin/order - marginAccountCancelOrder - MarginAccountCancelOrderExample.php:30

/sapi/v1/margin/order/oco - marginAccountNewOco - MarginAccountNewOcoExample.php:32

/sapi/v1/margin/order - marginAccountNewOrder - MarginAccountNewOrderExample.php:30

/sapi/v1/margin/order/oto - marginAccountNewOto - MarginAccountNewOtoExample.php:35

/sapi/v1/margin/order/otoco - marginAccountNewOtoco - MarginAccountNewOtocoExample.php:34

/sapi/v1/margin/manual-liquidation - marginManualLiquidation - MarginManualLiquidationExample.php:27

/sapi/v1/margin/rateLimit/order - queryCurrentMarginOrderCountUsage - QueryCurrentMarginOrderCountUsageExample.php:27

/sapi/v1/margin/allOrderList - queryMarginAccountsAllOco - QueryMarginAccountsAllOcoExample.php:31

/sapi/v1/margin/allOrders - queryMarginAccountsAllOrders - QueryMarginAccountsAllOrdersExample.php:31

/sapi/v1/margin/orderList - queryMarginAccountsOco - QueryMarginAccountsOcoExample.php:29

/sapi/v1/margin/openOrderList - queryMarginAccountsOpenOco - QueryMarginAccountsOpenOcoExample.php:27

/sapi/v1/margin/openOrders - queryMarginAccountsOpenOrders - QueryMarginAccountsOpenOrdersExample.php:27

/sapi/v1/margin/order - queryMarginAccountsOrder - QueryMarginAccountsOrderExample.php:29

/sapi/v1/margin/myTrades - queryMarginAccountsTradeList - QueryMarginAccountsTradeListExample.php:32

/sapi/v1/margin/myPreventedMatches - queryPreventedMatches - QueryPreventedMatchesExample.php:30

/sapi/v1/margin/apiKey - querySpecialKey - QuerySpecialKeyExample.php:26

/sapi/v1/margin/api-key-list - querySpecialKeyList - QuerySpecialKeyListExample.php:26

/sapi/v1/margin/exchange-small-liability - smallLiabilityExchange - SmallLiabilityExchangeExample.php:27

Transfer

/sapi/v1/margin/transfer - getCrossMarginTransferHistory - GetCrossMarginTransferHistoryExample.php:32

/sapi/v1/margin/maxTransferable - queryMaxTransferOutAmount - QueryMaxTransferOutAmountExample.php:27