Skip to main content
POST
/
v1
/
valuations
/
accounts
/
download
Batch download account valuations as CSV
curl --request POST \
  --url https://api.polymarketexchange.com/v1/valuations/accounts/download \
  --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"
}
'
"<string>"

Body

application/json

Request to download valuations for multiple accounts as CSV.

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 - text/csv

A successful response (streaming).

CSV file stream containing account valuation summaries. One row per account. Columns: account, currency, total_cost, total_market_value, total_unrealized_pnl, total_realized_pnl, position_count, valuation_time, mark_price_type, price_source