v26

latestOpenAPI 3.0.2raw.githubusercontent.com2024-10-0834042975.6 KB
Crypto Loans

Crypto Loan Customize Margin Call (TRADE)

Customize margin call for ongoing orders only.

Weight(UID): 6000

post/sapi/v1/loan/customize/margin_call

Query parameters

orderIdinteger

Mandatory when collateralCoin is empty. Send either orderId or collateralCoin, if both parameters are sent, take orderId only.

collateralCoinstring
Example:BNB

Coin used as collateral

marginCallnumber float required
recvWindowinteger
Example:5000

The value cannot be greater than 60000

timestampinteger required

UTC timestamp in ms

signaturestring required

Signature

Response

Collateral Assets Data

totalinteger required

Example response

{
  "rows": [
    {
      "orderId": "100000001",
      "collateralCoin": "BNB",
      "preMarginCall": "0.8",
      "afterMarginCall": "0.7",
      "customizeTime": 1575018510000
    }
  ],
  "total": 1
}