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
Replies
ultmnc
16 Oct 2023, 21:00
RE: I asked for ProtoOASubscribeLiveTrendbarReq M1, sometimes if get M2
jon.slater said:
Good day.
Are you able to assist me with the ProtoOASubscribeLiveTrendbarReq M1 python code please as i am unable to find any reference to it.
Your assistance would be greatly appreciated
Regards
Ultmnc
@ultmnc
jon.slater
12 May 2023, 04:19
This is a red herring.
Sorry about; the data period is correct.
Thanks.
@jon.slater