For example, in the following log, the data is delayed by almost 3 minutes:
_on_trade callback (python API) was invoked at 15:0002 with a price timestamp of 14:57:01
2023-12-06 15:00:02,708 INFO init.py:224 _on_trade: symbol=‘SERA’ timestamp=datetime.datetime(2023, 12, 6, 14, 57, 1, 279396, tzinfo=datetime.timezone.utc) exchange=‘D’ price=5.4072 size=2.0 id=58334 conditions=[‘@’, ‘I’] tape=‘C’
It appears that the longer the app is running the more the delay increases.
I did not have this issue with IEX data. Could it be python API is queining the data, I would rather miss the data than receive latent data.
If thtis continues I would rather pay some other service for live data.
Please advise a fix.