> ## Documentation Index
> Fetch the complete documentation index at: https://www.anything.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Polygon.io

> Access financial market data and stock information

Polygon.io provides real-time and historical financial market data, including stocks, cryptocurrencies, and forex data.

## Overview

<CardGroup cols={2}>
  <Card title="Create Account" icon="user">
    Sign up for a Polygon.io account
  </Card>

  <Card title="Get API Key" icon="key">
    Generate your Polygon.io API key
  </Card>

  <Card title="Copy into Anything" icon="plug">
    Add your API key to Anything's secrets
  </Card>
</CardGroup>

## Account Creation

<Steps>
  <Step title="Visit Polygon.io Website">
    Go to [polygon.io](https://polygon.io/) and click "Get Started"

    <img src="https://mintcdn.com/create/VE4G9m6I567_bcO7/images/polygonio/homepage.png?fit=max&auto=format&n=VE4G9m6I567_bcO7&q=85&s=647cf159d8255da1a924d0230abd9c96" style={{ borderRadius: '0.5rem', width: '624px', height: '303px' }} width="1876" height="1296" data-path="images/polygonio/homepage.png" />
  </Step>

  <Step title="Choose a Plan">
    * Select your subscription plan
    * Fill in your details
    * Complete the registration process
  </Step>
</Steps>

## Generate API Key

<Steps>
  <Step title="Access Your Dashboard">
    1. Log in to your Polygon.io account
    2. Navigate to the Keys section

    <img src="https://mintcdn.com/create/VE4G9m6I567_bcO7/images/polygonio/dashboard.png?fit=max&auto=format&n=VE4G9m6I567_bcO7&q=85&s=38fe6fbd3b6b4b0c31583d6e0b2ae791" style={{ borderRadius: '0.5rem' }} width="2568" height="1152" data-path="images/polygonio/dashboard.png" />
  </Step>

  <Step title="Copy your default API Key">
    1. Click "Copy" to copy your API Key
    2. If you need to regenerate an API Key, click "Regenerate"

    <img src="https://mintcdn.com/create/VE4G9m6I567_bcO7/images/polygonio/apigen.png?fit=max&auto=format&n=VE4G9m6I567_bcO7&q=85&s=ae1f7d8c588d8a2b2e4ffb103f505d8e" style={{ borderRadius: '0.5rem' }} width="2582" height="1154" data-path="images/polygonio/apigen.png" />
  </Step>

  <Step title="Copy Your API Key">
    1. Copy the generated API key

    <Warning>
      Keep your API key secure - it grants access to your Polygon.io account and quota
    </Warning>
  </Step>
</Steps>

## Add to Anything project

<Steps>
  <Step title="Add the integration">
    1. In your Anything project, type `/` in the chat
    2. Select "Polygon.io" from the menu
  </Step>

  <Step title="Add your API key">
    1. Paste your API key into the "POLYGONIO\_API\_KEY" field

    <Tip>
      Need a new key? Generate one in your Polygon.io dashboard.
    </Tip>
  </Step>

  <Step title="Use it">
    You can now use prompts with the integration to access financial data.

    Some examples:

    * `Get real-time stock prices using /Polygonio`
    * `Fetch historical market data with /Polygonio`
    * `Create a financial dashboard using /Polygonio`

    <Warning>
      The API limits how often your app can fetch data. If your app loads the same data often, ask the agent to save it locally so it doesn't re-fetch every time.
    </Warning>

    Example prompt for optimization:

    ```
    When using /Polygonio, save the market data so my app doesn't have to fetch it again
    ```
  </Step>
</Steps>

<Tip>
  Your Polygon.io integration is now ready! Use the `/Polygonio` command in chat to access financial data.
</Tip>
