Polyrankdocs
x402 Agent API

GET /v1/agent/market/{conditionId}/prices

YES price history for one market (1d / 1w / 1m / all). x402: $0.01 per call, settled in USDC only on a 2xx — a 4xx is free.

GET
/v1/agent/market/{conditionId}/prices

YES price history for one market (1d / 1w / 1m / all). x402: $0.01 per call, settled in USDC only on a 2xx — a 4xx is free.

X-PAYMENT<token>

x402 payment: base64(JSON PaymentPayload) with an EIP-3009 USDC transferWithAuthorization on Base. Call once without it to get the 402 PaymentRequirements; see docs.polyrank.app/x402.

In: header

Path Parameters

conditionId*string

Market condition id (0x + 64 hex, any case; answered lowercased).

Query Parameters

window?string

History window: 1d (15 min buckets), 1w (1 h), 1m (4 h) or all (1 d, coarsened to weeks then months past 500 points; days the order-book tape has no point are drawn from fills, source 'trades'). Default 1w.

Response Body

application/json

curl -X GET "https://example.com/v1/agent/market/string/prices"
{}
Empty
Empty