Skip to content

How to add feed after the feed.run() #1029

Answered by bmoscon
Vowenchu asked this question in Q&A
Discussion options

You must be logged in to vote

you'd need to set something up to read the symbol data at whatever time/cadence you desire, and then create a new feed. There is an example that does this:

https://github.com/bmoscon/cryptofeed/blob/master/examples/demo_loop.py

You'd just need to make the appropriate calls to get the new symbol data from the exchange (https://github.com/bmoscon/cryptofeed/blob/master/cryptofeed/exchange.py#L78 make sure you set refresh to True when you make this call) and then use whatever new symbols to make new subscriptions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bmoscon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants