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 Order-Book Shares

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

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

Request

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

marketId string
Exact market (uncached). Cannot be combined with status, limit, or cursor.
status string
RESOLVED for history. Omit for current inventory.
limit number
History page size, 1–100. Default 100. Requires status=RESOLVED.
cursor string
Previous page nextCursor. Omit on page 1. Requires status=RESOLVED.
Authorization
Bearer token Authorization: Bearer ak_your_key_here
Query parameters
curl https://api.unhedged.gg/api/v1/portfolio/me/shares \
  -H "Authorization: Bearer ak_your_key_here"
Response
{
  "shares": [
    {
      "marketId": "clx...",
      "outcome": "YES",
      "available": 12,
      "locked": 3,
      "total": 15,
      "costAmount": "9.6750000000",
      "updatedAt": "2026-04-12T15:34:01.000Z",
      "market": {
        "question": "Will BTC be up at 12:00 UTC?",