Skip to main content
The fastest way to get started with Polaris is the Python SDK. Install polaris-data, discover a market, and run your first query in a few lines. You do not need an API key for public data.

Prerequisites

Before you begin, you need:
  • Python 3.9 or later
  • A terminal

Install the SDK

Discover a market

Use catalog(...) to confirm the exact market ID before you query. Market IDs are venue-specific. For Hyperliquid, use canonical IDs such as BTC.
Use Catalog for the full market discovery reference.

Query your first data

Fetch recent trades for a public market. from_ and to are optional; without them the SDK uses the most recent available window.

Add an API key when you need it

Public sources work without an API key. Add a Polaris API key when you need:
  • explicit from and to ranges on endpoints that restrict those fields for public requests
  • older preview data that sits outside the public window
  • access that reflects your account tier
Set the key with the POLARIS_API_KEY environment variable:
Or pass it directly to the client:
If you omit api_key, the client reads POLARIS_API_KEY from the environment.

Next steps