Portfolio
The Portfolio endpoint allows you to easily get the portfolio of any addresses and build beautiful app!
Last updated
The Portfolio endpoint allows you to easily get the portfolio of any addresses and build beautiful app!
Last updated
https://octav-api-dev.hasura.app/
GET
/api/rest/portfolio
Restricted with an key, see API Access
addresses*
A comma-separated list of user addresses
String
includeNFTs
If true, the NFTs are included in the portfolio.
Boolean
includeImages
If true, the images links (chains, assets, protocols) are included in the portfolio.
Boolean
includeExplorerUrls
If true, the explorer links are included in the portfolio.
Boolean
aggregated
If true and multiple addresses queried, the portfolios are aggregated into a single one.
Boolean
[
{
"address": "0xddda947f31da53d8f9b05ab5a0bb07713c256e35",
"cashBalance": "0",
"closedPnl": "13.5466715367602206822681107794098304",
"dailyIncome": "0",
"dailyExpense": "0",
"fees": "48918091440000",
"feesFiat": "0.125327383206473102336577",
"lastUpdated": "1736976333061",
"openPnl": "988.73005829155168096726772643524747428668",
"networth": "1504.0972690884063639880894878216512",
"totalCostBasis": "515.36721079685468302082176138640372571332",
"assetByProtocols": {
"wallet": {
"name": "Wallet",
"key": "wallet",
"value": "1055.20576207293341601424",
"totalCostBasis": "515.36721079685468302082176138640372571332",
"totalClosedPnl": "13.5466715367602206822681107794098304",
"totalOpenPnl": "539.83855127607873299341823861359627428668",
"chains": {
"arbitrum": {
"name": "Arbitrum",
"key": "arbitrum",
"value": "1055.20576207293341601424",
"totalCostBasis": "515.36721079685468302082176138640372571332",
"totalClosedPnl": "13.5466715367602206822681107794098304",
"totalOpenPnl": "539.83855127607873299341823861359627428668",
"protocolPositions": {
"WALLET": {
"assets": [
{
"balance": "0.012695517744456324",
"chainContract": "arbitrum:0x0000000000000000000000000000000000000000",
"chainKey": "arbitrum",
"contract": "0x0000000000000000000000000000000000000000",
"decimal": "18",
"name": "ethereum",
"openPnl": "12.15242135684800006625823861359627428668",
"price": "3442.76",
"symbol": "eth",
"totalCostBasis": "31.55519931305645394798176138640372571332",
"value": "43.70762066990445401424"
},
{
"balance": "69.9031085959246",
"chainContract": "arbitrum:0xfa7f8980b0f1e64a2062791cc3b0871572f1f7f0",
"chainKey": "arbitrum",
"contract": "0xfa7f8980b0f1e64a2062791cc3b0871572f1f7f0",
"decimal": "18",
"name": "uniswap",
"openPnl": "527.76846989923073292716",
"price": "14.47",
"symbol": "uni",
"totalCostBasis": "483.72951148379822907284",
"value": "1011.497981383028962"
},
{
"balance": "15000",
"chainContract": "arbitrum:0x306fd3e7b169aa4ee19412323e1a5995b8c1a1f4",
"chainKey": "arbitrum",
"contract": "0x306fd3e7b169aa4ee19412323e1a5995b8c1a1f4",
"decimal": "18",
"name": "black agnus",
"openPnl": "-0.08233998",
"price": "1.0668e-8",
"symbol": "ftw",
"totalCostBasis": "0.0825",
"value": "0.00016002"
}
],
"name": "wallet",
"protocolPositions": [],
"totalOpenPnl": "539.83855127607873299341823861359627428668",
"totalCostBasis": "515.36721079685468302082176138640372571332",
"totalValue": "1055.20576207293341601424",
"unlockAt": "0"
}
}
}
}
},
"camelot": {
"name": "Camelot",
"key": "camelot",
"value": "448.8915070154729479738494878216512",
"totalCostBasis": "0",
"totalClosedPnl": "0",
"totalOpenPnl": "448.8915070154729479738494878216512",
"chains": {
"arbitrum": {
"name": "Arbitrum",
"key": "arbitrum",
"value": "448.8915070154729479738494878216512",
"totalCostBasis": "0",
"totalClosedPnl": "0",
"totalOpenPnl": "448.8915070154729479738494878216512",
"protocolPositions": {
"REWARDS": {
"assets": [
{
"balance": "0.027360076152603174",
"chainContract": "arbitrum:0x3d9907f9a368ad0a51be60f7da3b97cf940982d8",
"chainKey": "arbitrum",
"contract": "0x3d9907f9a368ad0a51be60f7da3b97cf940982d8",
"decimal": "18",
"name": "camelot token",
"openPnl": "0",
"price": "857.5030282598688",
"symbol": "grail",
"totalCostBasis": "0",
"value": "23.4613481542778419450964757035712"
}
],
"name": "Rewards",
"protocolPositions": [],
"totalOpenPnl": "23.4613481542778419450964757035712",
"totalCostBasis": "0",
"totalValue": "23.4613481542778419450964757035712",
"unlockAt": "0"
},
"LOCKED": {
"assets": [
{
"balance": "0.031381407411028524",
"chainContract": "arbitrum:0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
"chainKey": "arbitrum",
"contract": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
"decimal": "18",
"name": "weth",
"openPnl": "107.90747989541446205592",
"price": "3438.58",
"symbol": "weth",
"totalCostBasis": "0",
"value": "107.90747989541446205592"
},
{
"balance": "317.5861835015738",
"chainContract": "arbitrum:0xaf88d065e77c8cc2239327c5edb3a432268e5831",
"chainKey": "arbitrum",
"contract": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
"decimal": "6",
"name": "usd coin",
"openPnl": "317.52267896578064397283301211808",
"price": "0.9998000399920016",
"symbol": "usdc",
"totalCostBasis": "0",
"value": "317.52267896578064397283301211808"
}
],
"name": "Locked",
"protocolPositions": [],
"totalOpenPnl": "425.43015886119510602875301211808",
"totalCostBasis": "0",
"totalValue": "425.43015886119510602875301211808",
"unlockAt": "1724082187"
}
}
}
}
}
},
"chains": {
"arbitrum": {
"name": "Arbitrum",
"key": "arbitrum",
"chainId": "42161",
"value": "1504.0972690884063639880894878216512",
"valuePercentile": "100",
"totalCostBasis": "515.36721079685468302082176138640372571332",
"totalClosedPnl": "13.5466715367602206822681107794098304",
"totalOpenPnl": "539.83855127607873299341823861359627428668"
}
}
}
]