I asked for ProtoOASubscribeLiveTrendbarReq M1, sometimes if get M2

Created at 11 May 2023, 22:32
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
JO

jon.slater

Joined 26.01.2023

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
Replies

jon.slater
12 May 2023, 04:19

This is a red herring.

Sorry about; the data period is correct.

Thanks.


@jon.slater

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