Skip to main content
GET
Get paper cash or token shares (PM keys) and a simulated allowance

Authorizations

X-API-Key
string
header
required

Issue from /v1/keys (or admin-issued for enterprise tier).

Headers

X-API-Key
string | null

Your PolySimulator API key

POLY_API_KEY
string | null

Polymarket-CLOB-compat alias for X-API-Key (underscore form). SDK clients ported from Polymarket can authenticate without changing header names. X-API-Key takes precedence when both are provided.

Poly-API-Key
string | null

PM-CLOB-compat dashed-form alias for X-API-Key. Same value semantics as POLY_API_KEY but with HTTP-conventional dash separators. Both spellings are accepted end-to-end.

authorization
string | null

PM-CLOB-compat: Authorization: Bearer ps_live_... (or ps_test_...) is accepted as an alias for X-API-Key so py-clob-client and other ported SDKs authenticate without header name changes. Bearer JWTs are NOT accepted here — use the dashboard-auth endpoints for those.

Query Parameters

asset_type
string | null

COLLATERAL (default) or CONDITIONAL.

token_id
string | null

CLOB outcome token, required for CONDITIONAL.

signature_type
integer | null

PM SDK param. Accepted and unused (no chain here).

Response

Successful Response

GET /v1/balance-allowance response — PM keys + legacy extras.

PM's wire contract (py-clob-client get_balance_allowance / clob-client-v2 BalanceAllowanceResponse) keys the payload as {"balance": "...", "allowance": "..."} — base-unit strings (USDC 6-decimal fixed point). The original polysim emission used {collateral, conditional}, so SDK/user code reading resp["balance"] KeyError'd. PM keys are now primary; the legacy keys stay as polysim extras for older callers.

clob-client-v2 (TS 1.3.1) declares allowances: Record<string, string> keyed by spender contract; it is served for the SDK's Polygon exchange and neg-risk spenders, each with the same sentinel as allowance.

balance
string
required
allowance
string
required
allowances
Allowances · object
required
collateral
string
required
conditional
string
required