v26

latestOpenAPI 3.0.2raw.githubusercontent.com2024-10-0834042975.6 KB
Margin

Margin account borrow/repay(MARGIN)

Margin account borrow/repay(MARGIN)

Weight(UID): 3000

post/sapi/v1/margin/borrow-repay

Query parameters

assetstring required
Example:BTC
isIsolatedstring required

TRUE for isolated margin, FALSE for crossed margin

symbolstring required
Example:BNBUSDT

Trading symbol, e.g. BNBUSDT

amountnumber double required
typestring required

BORROW or REPAY

recvWindowinteger
Example:5000

The value cannot be greater than 60000

timestampinteger required

UTC timestamp in ms

signaturestring required

Signature

Response

Margin account borrow/repay

tranIdinteger required

Example response

{
  "tranId": 100000001
}