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

24 wiersze
1.2 KiB
Markdown

<h1 align="center">Polygon.io Agentic Service</h1>
## Intro
[Polygon.io][polygon] 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][polygon] 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.
![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-24/6c09ebfa-b326-4446-b8e8-89bf01b2bff3/user_cropped_screenshot.jpeg?tl_px=25,0&br_px=1145,630&force_format=png&width=560&wat_scale=50&wat=1&wat_opacity=0.7&wat_gravity=northwest&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png&wat_pad=479,111)
[polygon]: https://polygon.io