How to implement onStatusChange #333
-
Hi all, Based on the included example (see below), I want to make use of Lightstreamers "onStatusChange" event handler located in ls_python_client_api.py. My goal is just to have something like
My understanding goes as far that onStatusChange is an event handler of the ClientListener class so it doesn't go into the MarketListener, AccountListener or TradeListener but the corresponding term is the ig_stream_service, right? But I cannot wrap my head around the details. Could anybody please hint me the way of the proper implementation? That would be awesome, thank you!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Here's a quick and dirty way to do it. First define a subclass of Client Listener
then add an instance as a listener to the client. In the stream sample do it just before
I'll add a better way to do it in the next release, so you don't need to access the client directly |
Beta Was this translation helpful? Give feedback.
Here's a quick and dirty way to do it. First define a subclass of Client Listener
then add an instance as a listener to the client. In the stream sample do it just before
wait_for_input()
I'll add a better way to do it in the next release, so you don't need to access the client directly