Get Order-Book Shares
GET
https://api.unhedged.gg /api/v1/portfolio/me/sharesReturns every ACTIVE and ENDED ORDER_BOOK share row, including zero balances. Use marketId after a fill to refresh one market (uncached; VOIDED excluded). Resolved history uses cursor pagination; follow nextCursor until null. Collections are cached for 10 seconds.
Configure requestRequest
Security · Bearer token
Send your API key in the Authorization header. Required scope portfolio:read.
Rate limit · 60 req/min (120 req/min with ?marketId=)
Query parameters
marketIdstring- Exact market (uncached). Cannot be combined with status, limit, or cursor.
statusstring- RESOLVED for history. Omit for current inventory.
limitnumber- History page size, 1–100. Default 100. Requires status=RESOLVED.
cursorstring- Previous page nextCursor. Omit on page 1. Requires status=RESOLVED.