From b308c24f0b465853133f2334259b1c00d1f9bcb7 Mon Sep 17 00:00:00 2001 From: Hewei603 Date: Sat, 14 Feb 2026 16:57:26 +0800 Subject: [PATCH] Update tradingagents/dataflows/y_finance.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- tradingagents/dataflows/y_finance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tradingagents/dataflows/y_finance.py b/tradingagents/dataflows/y_finance.py index 53b9067b..3dabc0bd 100644 --- a/tradingagents/dataflows/y_finance.py +++ b/tradingagents/dataflows/y_finance.py @@ -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"],