Skip to main content
GET
/
api
/
workflows
/
polymarket
/
getPriceHistory
Get Price History
curl --request GET \
  --url https://api-v2.swaps.xyz/api/workflows/polymarket/getPriceHistory \
  --header 'x-api-key: <api-key>'
{
  "history": [
    {
      "t": 1735689600,
      "p": 0.52
    }
  ]
}

Authorizations

x-api-key
string
header
required

API key for authentication. Contact Swaps.xyz to obtain an API key.

Query Parameters

clobTokenId
string
required

CLOB token ID

interval
enum<string>
required

Time interval for price history

Available options:
1hr,
1d,
1w,
1m,
max

Response

Price history data

history
object[]
required