chatgpt-api/docs/pages/services/polygon.md

1.2 KiB

Polygon.io Agentic Service

Intro

Polygon.io is a powerful stock market data API provider that provides extensive APIs that range from the realtime and historical data on stocks, options, indices, forex, crypto. Built for developers by developers, Polygon.io is the ideal data provider for your next project.

Pre-requisites

Ensure the following environment variable is set:

  • POLYGON_API_KEY - API key for Polygon.io.

Otherwise, you can pass it in as an argument to the PolygonClient constructor.

How to Retrieve API Key

  1. Open Polygon.io and sign up for an account or log in.

  2. On the left side of the screen, click on the API Keys menu item.

  3. Locate your API key and copy it to your clipboard by clicking on the "Copy" button.