11use hotfix:: Message as HotfixMessage ;
22use hotfix:: field_types:: Timestamp ;
3- use hotfix:: fix44;
43use hotfix:: message:: { OutboundMessage , Part } ;
54
65use crate :: custom_fix;
@@ -9,7 +8,7 @@ use crate::custom_fix;
98pub struct NewOrderSingle {
109 pub cl_ord_id : String ,
1110 pub symbol : String ,
12- pub side : fix44 :: Side ,
11+ pub side : custom_fix :: Side ,
1312 pub order_qty : u32 ,
1413 pub transact_time : Timestamp ,
1514 pub client_strategy_id : i32 ,
@@ -23,20 +22,20 @@ pub enum OutboundMsg {
2322#[ derive( Debug , Clone ) ]
2423pub struct ExecReportSummary {
2524 pub cl_ord_id : String ,
26- pub ord_status : fix44 :: OrdStatus ,
25+ pub ord_status : custom_fix :: OrdStatus ,
2726 pub client_strategy_id : Option < i32 > ,
2827}
2928
3029impl OutboundMessage for OutboundMsg {
3130 fn write ( & self , msg : & mut HotfixMessage ) {
3231 match self {
3332 OutboundMsg :: NewOrderSingle ( order) => {
34- msg. set ( fix44 :: CL_ORD_ID , order. cl_ord_id . as_str ( ) ) ;
35- msg. set ( fix44 :: SYMBOL , order. symbol . as_str ( ) ) ;
36- msg. set ( fix44 :: SIDE , order. side ) ;
37- msg. set ( fix44 :: ORDER_QTY , order. order_qty ) ;
38- msg. set ( fix44 :: TRANSACT_TIME , order. transact_time . clone ( ) ) ;
39- msg. set ( fix44 :: ORD_TYPE , fix44 :: OrdType :: Market ) ;
33+ msg. set ( custom_fix :: CL_ORD_ID , order. cl_ord_id . as_str ( ) ) ;
34+ msg. set ( custom_fix :: SYMBOL , order. symbol . as_str ( ) ) ;
35+ msg. set ( custom_fix :: SIDE , order. side ) ;
36+ msg. set ( custom_fix :: ORDER_QTY , order. order_qty ) ;
37+ msg. set ( custom_fix :: TRANSACT_TIME , order. transact_time . clone ( ) ) ;
38+ msg. set ( custom_fix :: ORD_TYPE , custom_fix :: OrdType :: Market ) ;
4039 msg. set ( custom_fix:: CLIENT_STRATEGY_ID , order. client_strategy_id ) ;
4140 }
4241 }
0 commit comments