Expand description
§RustyFIXML - XML-based FIX Message Encoding
High-performance FIXML (Financial Information eXchange Markup Language) encoding/decoding for FIX messages optimized for trading systems.
§Features
- Complete FIXML 1.1 specification support
- High-performance XML parsing with quick-xml
- Zero-copy string processing where possible
- Streaming XML processing for large messages
- Comprehensive message validation
- Schema-aware encoding/decoding
§Example
use rustyfixml::{FixmlEncoder, FixmlDecoder, FixmlMessage};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let encoder = FixmlEncoder::new();
let message = FixmlMessage::new_order_single(
"BTCUSD".to_string(),
50000.0,
1.0,
"1".to_string()
);
let xml = encoder.encode(&message)?;
let decoder = FixmlDecoder::new();
let decoded = decoder.decode(&xml)?;
Ok(())
}Modules§
- prelude
- Prelude module for common imports
Structs§
- Decode
Config - Encode
Config - Fixml
Decoder - Fixml
Encoder - Fixml
Message - FIXML message representation.
- Fixml
Schema - FIXML schema manager.
- Reader
- A low level encoding-agnostic XML event reader.
- Writer
- XML writer. Writes XML
Events to astd::io::Writeimplementor.
Enums§
- Decode
Error - Errors during FIXML decoding.
- Encode
Error - Errors during FIXML encoding.
- Event
- Event emitted by
Reader::read_event_into. - Field
Value - FIXML field value types.
- Fixml
Error - Main error type for FIXML operations.
- Message
Type - FIXML message types.
- Schema
Version - FIXML schema versions.