Using Python to Download Sentiment Data for Financial Trading.
How to Create a Function that Fetches Market Sentiment Data.
Market sentiment is an extremely important part of trading. It allows us to understand the positioning of the players who potentially could move the markets. Knowing that the majority of hedge funds are bullish on an asset gives us more confidence to invest in it. Similarly, knowing that almost all of the hedge funds are bullish on an asset could give us a signal that the market may be overly bullish and that it is wiser to wait before investing or even be brave enough to initiate a contrarian position in case the fundamentals start to justify it.
In this article, we will discuss the famous Commitment of Traders Report — COT and present a way to easily get the values using Python. Next we will see how to combine them with their respective assets or currency pairs. But first, we will introduce the concept of the Commitment of Traders Report before we move on to the more technical elements.
I have just published a new book after the success of New Technical Indicators in Python. It features a more complete description and addition of complex trading strategies with a Github page dedicated to the continuously updated code. If you feel that this interests you, feel free to visit the below link, or if you prefer to buy the PDF version, you could contact me on Linkedin.