• No : 3235
  • Updated Date : 2017/05/22 14:33
  • Modified on : 2019/06/24 11:15
  • Print

[J-GATE]No Value in Closing Auction Condition Order Flag (exch_order_type_n) and Closing Auction Condition Session Type (ext_t_state_c)

Is MO31 rejected when we don't set any value in Closing Auction Condition Order Flag (exch_order_type_n) and Closing Auction Condition Session Type (ext_t_state_c)?
What reject code does OSE reply?
Category : 

Answer

MO31 is rejected when you don't set any value either for the above 2 items.
 
Each Datatype are as follows.
 
exch_order_type_n    (Order Type, Exchange)     UINT16_T(2digit number)
ext_t_state_c              (Trade Report Type)           UINT8_T  (1digit number)
 
 
Assuming NULL = 0x00, NULL means zero.
So J-GATE recognized NULL as "0" with those items
 
There are 2cases...
 
Case1:
0(=NULL) for exch_order_type_n (Order Type, Exchange) 
1 or 2 or 3 for ext_t_state_c (Trade Report Type)
-> rejected with the error : -420453:State Type valid only for State Type Orders
 
Case2:
512(= close condition) for exch_order_type_n (Order Type, Exchange)
0(=NULL)  for ext_t_state_c (Trade Report Type)
-> rejected with the error : -420451´╝ÜState Type Order must specify state type
 
Please don't input other values than 1, 2, 3, with "ext_t_state_c (Trade Report Type)"
Please see also 4.6.3.1.8 Orders with Closing Conditions in J-GATE Connectivity Manual