Skip to main content

See Stop Limit

GET

/az/future/trade/v1/entrust/profit-list

Limit Flow Rules​

200/s/apikey

Parameters​

ParameterTypeMandatoryDefaultDescriptionRanges
symbolstringtrueN/ATrading pairs (queries all trading pairs if not passed)
pageintegerfalse1Page
sizeintegerfalse10Quantity of a single page
startTimeintegerfalseN/AStart time
endTimeintegerfalseN/AEnd time
statestringtrueN/AOrder state:NOT_TRIGGERED:New order (not triggered);TRIGGERING:Triggering;TRIGGERED:Triggered;USER_REVOCATION:User revocation;PLATFORM_REVOCATION:Platform revocation (rejection);EXPIRED:expired;UNFINISHED:Unfinished;HISTORY:(History)NOT_TRIGGERED;TRIGGERING;TRIGGERED;USER_REVOCATION;PLATFORM_REVOCATION;EXPIRED;UNFINISHED;HISTORY
positionTypestringfalseN/APosition type:CROSSED(Cross margin);ISOLATED(Isolated margin)CROSSED;ISOLATED
positionSidestringfalseN/APosition side:LONG;SHORTLONG;SHORT
closeTypestringfalseN/ATPSL close type:FIXED(Fixed position);ALL(All position)FIXED;ALL
sortTypestringfalseN/ATPSL sort type:CTIME(order time);TP_PRICE(SL trigger price);SL_PRICE(TP trigger price)CTIME;TP_PRICE;SL_PRICE
sortDirectionstringfalseN/ATPSL sort direction:ASC(ascending);DESC(descending)ASC;DESC

Java

public void getMarketConfig() {
String text = HttpUtil.get(URL + "/data/api/az/future/trade/v1/getMarketConfig");
System.out.println(text);
}

Response

{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "",
"result": {
"items": [
{
"profitId": 0, //Order ID
"symbol": "", //Trading pair
"positionSide": "", //Position side
"origQty": 0, //Quantity (base coin)
"leverage": 0, //Leverage
"triggerPriceType": "", //Trigger price type
"triggerProfitPrice": 0, //Stop profit price
"triggerStopPrice": 0, //Stop loss price
"entryPrice": 0, //Open position average price
"positionSize": 0, //Position quantity (base coin)
"isolatedMargin": 0, //Isolated Margin
"executedQty": 0, //Actual transaction
"avgPrice": 0, //Actual filled avg price
"positionType": "", //Position type
"delegateQty": 0, //Actual delegate quantity
"delegatePrice": 0, //Actual delegate price
"profitDelegateOrderType": "", //TP delegate order type
"profitDelegateTimeInForce": "", //TP delegate time in force
"profitDelegatePrice": 0, //TP delegate price
"stopDelegateOrderType": "", //SL delegate order type
"stopDelegateTimeInForce": "", //SL delegate time in force
"stopDelegatePrice": 0, //SL delegate price
"closeType": "", //Close type:FIXED;ALL
"state": "", //Order state:NOT_TRIGGERED:New order (not triggered);TRIGGERING:Triggering;TRIGGERED:Triggered;USER_REVOCATION:User revocation;PLATFORM_REVOCATION:Platform revocation (rejection);EXPIRED:expired;DELEGATION_FAILED:delegation failed
"desc": "", //Description (revocation, delegation failure, etc.)
"triggerPriceSide": "", //Actual trigger side:PROFIT(TP triggered);STOP(SL triggered)
"createdTime": 0, //Time
"updatedTime": 0, //Last update time
"sourceType": "" //Source type
}
],
"page": 0,
"ps": 0,
"total": 0
},
"returnCode": 0
}