Adjust Margin

Add or reduce margin for fixed margin position (Authentication type: SIGNED, See Interface Permission)

Request Format

POST https://api-cloud.bitmart.com/contract/v1/ifcontract/marginOper

Request Limit

See Detailed Rate Limit

Request Parameter

Field Type Required? Description
contract_id long Yes Contract ID
position_id long Yes Position ID
vol int Yes Margin amount
oper_type int Yes Operation type, [1=add margin; 2=reduce margin]

Instruction

Request example

https://api-cloud.bitmart.com/contract/v1/ifcontract/marginOper

{
   "contract_id":3,  
   "position_id":10539974,
   "vol":10,   
   "oper_type":1
}

Response Data

Field Type Description

Example of returned data format

{   
  "code": 1000,
  "trace":"886fb6ae-456b-4654-b4e0-d681ac05cea1",
  "message": "OK"
}

results matching ""

    No results matching ""