Get Position History
https://api.unhedged.gg /api/v1/portfolio/me/historyReturns resolved and voided market positions from newest to oldest by market.resolutionTime. The default page size is 50 and the maximum is 500. ORDER_BOOK pagination is by market, so one market can return multiple outcome rows. When payoutPending is true, winning shares await a payout credit: payout reports only the credit recorded so far, and final P/L must wait. Pending payouts and exact-market reads bypass the stored history cache. Use status=RESOLVED|VOIDED and startTime/endTime to filter a resolution window, for example /api/v1/portfolio/me/history?marketType=ORDER_BOOK&status=RESOLVED&startTime=2026-04-01T00:00:00.000Z&endTime=2026-04-30T23:59:59.999Z.
Configure requestRequest
Security · Bearer token
Send your API key in the Authorization header. Required scope portfolio:read.
Rate limit · 1,000,000 req/min
Query parameters
marketIdstring- Optional filter to a single market.
marketTypestring- Use ORDER_BOOK to return order-book positions.
statusstring- RESOLVED | VOIDED
startTimestring- Optional inclusive lower bound on market.resolutionTime. ISO 8601 date-time.
endTimestring- Optional inclusive upper bound on market.resolutionTime. ISO 8601 date-time.
limitnumber- Results per page (default 50, 1–500).
offsetnumber- Pagination offset (default 0).
Authorization
Authorization: Bearer ak_your_key_hereQuery parameters
curl https://api.unhedged.gg/api/v1/portfolio/me/history \
-H "Authorization: Bearer ak_your_key_here" {
"positions": [
{
"marketId": "clx...",
"marketType": "ORDER_BOOK",
"outcomeIndex": 1,
"outcomeName": "NO",
"betAmount": "50.0000000000",
"payout": "92.0000000000",
"payoutPending": false,
"sellProceeds": "0.0000000000",
"sharesAtExpiry": 92,