API ReferencePositions

Position in one market

GET/api/v1/markets/{marketId}/positionBearer

Trading APIprice E4 · size E2 · amount E6 (integers)YES | NO

You can only read your own positions — there is no trader segment in the path. chainState has two values: SETTLING = this trader still has unconfirmed settlement jobs in this market; CONFIRMED = everything else. When clearing is unreachable the whole page conservatively degrades to SETTLING (a display state, not a statement about fund availability). Single-market minCursor is supported.

Send Authorization: Bearer <token>. The token is issued by POST /api/v1/auth/verify, and expires after 24h idle or 7d after issuance.

Path parameters

  • marketIdstringpathrequired

    Engine market id (read endpoints do not accept a slug unless that endpoint says otherwise)

    Example"mkt-0001"

Query parameters

  • minCursorstringqueryoptional

    Read-your-writes continuation point (pass the cursor from the 202 place-order response verbatim). While the projection has not caught up this query returns 404, indistinguishable from "the resource does not exist" — poll with the same cursor.

    Example"c1:mkt-0001:184"

Response

200Position
  • traderstring

    The session address, echoed by the server

    Example"0x3f1a9c2e7b4…a7b8c9d0e1f"

  • balanceE6int64

    Margin (1e-6 USD)

    Example250000000

  • yesE2int64

    YES shares (1e-2)

    Example1000

  • noE2int64

    NO shares (1e-2)

    Example1000

  • chainStateSETTLING | CONFIRMED

    SETTLING = there are unconfirmed settlement jobs; CONFIRMED = everything is confirmed

    Example"SETTLING"

Switch status codes in the response example to view errors. For all codes, see the Errors page.