Explorer
Get portfolio
Get the portfolio data of the user, which includes all the tokens owned by the user across all the networks.
Authorization
Authorization
RequiredBearer <token>In: header
curl -X GET "https://sandbox-api.okto.tech/api/oc/v1/aggregated-portfolio" \
-H "Authorization: Bearer <token>"
Fetched
{
"status": "success",
"data": {
"aggregated_data": {
"holdings_count": "6",
"holdings_price_inr": "594.5431000000001",
"holdings_price_usdt": "8.821019999999999",
"total_holding_price_inr": "594.5431000000001",
"total_holding_price_usdt": "8.821019999999999"
},
"group_tokens": [
{
"id": "a9e192bb-bd18-3a47-ab07-5ecff29776e3",
"name": "Polygon Ecosystem Token",
"symbol": "POL",
"short_name": "POL",
"token_image": "https://www.dextools.io/resources/tokens/logos/3/ether/0x455e53cbb86018ac2b8092fdcd39d8444affc3f6.png?1698233684",
"token_address": "",
"group_id": "c885bfd2-abff-30d5-a0ba-aed6573a836d",
"network_id": "ae506585-0ba7-32f3-8b92-120ddf940198",
"precision": "4",
"network_name": "POLYGON",
"is_primary": false,
"balance": "3.7258",
"holdings_price_usdt": "1.14661",
"holdings_price_inr": "77.28166",
"aggregation_type": "group",
"tokens": [
{
"id": "a9e192bb-bd18-3a47-ab07-5ecff29776e3",
"name": "Polygon Ecosystem Token",
"symbol": "POL",
"short_name": "POL",
"token_image": "https://www.dextools.io/resources/tokens/logos/3/ether/0x455e53cbb86018ac2b8092fdcd39d8444affc3f6.png?1698233684",
"token_address": "",
"network_id": "ae506585-0ba7-32f3-8b92-120ddf940198",
"precision": "4",
"network_name": "POLYGON",
"is_primary": true,
"balance": "3.7258",
"holdings_price_usdt": "1.14661",
"holdings_price_inr": "77.28166"
}
]
}
]
}
}