bmoscon / cryptofeed

Cryptocurrency Exchange Websocket Data Feed Handler
Other
2.14k stars 668 forks source link

Adding del_feed to the feedhandler class #964

Open spc789 opened 1 year ago

spc789 commented 1 year ago

Is your feature request related to a problem? Please describe. => nope A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Case scenario : suppose one wants to follow only the feeds which are - for example - above a 24u volume, or where the volatility is above a specific thresshold. Every day at some time the feeds/coinpairs which are needed are re-calculated. It could happen some feeds which were needed the day before are not needed after the recalculation. To preserve speed a function which deletes those "old", unnecessary feeds, is necessary.

Describe the solution you'd like A del_feed analogy as in add_feed function in the class could solve this problem.

Describe alternatives you've considered The alternative is could be restarting the whole feed program with the correct pairs from that moment, leaving slightly gaps in some data. Ie in the pairs which are not changed