API Support Forum
OEC API > API Support > Market or contract status
Author Topic: Market or contract status
(2 messages, Page 1 of 1)
Moderators: VPfau
JBerrojalbiz381
Posts: 9
Joined: Apr 06, 2011


Posted: Apr 27, 2016 @ 11:08 AM             Msg. 1 of 2
i´ve read in your faq this :
I’m getting “Action not supported for instrument status” (or "Trading suspended"). What does it mean?
Market closed: an order was sent between trading sessions or at maintenance period. Normally maintenance period on workdays is 17:30 – 18:00 EST

my question is , is there any event or property in which i can see the market status or contract status before sending an order.
thanks
Jon Berrojalbiz
CMicciche902
Posts: 367
Joined:


Posted: Apr 27, 2016 @ 11:17 AM             Msg. 2 of 2
Jon,
Those messages indicate the market is closed. Each contract may observe different trading hours.

Trading Hours: http://futures.gaincapital.com/trading/trading-hours.cfm

In API:
Contract. StartTime Property - Trading session start time, in local time zone
Contract. StopTime Property - Trading session stop time, in local time zone
Chris M