Add/reduce margin
Last updated
Last updated
method url:/api/third/order/callMarginAmount
request type:POST
content type:application/x-www-form-urlencoded
need sign:true
detail:
request param:
response param:
example:
1 Set request parameters, query params:
2 Build the Parameters
3 Sign the parameter string format, result:
4 Assemble the complete request
5 Return results
Error Code:
param_name
param note
type
required
data type
schema
positionId
query
true
integer(int64)
call
add-true;reduce-false
query
true
boolean
marginAmount
query
true
string
timestamp
query
true
string
param_name
param note
type
schema
data
boolean
code
msg
1001
system error:{param0}
2001
Illegal parameter:{param0}
2002
Required parameter:{param0}
2008
Frequent requests:{param0}
2102
Insufficient balance:{param0}
2104
Position expired
2105
Insufficient position margin
2122
No hot assets have been frozen
2123
The amount to be frozen must be greater than 0
2124
Failed to process hot account
2201
Insufficient balance available
2315
Margin calls are not allowed in this mode