pub fn encode_new_order_single_fix44(
order_id: &str,
symbol: &str,
side: char,
order_qty: f64,
price: f64,
) -> Vec<u8> ⓘExpand description
Encodes a FIX 4.4 New Order Single message
This function creates a simple FIX 4.4 message for placing a new order. In production, this should be replaced with a proper FIX library with dictionary support and proper message validation.
§Arguments
order_id- Client order IDsymbol- Trading symbolside- Order side (‘1’ for buy, ‘2’ for sell)order_qty- Order quantityprice- Order price
§Returns
Returns a byte vector containing the FIX message