Configuration options for initializing the Polygon SDK.
PolygonConfig
const config = { apiKey: process.env.POLYGON_API_KEY!, apiSecret: process.env.POLYGON_API_SECRET!}; Copy
const config = { apiKey: process.env.POLYGON_API_KEY!, apiSecret: process.env.POLYGON_API_SECRET!};
Your Polygon API key (from settings page)
Your Polygon API secret
Optional
Optional custom API base URL (defaults to official Polygon API)
Configuration options for initializing the Polygon SDK.
PolygonConfig
Example