Developer Hub

REST API

On-demand price queries via REST

Base URL

https://pyth-lazer.dourolabs.app

Endpoints

MethodPathDescription
POST/v1/latest_priceFetch the latest price for one or more price feeds
POST/v1/priceFetch price data at a specific historical timestamp

POST /v1/latest_price

Returns the most recent price data for the requested feeds. The request body follows the same schema as the WebSocket subscribe message — see the Payload Reference for full details.

POST /v1/price

Returns price data at a specific historical timestamp.

Request Body

All fields from /v1/latest_price, plus:

FieldTypeRequiredDescription
timestampstringYesUnix timestamp in microseconds

For the full response schema — including price feed fields, signed payloads, and available properties — see the Payload Reference.

OpenAPI Schema

The REST API is part of the Pyth Pro Router API. The full OpenAPI specification is available at:

On this page