Update tradingagents/dataflows/y_finance.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Hewei603 2026-02-14 16:57:26 +08:00 committed by GitHub
parent 99d5d2122d
commit b308c24f0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ import pandas as pd # for polygon data processing
from polygon import RESTClient # for polygon client (need to pip install polygon-api-client)
# Polygon API Key: free registration https://polygon.io/ (free layer 5min/day enough)
POLYGON_API_KEY = "your key" # replace with your key
POLYGON_API_KEY = os.getenv("POLYGON_API_KEY", "your key")
def get_YFin_data_online( # rename? or keep, add fallback inside
symbol: Annotated[str, "ticker symbol of the company"],