-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement NEWS based API support for realtime NEWS and updates #14
Conversation
Related to #4 Add NEWS API support for real-time news and updates. * **Configuration Changes** - Add `NEWS_API_KEY` and `NEWS_API_ENDPOINT` to `.env` file. - Update `config/api_config.py` to include `news_api_key` and `news_api_endpoint`. - Add `news_headers` method to `APIConfig` class. - Add `get_news_endpoint` method to `APIConfig` class. * **News Data Fetcher** - Create `data/news_data_fetcher.py` with `NewsDataFetcher` class. - Add `fetch_news_data` method to `NewsDataFetcher` class. * **Main Integration** - Import `NewsDataFetcher` in `main.py`. - Initialize `NewsDataFetcher` instance with `news_api_key` and `news_api_endpoint`. - Update `process_market_data` function to include `news_fetcher` parameter. - Fetch and process news data in `process_market_data` function. * **Data Fetcher Updates** - Import `NewsDataFetcher` in `data/data_fetcher.py`. - Add `news_fetcher` attribute to `DataFetcher` class. - Initialize `news_fetcher` in `DataFetcher` constructor. - Add `fetch_and_process_news_data` method to `DataFetcher` class.
Caution Review failedThe pull request is closed. WalkthroughThe changes introduce new functionality to integrate a News API within the existing application. This includes updates to the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Related to #4
Add NEWS API support for real-time news and updates.
Configuration Changes
NEWS_API_KEY
andNEWS_API_ENDPOINT
to.env
file.config/api_config.py
to includenews_api_key
andnews_api_endpoint
.news_headers
method toAPIConfig
class.get_news_endpoint
method toAPIConfig
class.News Data Fetcher
data/news_data_fetcher.py
withNewsDataFetcher
class.fetch_news_data
method toNewsDataFetcher
class.Main Integration
NewsDataFetcher
inmain.py
.NewsDataFetcher
instance withnews_api_key
andnews_api_endpoint
.process_market_data
function to includenews_fetcher
parameter.process_market_data
function.Data Fetcher Updates
NewsDataFetcher
indata/data_fetcher.py
.news_fetcher
attribute toDataFetcher
class.news_fetcher
inDataFetcher
constructor.fetch_and_process_news_data
method toDataFetcher
class.Summary by CodeRabbit
New Features
Bug Fixes
Documentation
NEWS_API_KEY
andNEWS_API_ENDPOINT
.