From 1523f3f1c740391c7b2688adea153a6aa9561f27 Mon Sep 17 00:00:00 2001 From: Sai-132 <126168589+Sai-132@users.noreply.github.com> Date: Tue, 8 Aug 2023 23:12:23 +0530 Subject: [PATCH] Feature/news sentiment (#5274) * News sentiment feature added * News sentiment feature added * Integration test script file added * Updated code as per PR Instructions * API key setting and testing code updated * Unused imports and line-too-long code updated * Resolved conflicts in config_terminal file * removed empty line in terminal_controller file * Resolved conflicts and updated code for Setting API keys * Suggested changes have been updated * Changes updated * conflicts resolved with data_sources_default.json file * Code Updated For without API key * Code Updated * New changes Updated * Resolved conflicts and code updated * Small edits * missed a spelling error * fix test * Lint * pylint rewrite * Changed Domain name * Trail map file Modified --------- Co-authored-by: Sai1998 Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com> Co-authored-by: James Maslek --- .../stocks/behavioural_analysis/news_sentiment_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbb_terminal/stocks/behavioural_analysis/news_sentiment_model.py b/openbb_terminal/stocks/behavioural_analysis/news_sentiment_model.py index 4afdabf9aa9..a1346f6a459 100644 --- a/openbb_terminal/stocks/behavioural_analysis/news_sentiment_model.py +++ b/openbb_terminal/stocks/behavioural_analysis/news_sentiment_model.py @@ -40,7 +40,7 @@ def get_data( query_params = { "all_feilds": "False", - "ordering": "-published_on,-share_of_article,-pagerank", + "ordering": "-published_on,-entity_score,-share_of_article,-pagerank", } if ticker: query_params["ticker"] = ticker @@ -70,7 +70,7 @@ def get_data( query_params["offset"] = offset # type:ignore response = requests.get( - "https://althub-backend.invisagealpha.com/api/OnclusiveSentiment/", + "https://data-access.althub.com/api/OnclusiveSentiment/", headers=headers, params=query_params, timeout=5,