I asked for ProtoOASubscribeLiveTrendbarReq M1, sometimes if get M2
Created at 11 May 2023, 22:32
JO
I asked for ProtoOASubscribeLiveTrendbarReq M1, sometimes if get M2
11 May 2023, 22:32
Hi There,
I have a strange problem. I use this:
def sendProtoOASubscribeLiveTrendbarReq(interval: int):
print(f"sendProtoOASubscribeLiveTrendbarReq")
request = ProtoOASubscribeLiveTrendbarReq()
request.ctidTraderAccountId = ctidTraderAccountId
request.period = ProtoOATrendbarPeriod.M1#interval
request.symbolId = 1
deferred = client.send(request)
deferred.addErrback(onError)
deferred.addCallbacks(sendProtoOASubscribeLiveTrendbarRes, onError)
return deferred
But, sometimes the data is M2, instead M1. What am I doing wrong here?
Regards,
Jon
jon.slater
12 May 2023, 04:19
This is a red herring.
Sorry about; the data period is correct.
Thanks.
@jon.slater