Spot event not timely

Created at 09 Jun 2023, 11:55
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!
AN

andrew.okri@gmail.com

Joined 05.06.2023

Spot event not timely
09 Jun 2023, 11:55


Is there a reason why the spot event is not occurring at the expected time for the time period subscribed for. I have an M30 session running. At instantiation, l get the first spot event complete with trend bar data, but every subsequent half hour after that, the spot event does not arrive from the server. The connection to the server is correctly kept alive by a recurrent heartbeat polling. I get the Depth event which indicate connection was always maintained. but l never receive any future spot events. Mind you, l did receive a response confirming subscription to spot events and trendbar events were received by the server.

 

What could be the matter here? I am running in the Python SDK .

PROBLEM

1. Spot events occur 5 mins before the half hour or up to 12mins after the half hour

2. Sometimes, the spot event does not occur at all with no error raised

3. Other times, subsequent spot events arrive 5 to 10mins apart with the first instance containing the tick data only and the next containing the tick and trend data. But both not occurring promptly on the half hour timeframe.

See screenshot below for details.

Is this a known issue? Is there anything l can do at the client end to improve the timeliness of the spot event?


@andrew.okri@gmail.com
Replies

PanagiotisChar
09 Jun 2023, 13:44

Hi there,

Can you compare with the desktop app? Does the symbol receive ticks on cTrader Desktop?

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar

andrew.okri@gmail.com
09 Jun 2023, 13:56 ( Updated at: 09 Jun 2023, 13:57 )

RE:

PanagiotisChar said:

Hi there,

Can you compare with the desktop app? Does the symbol receive ticks on cTrader Desktop?

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 

The symbol is USDJPY, the currently running desktop app can display tick data in the onTick method and trendbar data in the OnBar method. The timing of the OnBar event on the desktop is spot on the 30 minutes intervals and l am trying to replicate that in the python SDK based code for OpenAPI. The aim is to have a consistent event signal on the 30 mins interval as my trading algorithm is based on this strict timeliness.


@andrew.okri@gmail.com

andrew.okri@gmail.com
16 Jun 2023, 11:55 ( Updated at: 21 Dec 2023, 09:23 )

The issue continues to persist. Is this what to expect from the production environment of the Python SDK CTrader server as well? This time no event signal was received, is there a solution coming for this or is there something we can do at the client end to improve this?


@andrew.okri@gmail.com

PanagiotisChar
16 Jun 2023, 13:12

Hi there,

It's still not clear to me what the problem is as your screenshots don't say much. Nevertheless, if there is an issue here not just a misunderstanding of how things work, it's probably a problem with the Python SDK, which is open source and not really supported, so I would not expect any updates. If you can reproduce the problem with the .Net SDK too, I would be happy to have a look as well

Aieden Technologies

Need help? Join us on Telegram


@PanagiotisChar