Mida icon indicating copy to clipboard operation
Mida copied to clipboard

Event based mechanism to determine broker's server open and close.

Open Ahsan9981 opened this issue 3 years ago • 2 comments

Currently on a given symbol we can determine if the market is open for it. Is it possible to know if server is available for trading or not. Like an event where i could know if market/broker server is available for trading without using symbol.

Ahsan9981 avatar Jun 20 '22 11:06 Ahsan9981

Currently on a given symbol we can determine if the market is open for it. Is it possible to know if server is available for trading or not. Like an event where i could know if market/broker server is available for trading without using symbol.

This makes sense and can be really useful, the only problem is that the availablity of this kind of information depends entirely on the used trading platform and it's not guaranteed that something like this is available and event driven.

A solution would be creating a custom observer which checks every x seconds the following conditions for a symbol:

  • The symbol market is open
  • The symbol trading status is set to ENABLED

Currently symbols trading statuses are not 100% covered by Mida but this is a reason to keep working on it I will leave the issue open for further discussions and updates

Vasile-Peste avatar Jul 01 '22 21:07 Vasile-Peste

Sure thing, We can discuss further on this and I will have my research work going for such things. I think, we can also determine broker server up time and down time. but this will make programmer or consumer dependent upon time zones. (I am currently trying to handle things in this way using cron jobs.)

Ahsan9981 avatar Jul 02 '22 16:07 Ahsan9981