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
Usecatalog(...) to confirm the exact market ID before you query. Market IDs are venue-specific. For Hyperliquid, use canonical IDs such as BTC.
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
fromandtoranges on endpoints that restrict those fields for public requests - older preview data that sits outside the public window
- access that reflects your account tier
POLARIS_API_KEY environment variable:
api_key, the client reads POLARIS_API_KEY from the environment.
Next steps
- Read the Python SDK for the full method reference.
- Read Catalog before you hardcode source and market IDs.
- Read Market coverage to browse supported venues and their access tiers.
- Read Jupyter Notebook if you want a notebook workflow.