Skip to main content
GET
/
api
/
feeds
/
{feed}
/
fetchHistoricalPrices
import pmxt

# API key optional — enables faster catalog-backed lookups
exchange = pmxt.Polymarket(
    pmxt_api_key="YOUR_PMXT_API_KEY",
)
result = exchange.feed_fetch_historical_prices(
    symbol="BTC-USD",
    from_timestamp=1,
    until_timestamp=1,
    max_size=1,
    order="asc",
)
{
  "success": true,
  "data": [
    {
      "symbol": "<string>",
      "info": "<unknown>",
      "timestamp": 123,
      "datetime": "2023-11-07T05:31:56Z",
      "high": 123,
      "low": 123,
      "bid": 123,
      "bidVolume": 123,
      "ask": 123,
      "askVolume": 123,
      "vwap": 123,
      "open": 123,
      "close": 123,
      "last": 123,
      "previousClose": 123,
      "change": 123,
      "percentage": 123,
      "average": 123,
      "quoteVolume": 123,
      "baseVolume": 123,
      "indexPrice": 123,
      "markPrice": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Required when calling the hosted API directly (curl, requests, fetch). SDK users pass credentials via constructor params instead.

Path Parameters

feed
enum<string>
required

The data feed provider.

Available options:
binance,
chainlink

Query Parameters

symbol
string
required

Trading pair (e.g. BTC/USD)

fromTimestamp
integer

Start unix timestamp (seconds)

untilTimestamp
integer

End unix timestamp (seconds)

maxSize
integer

Max records to return

order
enum<string>

Sort order

Available options:
asc,
desc

Response

200 - application/json

Successful response

success
boolean
Example:

true

data
object[]