From 1f7fc6d65a62100ac3774b764ce287f10180ee09 Mon Sep 17 00:00:00 2001 From: aan Date: Thu, 28 Nov 2024 22:31:04 +0100 Subject: [PATCH] fix: key --- bearish/sources/alphavantage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bearish/sources/alphavantage.py b/bearish/sources/alphavantage.py index da2343d..f23c540 100644 --- a/bearish/sources/alphavantage.py +++ b/bearish/sources/alphavantage.py @@ -26,10 +26,10 @@ class AlphaVantageBase(BaseModel): __source__: str = "AlphaVantage" fundamentals: ClassVar[FundamentalData] = FundamentalData( - key=os.environ["ALPHAVANTAGE_API_KEY"] + key=os.environ.get("ALPHAVANTAGE_API_KEY") ) timeseries: ClassVar[TimeSeries] = TimeSeries( - key=os.environ["ALPHAVANTAGE_API_KEY"] + key=os.environ.get("ALPHAVANTAGE_API_KEY") )