If you want to query your margin order in progress, please use the following api.
POST/api/v1/show/open/leverOrder
URL:
https://api.crossexchange.io/POST/api/v1/show/open/leverOrder
Request field:
Name | Type | Description |
api_key |
String |
API KEY |
auth_nonce |
String |
Timestamp |
auth_sign |
String |
MD5coding.MD5( |
page |
long |
Current page number |
pageSize |
String |
Item number of one pages |
Response:
{
"code": 0,
"data": {
"orders": [
{ "autoDeposit": false,
"avgPrice": "5330.50",
"bid": true,
"cancelNumber": "0",
"clearAvgMoney": "0",
"clearMoney": "0",
"clearNumber": "0",
"clearPrice": "4983.15949999",
"clearedGains": "0",
"coverageRate": "0.95002432",
"dailyRate": "1.06870000",
"deposit": "26.71750000",
"depositCoinType": 12,
"endTime": "1556261497415",
"exchangeFee": "0.26652500",
"fee": "1.06870000",
"feeCoinType": 0,
"initDeposit": "26.71750000",
"lastFeeTime": "0",
"leftExchangeFee": "0.26652500",
"leftFee": "1.06870000",
"leftMoney": "266.52500000",
"marketPrice": "5330.50",
"money": "266.52500000",
"notClearGains": "-1.33522500",
"numberGet": "0.05000000",
"orderId": "571332561112950784",
"orderStatus": 2,
"orderTime": "1556257897415",
"pairId": 0,
"pairName": "BTC_USDT",
"poolId": 0,
"price": "5343.50",
"rate": 10,
"stopLossPrice": "0",
"stopProfitPrice": "0",
"totalNumber": "0.05000000",
"tradeRate": "1.00000000",
"triggerTime": "0",
"useXex": false,
"xexFee": "0",
"xexNum": "0"
}
],
"page": {
"countNumber": 1,
"countPage": 1,
"pageNumber": 10,
"pageSize": 1
}
}
}
Name |
Type |
Description |
code |
String |
0: successful,other value is failed |
autoDeposit |
boolean |
Automatically replenish the margin balance. true: YES |
avgPrice |
boolean |
Order transaction average price |
bid |
boolean |
order side, bid or ask. true:Bid |
cancelNumber |
BigDecimal |
Cancelled amount of this order(If the order is cancelled) |
clearAvgMoney |
BigDecimal |
Average price of the part that has been closed. |
clearMoney |
BigDecimal |
Total money of the part that has been closed. |
clearNumber |
BigDecimal |
Amount of executed. |
clearPrice |
BigDecimal |
price of executed |
clearedGains |
BigDecimal |
Recognized Profit |
coverageRate |
BigDecimal |
Current coverage(maintenance rate) |
dailyRate |
BigDecimal |
Borrowing Fee/24Hr |
deposit |
BigDecimal |
Current margin balance |
depositCoinType |
Integer |
Margin‘s currency kind ,such as USDT. |
endTime |
long |
Order expiration time,unexecuted orders will be automatically filled at that time. |
exchangeFee |
BigDecimal |
Paid trading fees |
fee |
BigDecimal |
Paid borrowing fees |
feeCoinType |
int |
Reserved field |
initDeposit |
BigDecimal |
Initial margin amount. |
lastFeeTime |
long |
Reserved field |
leftExchangeFee |
BigDecimal |
Unpaid trading fees |
leftFee |
BigDecimal |
Unpaid borrowing fees |
leftMoney |
BigDecimal |
When the order is executed, the total available money of order(only available for buy order) |
marketPrice |
BigDecimal |
Market price |
money |
BigDecimal |
When the order is executed, the part corresponding to the money that is executed. |
notClearGains |
BigDecimal |
Unrealized profit |
numberGet |
BigDecimal |
Execution amount |
orderId |
long |
Order id |
orderStatus |
int |
1 order placed 2 order executed 3 another side order placed 4 another side order executing 5 all order closed |
orderTime |
long |
Order placed time |
pairId |
int |
The order in which trading pair. |
pairName |
String |
The trading pair name, eg,BTC/USDT |
poolId |
int |
The mining pool to which this order belongs, that means the mining setting of the order 1 90 mining pool 2 60 mining pool 3 90 mining pool |
price |
BigDecimal |
Price of you place, market order value is 0. |
rate |
int |
Leverage Ratio |
stopLossPrice |
BigDecimal |
Loss cut price |
stopProfitPrice |
BigDecimal |
Profit taking price |
totalNumber |
BigDecimal |
Total items of pending orders |
tradeRate |
BigDecimal |
Executed ratio |
triggerTime |
long |
When the order was triggered to execute |
useXex |
boolean |
Pay the borrowing fees with XEX. True: YES |
xexFee |
BigDecimal |
The fees of using XEX payment, calculated in USDT. |
xexNum |
BigDecimal |
The fees with XEX to paid, calculated by XEX. |
countNumber |
Integer |
total items amount |
countPage |
Integer |
Total page amount |
pageNumber |
Integer |
Item number of per page |
pageSize |
Integer |
Current page number |