Skip to main content

Query Orders

Type: GET

Description: /v4/finance/order

Query user's earn order details based on filter conditions.

Parameters

NameTypeMandatoryDescription
productIdlongfalseProduct ID
orderTypestringfalseOrder type: SUBSCRIBE, REDEEM, SETTLE_INTEREST
statusstringfalseOrder status: SUCCESS, PROCESSING, FAILED
startTimelongfalseStart time (millisecond timestamp)
endTimelongfalseEnd time (millisecond timestamp)
pageintegerfalsePage number
sizeintegerfalsePage size

Request Example

Request
curl -G "https://sapi.xt.com/v4/finance/order" \
-H "validate-appkey: $APPKEY" \
-H "validate-timestamp: $TIMESTAMP" \
-H "validate-signature: $SIGNATURE" \
-H "Content-Type: application/json" \
-d "orderType=SUBSCRIBE" \
-d "page=1" \
-d "size=10"

Response Example

Response
{
"rc": 0,
"mc": "SUCCESS",
"ma": [],
"result": {
"hasPrev": false,
"hasNext": true,
"items": [
{
"productName": "USDT Flexible Savings",
"currency": "USDT",
"profitType": "NORMAL",
"apy": [{"apy": "0.08"}],
"financeOrderType": "SUBSCRIBE",
"amount": "1000.00",
"productPrice": "1.00",
"startTime": 1700000000000,
"arrivalTime": 1700000001000,
"financeOrderStatus": "SUCCESS",
"duration": null,
"interestCurrency": "USDT"
},
{
"productName": "BTC Fixed Savings",
"currency": "USDT",
"profitType": "NORMAL",
"apy": [{"apy": "0.12"}],
"financeOrderType": "REDEEM",
"amount": "500.00",
"productPrice": "1.00",
"startTime": 1699900000000,
"arrivalTime": 1699900001000,
"financeOrderStatus": "PROCESSING",
"duration": 30,
"interestCurrency": "USDT"
}
]
}
}

Response Fields

FieldTypeDescription
productNamestringProduct name
currencystringSubscription currency
profitTypestringProfit type
apyarrayReference APY
financeOrderTypestringOrder type: SUBSCRIBE, REDEEM, SETTLE_INTEREST
amountstringAmount
productPricestringProduct price
startTimelongOrder start time
arrivalTimelongArrival time
financeOrderStatusstringOrder status: SUCCESS, PROCESSING, FAILED
durationintegerDuration (days), null for flexible
interestCurrencystringInterest currency