curl --request GET \
--url https://api.limitless.exchange/portfolio/positions \
--header 'X-API-Key: <api-key>'{
"rewards": {
"todaysRewards": "50250000",
"totalUnpaidRewards": "200750000",
"totalUserRewardsLastEpoch": "150500000",
"rewardsByEpoch": [
{
"epochId": 1,
"timestamp": "2024-01-01T00:00:00.000Z",
"totalRewards": "1500000",
"userRewards": "150000",
"earnedPercent": 0.1
}
],
"rewardsChartData": [
{
"timestamp": 1672531200000,
"userRewards": "25000000",
"totalRewards": "60000000"
}
]
},
"points": 123,
"accumulativePoints": 456,
"amm": [
{
"market": {},
"outcomeIndex": 0,
"collateralAmount": "100500000",
"latestTrade": {},
"outcomeTokenAmount": "50250000",
"account": "0x1234567890123456789012345678901234567890"
}
],
"clob": [
{
"market": {
"address": "<string>",
"title": "<string>",
"proxyTitle": null,
"description": "<string>",
"question_id": {},
"condition_id": {},
"position_ids": [
"<array>"
],
"outcome_slot_count": 2,
"winning_index": 0.5,
"payout_numerators": [
"<string>"
],
"status": "<string>",
"og_url": "<string>",
"image_url": "<string>",
"deadline": "<string>",
"hidden": false,
"txHash": null,
"resolutionTxHash": null,
"priority_index": null
},
"positions": {
"yes": {
"cost": "75000000",
"fillPrice": "750000",
"realisedPnl": "0",
"unrealizedPnl": "25000000",
"marketValue": "100000000"
},
"no": {
"cost": "25000000",
"fillPrice": "250000",
"realisedPnl": "0",
"unrealizedPnl": "-5000000",
"marketValue": "20000000"
}
},
"tokensBalance": {},
"orders": {},
"latestTrade": {},
"rewards": {}
}
],
"group": [
{}
]
}Retrieve all active positions with P&L calculations and market values
curl --request GET \
--url https://api.limitless.exchange/portfolio/positions \
--header 'X-API-Key: <api-key>'{
"rewards": {
"todaysRewards": "50250000",
"totalUnpaidRewards": "200750000",
"totalUserRewardsLastEpoch": "150500000",
"rewardsByEpoch": [
{
"epochId": 1,
"timestamp": "2024-01-01T00:00:00.000Z",
"totalRewards": "1500000",
"userRewards": "150000",
"earnedPercent": 0.1
}
],
"rewardsChartData": [
{
"timestamp": 1672531200000,
"userRewards": "25000000",
"totalRewards": "60000000"
}
]
},
"points": 123,
"accumulativePoints": 456,
"amm": [
{
"market": {},
"outcomeIndex": 0,
"collateralAmount": "100500000",
"latestTrade": {},
"outcomeTokenAmount": "50250000",
"account": "0x1234567890123456789012345678901234567890"
}
],
"clob": [
{
"market": {
"address": "<string>",
"title": "<string>",
"proxyTitle": null,
"description": "<string>",
"question_id": {},
"condition_id": {},
"position_ids": [
"<array>"
],
"outcome_slot_count": 2,
"winning_index": 0.5,
"payout_numerators": [
"<string>"
],
"status": "<string>",
"og_url": "<string>",
"image_url": "<string>",
"deadline": "<string>",
"hidden": false,
"txHash": null,
"resolutionTxHash": null,
"priority_index": null
},
"positions": {
"yes": {
"cost": "75000000",
"fillPrice": "750000",
"realisedPnl": "0",
"unrealizedPnl": "25000000",
"marketValue": "100000000"
},
"no": {
"cost": "25000000",
"fillPrice": "250000",
"realisedPnl": "0",
"unrealizedPnl": "-5000000",
"marketValue": "20000000"
}
},
"tokensBalance": {},
"orders": {},
"latestTrade": {},
"rewards": {}
}
],
"group": [
{}
]
}subscribe_positions.API key for programmatic access. Generate at limitless.exchange -> profile menu -> Api keys.
Complete portfolio positions with summary
Rewards information for the portfolio
Show child attributes
User points
123
User accumulative points
456
List of AMM positions
Show child attributes
List of CLOB positions
Show child attributes
Grouped CLOB positions (if enabled)