Closing of the market

35 views
Skip to first unread message

Can Dolgun

unread,
May 11, 2019, 10:29:27 AM5/11/19
to NJ4X Forum
Hi,

How can I find out that the market is closed? And how can I get the latest symbol values after the market closes?

Thank you.

Roman Gerasimenko

unread,
May 12, 2019, 5:32:57 AM5/12/19
to NJ4X Forum
There is no direct method to find out market closed state.
But, when you try to place an order you'll get ErrMarketClosed error.
Also MarketInfo(symbol, MODE_TIME) will return same value (the last known tick time)

Latest symbol values can be achieved from MarketInfo(symbol, MODE_*) method as well.
 

сб, 11 трав. 2019 о 17:29 Can Dolgun <hc.d...@gmail.com> пише:
Hi,

How can I find out that the market is closed? And how can I get the latest symbol values after the market closes?

Thank you.

--
You received this message because you are subscribed to the Google Groups "NJ4X Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nj4x+uns...@googlegroups.com.
To post to this group, send email to nj...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nj4x/58ed372f-cebe-478e-befa-7e449c0443a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages