REST API
On-demand price queries via REST
Base URL
https://pyth-lazer.dourolabs.appEndpoints
| Method | Path | Description |
|---|---|---|
| POST | /v1/latest_price | Fetch the latest price for one or more price feeds |
| POST | /v1/price | Fetch 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.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
channel | string | Yes | Subscription channel. One of: real_time, fixed_rate@1ms, fixed_rate@50ms, fixed_rate@200ms, fixed_rate@1000ms |
Each feed has a minimum supported channel (min_channel), discoverable via
/v1/symbols. You must use a
channel at or above the feed's min_channel.
POST /v1/price
Returns price data at a specific historical timestamp.
Request Body
All fields from /v1/latest_price, plus:
| Field | Type | Required | Description |
|---|---|---|---|
timestamp | u64 | Yes | Unix timestamp in microseconds. Must be a raw integer — do not quote it. |
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:
Related
- Examples Repository
- WebSocket API - For real-time updates