Skip to content
UNHEDGED / DOCS

Search documentation

Browse docs or start typing to find a topic

↑ ↓ to navigate Enter to open Esc to close

Documentation

Back to app

Get Position History

GET https://api.unhedged.gg/api/v1/portfolio/me/history

Returns 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 request

Request

Security · Bearer token

Send your API key in the Authorization header. Required scope portfolio:read.

Rate limit · 1,000,000 req/min

Query parameters

marketId string
Optional filter to a single market.
marketType string
Use ORDER_BOOK to return order-book positions.
status string
RESOLVED | VOIDED
startTime string
Optional inclusive lower bound on market.resolutionTime. ISO 8601 date-time.
endTime string
Optional inclusive upper bound on market.resolutionTime. ISO 8601 date-time.
limit number
Results per page (default 50, 1–500).
offset number
Pagination offset (default 0).
Authorization
Bearer token Authorization: Bearer ak_your_key_here
Query parameters
curl https://api.unhedged.gg/api/v1/portfolio/me/history \
  -H "Authorization: Bearer ak_your_key_here"
Response
{
  "positions": [
    {
      "marketId": "clx...",
      "marketType": "ORDER_BOOK",
      "outcomeIndex": 1,
      "outcomeName": "NO",
      "betAmount": "50.0000000000",
      "payout": "92.0000000000",
      "payoutPending": false,
      "sellProceeds": "0.0000000000",
      "sharesAtExpiry": 92,