Open virtualritz opened 2 years ago
It seems the time stamp is indeed done on the client side in Python.
So reformulating my question: is there a similar callback in the Wrapper
trait that I can use to time stamp/advance my Ticker
struct?
Looks like this would have to be done inside the Reader::run()
loop? I.e. passing the wrapper all down there and the call resp. new methods added to the Wrapper
trait? Or is there an existing way?
I am trying to get a similar data structure like the
Ticker
class in the Python ib_sync lib filled.I am looking for something like the output from this Python code snippet:
Now while I can fill these fields bit by bit in my Rust
Tickers
struct, as it happens in Python, the issue I have is the time stamps.I only get a
tick_type
lastTimestamp
via my wrapper'stick_string()
every now and then while other data likebidPrice
updates at much higher frequency. Do I just use the current UTC time to create them myself? They would obviously be off my some delta, depending on a lot of factors.The Python code sample doesn't even list any explicit subscriptions when calling
reqMktData()
. What am I missing here?