I'm currently working on a market sentiment report and utilizing Python's get_news_headlines function to collect data. Because the function is run for each currency pair, if more than one currency pair is referenced in the same news, there may be duplicates. The dashboard shows the news' sentiment and how it relates to the currency pair in question. The problem is that there are times when a news piece discusses only one currency pair, and the sentiment of that news article is directed toward that currency pair, but it also includes mentions to other currency pairs. Hence, when the filters for the other currency pairs are applied, this news story is also caught. As a result, the sentiment gathered in this news story does not correspond to the other currency pairs indicated, causing the statistics gathered to be erroneous. Is there any way to resolve this problem, please?
Examples of filters used currently: EURGBP=, EUR=, EURJPY=
Example of this issue:
Thanks in advance.