Skip to main content
POST
/
v1
/
valuations
/
accounts:batchGet
Batch get account valuations
curl --request POST \
  --url https://api.polymarketexchange.com/v1/valuations/accounts:batchGet \
  --header 'Content-Type: application/json' \
  --data '
{
  "names": [
    "<string>"
  ],
  "asOfTime": "2023-11-07T05:31:56Z",
  "asOfDate": {
    "year": 123,
    "month": 6,
    "day": 16
  },
  "markPriceType": "MARK_PRICE_TYPE_LAST"
}
'
{
  "summaries": [
    {
      "account": "<string>",
      "currency": "<string>",
      "totalCost": "<string>",
      "totalMarketValue": "<string>",
      "totalUnrealizedPnl": "<string>",
      "totalRealizedPnl": "<string>",
      "positionCount": 123,
      "valuationTime": "2023-11-07T05:31:56Z"
    }
  ],
  "errors": [
    {
      "account": "<string>",
      "code": 123,
      "message": "<string>"
    }
  ],
  "valuationTime": "2023-11-07T05:31:56Z"
}

Body

application/json

Request to get valuations for multiple accounts.

names
string[]
required

Required. List of account resource names to query.

asOfTime
string<date-time>

Optional. Query valuations as of this timestamp. Mutually exclusive with asOfDate.

asOfDate
object

Optional. Query valuations as of end of this trade date. Mutually exclusive with asOfTime.

markPriceType
enum<string>

Optional. Method for determining mark price. Default is LAST.

Available options:
MARK_PRICE_TYPE_LAST,
MARK_PRICE_TYPE_VWAP,
MARK_PRICE_TYPE_MID

Response

200 - application/json

A successful response.

Response with valuations for multiple accounts. Supports partial success.

summaries
object[]

Account summaries (one per successful account)

errors
object[]

Errors for accounts that failed (partial success supported)

valuationTime
string<date-time>

Shared valuation time for the batch