Interested in using RSS (or similar)
Quant.Freeman last edited by Quant.Freeman
A few friends and I are starting a new project and I was wondering if anyone here has any experience or ideas about how to implement RSS as a means of tracking headlines/hype/sentiment.
This would obviously be a pretty crude metric but I suspect it'd be a good supplementary piece of data for trading Cryptocurrencies and other commodities which are so heavily influenced by the news cycle.
There are several libraries to track RSS feeds: https://wiki.python.org/moin/RssLibraries
But the key issue here is how you implement the model in a trading strategy:
Using some other trigger event (like a
1-minutedata feed) you pull to see if a new event is available and act accordingly. This doesn't preclude background processing, in which case the pulled info will not be directly the feed but whatever you want to make out of it
Whenever your listening thread and processing engine detect something, you do immediately act. In this case and within the context of backtrader and using the
1-minutedata feed from above, it could mean that when you act with the RSS event, your price information is, for example,
45 secondstoo old. Where you are the one defining too old. It might be that you need to react with the latest info and latest price quotes to make your strategy work or that 45 seconds is an acceptable delay.
You can of course reduce the timeframe resolution and work with
10-secondsbars to reduce the lag.