[Position] Query position list
method url:/api/third/hot/order/selectContractPositionList
request type:POST
content type:application/x-www-form-urlencoded
need sign:true
detail:
request param:
param_name | param note | type | required | data type | schema |
pairName | query | true | string | ||
pageNo | query | false | integer(int64) | ||
pageSize | limit 100 | query | false | integer(int64) | |
timestamp | query | true | string |
response param:(list)
param_name | param note | type | schema |
amount | number | ||
closingQuantity | number | ||
contractPairId | integer(int64) | ||
createTime | string(date-time) | ||
createTimeStamp | integer(int64) | ||
entrustId | integer(int64) | ||
id | integer(int64) | ||
isLong | true/false | boolean | |
lever | integer(int32) | ||
lossPrice | number | ||
lossType | 0_none;1_current price;2_mark price; | integer(int32) | |
marginAmount | number | ||
marginCallAmount | number | ||
openingPrice | number | ||
positionType | 3 one-way isloate 4 one-way cross | integer(int32) | |
profitPrice | number | ||
profitType | 0_none;1_current price;2_mark price; | integer(int32) | |
quantity | number | ||
realizedPnl | number | ||
remainingCloseQuantity | number | ||
restrictPrice | number | ||
status | 1 Holding position; 2 Capital fee settlement; | integer(int32) | |
symbol | string | ||
tariffAmount | number | ||
unrealizedPnl | number | ||
isDual | boolean | ||
faceMultiplier | number | ||
accountCoinId | integer(int64) | ||
accountCoinSymbol | string | ||
accountSettleDecimal | integer(int32) | ||
tradeCoinDecimal | integer(int32) | ||
lights | the auto reduce mark | integer(int32) | |
isDelivery | boolean | ||
deliveryTime | string(date-time) | ||
deliveryTimeStamp | integer(int64) | ||
settleShowDecimal | integer(int32) | ||
tradeCoinIcon | string | ||
settleCoinIcon | string |
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:
code | msg |
2001 | Illegal parameter:{param0} |
Last updated