¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Live data on multiple contracts - Python


 

You would have only one TestApp().

But you would remember the value of app_underlying.nextId() used for the subscription of each contract since future data callbacks will contain that requestId. That way you know which market data item belongs to which contract.

Hope that helps.

´³¨¹°ù²µ±ð²Ô

?

On Thu, Apr 24, 2025 at 09:21 PM, <danielsojka1@...> wrote:

...
Now, suppose there is 50 contracts between all calls, puts, strikes, and expirations. I was thinking of instantiating Contract() class for every single one of those options.
?
But, how do I live stream all of them? Do I also have instantiate 50 TestApp() classes:
...
and give each one a unique clientid and run threading on every one of them?
?
?
?

Join [email protected] to automatically receive all group messages.