The following api is used to view the details of a margin order, need to provide order ID when using.
/POST/api/v1/leverage/order/details/byOrderId
Url:
https://api.crossexchange.io/POST/api/v1/leverage/order/details/byOrderId
Request:
Name |
Type |
Description |
api_key |
String |
API KEY |
auth_nonce |
String |
Timestamp |
auth_sign |
String |
Sign: MD5coding.MD5( api_key+auth_nonce+ orderId+stopLossPrice+ stopProfitPrice) |
orderId |
long |
The order you want to query detail. |
Response:
{
"code": 0,
"data": {
"orders": [
{
"autoDeposit": false,
"avgPrice": "5343.50",
"bid": true,
"cancelNumber": "0",
"clearAvgMoney": "5341.50000000",
"clearMoney": "267.07500000",
"clearNumber": "0.05000000",
"clearedGains": "-3.84035000",
"coverageRate": "1",
"dailyRate": "0",
"deposit": "22.87715000",
"depositCoinType": 12,
"endTime": "1557040938193",
"exchangeFee": "0.53425000",
"fee": "3.20610000",
"feeCoinType": 0,
"initDeposit": "26.71750000",
"lastFeeTime": "0",
"leftExchangeFee": "0.00000000",
"leftFee": "0.00000000",
"leftMoney": "0.00000000",
"money": "267.17500000",
"notClearGains": "0",
"numberGet": "0.05000000",
"orderId": "574601772685879296",
"orderStatus": 6,
"orderTime": "1557037338193",
"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"
}
]
}
}
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. |