From c4b5a117933daeb4bc120e767044ff3b49b8b2f1 Mon Sep 17 00:00:00 2001 From: wleong1 Date: Thu, 7 Mar 2024 01:12:47 +0000 Subject: [PATCH] Added parameters file --- src/live_price_display.py | 2 +- src/news_display.py | 2 +- src/parameters.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/live_price_display.py b/src/live_price_display.py index 8763514..cd8026c 100644 --- a/src/live_price_display.py +++ b/src/live_price_display.py @@ -5,7 +5,7 @@ import yfinance as yf # type: ignore[import-not-found] # type: ignore[import-untyped] # pylint: disable=E0401 import pandas as pd -from src.parameters import ALPHA_VANTAGE_API_KEY # type: ignore[import-not-found] # pylint: disable=E0401, E0611 +from src.parameters import ALPHA_VANTAGE_API_KEY # type: ignore[attr-defined] ALPHA_VANTAGE_ENDPOINT = "https://www.alphavantage.co/query" diff --git a/src/news_display.py b/src/news_display.py index d77e26b..553875b 100644 --- a/src/news_display.py +++ b/src/news_display.py @@ -2,7 +2,7 @@ import requests -from src.parameters import NEWS_API_KEY # type: ignore[import-not-found] # type: ignore[import-untyped] # pylint: disable=E0401, E0611, C0301 +from src.parameters import NEWS_API_KEY # type: ignore[attr-defined] NEWS_ENDPOINT = "https://newsapi.org/v2/everything" diff --git a/src/parameters.py b/src/parameters.py index e69de29..f214a84 100644 --- a/src/parameters.py +++ b/src/parameters.py @@ -0,0 +1,2 @@ +NEWS_API_KEY = "" +ALPHA_VANTAGE_API_KEY = "" \ No newline at end of file