Portfolio
Get Positions
Retrieve all active positions with P&L calculations and market values
get/portfolio/positions
Response
Complete portfolio positions with summary
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"
}
}
}
]
}