Crate rustyfixml

Crate rustyfixml 

Source
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§

DecodeConfig
EncodeConfig
FixmlDecoder
FixmlEncoder
FixmlMessage
FIXML message representation.
FixmlSchema
FIXML schema manager.
Reader
A low level encoding-agnostic XML event reader.
Writer
XML writer. Writes XML Events to a std::io::Write implementor.

Enums§

DecodeError
Errors during FIXML decoding.
EncodeError
Errors during FIXML encoding.
Event
Event emitted by Reader::read_event_into.
FieldValue
FIXML field value types.
FixmlError
Main error type for FIXML operations.
MessageType
FIXML message types.
SchemaVersion
FIXML schema versions.