Skip to main content

Get Positions

Fetch the list of asset holdings in the user's account

GET: /asset/positions/list

Content-Type: application/json

Parameters

ParameterTypemandatoryDefaultDescriptionRanges
pageNumintfalse1Page Number
pageSizeintfalse10Page Size
Response
Example:
{
"code": 0, // response code
"data": [ // response.AssetsPositionListItem
{
"address": "string", //Currency Address
"amount": "string", //Position Quantity
"balance": "string", //Balance
"chainIconUrl": "string", // Chain Icon URL
"chainName": "string", //Chain Name
"costPrice": "string", // Cost Price
"currentPrice": "string", // Current Price
"decimal": 0, // Token Precision
"formattedAmount": "string", // Position Quantity (Formatted)
"formattedBalance": "string", // Balance (Formatted)
"formattedCostPrice": "string", // Cost Price (Formatted)
"formattedCurrentPrice": "string", // Current Price (Formatted)
"formattedFrozenAmount": "string", // Frozen Quantity (Formatted)
"formattedProfitLossInUsd": "string", // Profit/Loss (Formatted, in USD)
"formattedValueInUsd": "string", // Position Value (Formatted)
"frozenAmount": "string", // Frozen Quantity
"imageUrl": "string", // Currency Image URL
"name": "string", // Currency Name
"profitLossInUsd": "string", // Profit/Loss (in USD)
"symbol": "string", // Currency Symbol
"valueInUsd": "string" // Position Value (in USD)
}
],
"msg": "string",
"time": 0
} "time": 0
}