Query Position by Currency
Type: GET
Description: /v4/finance/position-currency
Query user's earn positions grouped by currency.
Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| currency | string | false | Currency filter |
Request Example
Request
curl -G "https://sapi.xt.com/v4/finance/position-currency" \
-H "validate-appkey: $APPKEY" \
-H "validate-timestamp: $TIMESTAMP" \
-H "validate-signature: $SIGNATURE" \
-H "Content-Type: application/json"
Response Example
Response
{
"rc": 0,
"mc": "SUCCESS",
"result": [
{
"currency": "usdt",
"amount": "1200.00",
"positionList": [
{
"category": "SAVING",
"productType": "DEMAND_SAVING",
"amount": "1200.00",
"apyList": [{"apy": "0.10"}],
"accInterest": "5.00"
}
]
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
| currency | string | Currency |
| amount | string | Total amount in this currency |
| positionList | array | Position list |
| positionList[].category | string | Product category |
| positionList[].productType | string | Product type |
| positionList[].amount | string | Position amount |
| positionList[].apyList | array | APY list |
| positionList[].accInterest | string | Accumulated interest |