v1
latestOpenAPI 3.0.02026-07-265081124.2 KBPublic Portfolio
Get All User Positions
Retrieve all positions for a specific user address
get/portfolio/{account}/positions
Path parameters
accountstring required
Example:0x742d35Cc6634C0532925a3b844Bc454e4438f44e
User Ethereum address
Response
Complete list of user positions
Example response
{
"rewards": {
"todaysRewards": "50250000",
"totalUnpaidRewards": "200750000",
"totalUserRewardsLastEpoch": "150500000",
"rewardsChartData": [
{
"timestamp": 1672531200000,
"userRewards": "25000000",
"totalRewards": "60000000"
}
],
"rewardsByEpoch": [
{
"epochId": 1,
"timestamp": "2024-01-01T00:00:00.000Z",
"totalRewards": "1500000",
"userRewards": "150000",
"earnedPercent": 0.1
}
]
},
"points": 123,
"accumulativePoints": 456,
"amm": [
{
"collateralAmount": "100500000",
"outcomeTokenAmount": "50250000",
"account": "0x1234567890123456789012345678901234567890"
}
],
"clob": [
{
"positions": {
"yes": {
"cost": "75000000",
"fillPrice": "750000",
"realisedPnl": "0",
"unrealizedPnl": "25000000",
"marketValue": "100000000"
},
"no": {
"cost": "75000000",
"fillPrice": "750000",
"realisedPnl": "0",
"unrealizedPnl": "25000000",
"marketValue": "100000000"
}
}
}
]
}