Education

·

Connect Your Scripts and Dashboards to Market Data

Premium adds the REST API, so your scripts, spreadsheets and dashboards can run on Pyth market data, updated every second.

Connect Your Scripts and Dashboards to Market Data

Institutional-grade market data, in your own tools

Watching prices in the Terminal is useful. The next step, for many traders and builders, is getting that same data into a script, a spreadsheet, or a dashboard they already run.

Premium is for developers, quants and traders who write code and feed data into spreadsheets, dashboards, backtests and agents. It adds the REST API and higher limits, so your own tools and scripts can run on Pyth, with updates every second. It is the first Individual plan with the REST API, and it also includes access to the Terminal and MCP, allowing you to connect compatible AI assistants to Pyth prices.

How to pull your first price

These steps use the official REST API. The reference is REST API. Keys are covered in Acquire an API Key.

  1. Get Premium on the Pyth Terminal plans page. Premium includes everything in Plus, plus the REST API, updates every second, and up to 60 price lookups a minute across API and MCP. On Premium and Elite, you choose all-access Pyth Pro price feeds, Pyth Indices, or both.

  2. Sign in to the Terminal and open your API key. The docs say: once you have logged in, click View your API key. Store it somewhere safe. Do not put it in frontend or browser code, and do not share it. The same Authorization: Bearer header authenticates the REST API.

  3. Look up the feed ID for a market you follow in the Pyth Terminal. Use that ID in the request. Do not guess IDs; symbols can change, and the docs recommend the numeric feed ID.

  4. Make an authenticated request. The official REST base URL is https://pyth.dourolabs.app/v1. GET /{channel}/price returns a price at a timestamp, or the first price at or after it. A documented example looks like this (the feed ID and timestamp below are from the docs, not a live market you should copy blindly):

curl -H "Authorization: Bearer $PRO_API_KEY" \
  "<https://pyth.dourolabs.app/v1/fixed_rate@1000ms/price?ids=1&timestamp=1704067200000000>"
curl -H "Authorization: Bearer $PRO_API_KEY" \
  "<https://pyth.dourolabs.app/v1/fixed_rate@1000ms/price?ids=1&timestamp=1704067200000000>"
curl -H "Authorization: Bearer $PRO_API_KEY" \
  "<https://pyth.dourolabs.app/v1/fixed_rate@1000ms/price?ids=1&timestamp=1704067200000000>"
curl -H "Authorization: Bearer $PRO_API_KEY" \
  "<https://pyth.dourolabs.app/v1/fixed_rate@1000ms/price?ids=1&timestamp=1704067200000000>"

timestamp is Unix time in microseconds. To get a recent price, pass the current time and add mode=after, as the docs describe.

  1. Read the response. Match each price to its feed by price_feed_id. Prices are returned with an exponent; apply it before you treat the figure as a display price.

If you get 401, the bearer token is missing or wrong. If you get 403, your plan or data option may not include that feed. On Premium and Elite, you choose all-access Pyth Pro price feeds, Pyth Indices, or both.

Once that call works, you can use the same key for ranges and history on the REST API, or keep using MCP for plain-language questions.

What you get on Premium, versus Plus

Plus gives you the Terminal with full history, and MCP with up to 10 price lookups a minute and 100 an hour. It does not include a REST API. Plus is available at launch pricing of $25/month.

What changes between plans is how fast prices update, how much you can request and how you connect.

Premium, at $149/month, or $249 with both data options, includes everything in Plus, and adds the REST API, updates every second, and up to 60 price lookups a minute across API and MCP. That is the plan for plugging Pyth into a spreadsheet, a dashboard, a backtest or an agent that runs on its own. Streaming is not on Premium; it starts on Elite.

Launch pricing applies to every Individual plan. Individual plans are for personal use. The full terms are here.

Which plan do I need?

If you want to watch and research markets, and ask your AI assistant about them, Plus is enough.

If you want to connect your own tools, scripts or agents through the API, start with Premium.

If you need faster updates or WebSocket streaming for a live trading system, that is Elite.

You can change plans later if your use changes.

Start here

See the Individual plans →

API key: Acquire an API Key. REST reference: REST API.

Pyth Terminal offered by Douro Labs; terms and conditions apply.

Premium is the first Individual plan with the REST API. Here is how to make your first call and bring Pyth market data into your own tools.

The Price of Everything

Subscribe for weekly updates on the markets, data, and infrastructure shaping internet-native finance.

© 2026 Pyth Data Association

Where indicated, certain buttons or links on this website may direct you to third-party services. Any such services are provided by the relevant third party, not by Pyth Data Association, and are not intended for consumers. Separate terms and conditions apply.

The Price of Everything

Subscribe for weekly updates on the markets, data, and infrastructure shaping internet-native finance.

© 2026 Pyth Data Association

Where indicated, certain buttons or links on this website may direct you to third-party services. Any such services are provided by the relevant third party, not by Pyth Data Association, and are not intended for consumers. Separate terms and conditions apply.

The Price of Everything

Subscribe for weekly updates on the markets, data, and infrastructure shaping internet-native finance.

© 2026 Pyth Data Association

Where indicated, certain buttons or links on this website may direct you to third-party services. Any such services are provided by the relevant third party, not by Pyth Data Association, and are not intended for consumers. Separate terms and conditions apply.