Skip to main content

Crate refix_fix44

Crate refix_fix44 

Source
Expand description

§refix-fix44

Typed FIX 4.4 messages for ReFIX, generated from QuickFIX’s FIX44.xml.

use bytes::Bytes;
use refix::message::{Decimal, TimePrecision, Tokenizer, UtcTimestamp};
use refix_fix44::{Message, OrdType, Side};

let frame = "8=FIX.4.4|9=118|35=D|49=SENDER|56=TARGET|34=1|52=20261008-09:30:00|\
             11=ORDER-1|55=ACME|54=1|60=20261008-09:30:00|40=2|44=101.25|38=100|10=194|";
let raw = Tokenizer::default()
    .tokenize(Bytes::from(frame.replace('|', "\x01")))
    .unwrap();
let Message::NewOrderSingle(order) = Message::from_raw(raw) else {
    panic!("expected a NewOrderSingle");
};

assert_eq!(order.header().sender_comp_id(), Ok(Some("SENDER")));
assert_eq!(order.header().msg_seq_num(), Ok(Some(1)));
assert_eq!(order.cl_ord_id(), Ok(Some("ORDER-1")));
assert_eq!(order.symbol(), Ok(Some("ACME")));
assert_eq!(order.side(), Ok(Some(Side::Buy)));
assert_eq!(order.ord_type(), Ok(Some(OrdType::Limit)));
assert_eq!(order.price(), Ok(Some(Decimal::new(10125, -2))));
assert_eq!(
    order.transact_time(),
    Ok(Some(UtcTimestamp::new(1_791_451_800_000_000_000, TimePrecision::SECONDS)))
);

Message::from_raw reads each message as the type its MsgType names, and any other as Message::Unrecognized.

§License

Licensed under either of

  • Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)

at your option.

The code is generated from QuickFIX’s FIX44.xml, under the QuickFIX Software License (LICENSE-QUICKFIX). This product includes software developed by quickfixengine.org (http://www.quickfixengine.org/).

Modules§

affected_ord_grp
alloc_ack_grp
alloc_grp
attrb_grp
bid_comp_req_grp
bid_comp_rsp_grp
bid_desc_req_grp
clr_inst_grp
coll_inq_qual_grp
comp_id_req_grp
comp_id_stat_grp
cont_amt_grp
contra_grp
cpcty_conf_grp
dlvy_inst_grp
evnt_grp
exec_alloc_grp
exec_coll_grp
header
instrmt_grp
instrmt_leg_exec_grp
instrmt_leg_grp
instrmt_leg_ioi_grp
instrmt_leg_sec_list_grp
instrmt_md_req_grp
instrmt_strk_px_grp
ioi_qual_grp
leg_ord_grp
leg_pre_alloc_grp
leg_quot_grp
leg_quot_stat_grp
leg_sec_alt_id_grp
leg_stipulations
lines_of_text_grp
list_ord_grp
logon
md_full_grp
md_inc_grp
md_req_grp
md_rjct_grp
misc_fees_grp
nested_parties
nested_parties2
nested_parties3
nstd_ptys2_sub_grp
nstd_ptys3_sub_grp
nstd_ptys_sub_grp
ord_alloc_grp
ord_list_stat_grp
parties
pos_und_instrmt_grp
position_amount_data
position_qty
pre_alloc_grp
pre_alloc_mleg_grp
ptys_sub_grp
quot_cxl_entries_grp
quot_entry_ack_grp
quot_entry_grp
quot_qual_grp
quot_req_grp
quot_req_legs_grp
quot_req_rjct_grp
quot_set_ack_grp
quot_set_grp
rel_sym_deriv_sec_grp
rfq_req_grp
rgst_dist_inst_grp
rgst_dtls_grp
routing_grp
sec_alt_id_grp
sec_list_grp
sec_types_grp
settl_inst_grp
settl_parties
settl_ptys_sub_grp
side_cross_ord_cxl_grp
side_cross_ord_mod_grp
stipulations
trd_alloc_grp
trd_cap_dt_grp
trd_cap_rpt_side_grp
trd_coll_grp
trd_instrmt_leg_grp
trd_reg_timestamps
trdg_ses_grp
und_instrmt_coll_grp
und_instrmt_grp
und_instrmt_strk_px_grp
und_sec_alt_id_grp
underlying_stipulations

Structs§

Advertisement
The Advertisement (35=7) message.
AllocationInstruction
The AllocationInstruction (35=J) message.
AllocationInstructionAck
The AllocationInstructionAck (35=P) message.
AllocationReport
The AllocationReport (35=AS) message.
AllocationReportAck
The AllocationReportAck (35=AT) message.
AssignmentReport
The AssignmentReport (35=AW) message.
BidRequest
The BidRequest (35=k) message.
BidResponse
The BidResponse (35=l) message.
BusinessMessageReject
The BusinessMessageReject (35=j) message.
CollateralAssignment
The CollateralAssignment (35=AY) message.
CollateralInquiry
The CollateralInquiry (35=BB) message.
CollateralInquiryAck
The CollateralInquiryAck (35=BG) message.
CollateralReport
The CollateralReport (35=BA) message.
CollateralRequest
The CollateralRequest (35=AX) message.
CollateralResponse
The CollateralResponse (35=AZ) message.
Confirmation
The Confirmation (35=AK) message.
ConfirmationAck
The ConfirmationAck (35=AU) message.
ConfirmationRequest
The ConfirmationRequest (35=BH) message.
CrossOrderCancelReplaceRequest
The CrossOrderCancelReplaceRequest (35=t) message.
CrossOrderCancelRequest
The CrossOrderCancelRequest (35=u) message.
DerivativeSecurityList
The DerivativeSecurityList (35=AA) message.
DerivativeSecurityListRequest
The DerivativeSecurityListRequest (35=z) message.
DontKnowTrade
The DontKnowTrade (35=Q) message.
Email
The Email (35=C) message.
ExecutionReport
The ExecutionReport (35=8) message.
Header
The header fields of a message.
Heartbeat
The Heartbeat (35=0) message.
IOI
The IOI (35=6) message.
ListCancelRequest
The ListCancelRequest (35=K) message.
ListExecute
The ListExecute (35=L) message.
ListStatus
The ListStatus (35=N) message.
ListStatusRequest
The ListStatusRequest (35=M) message.
ListStrikePrice
The ListStrikePrice (35=m) message.
Logon
The Logon (35=A) message.
Logout
The Logout (35=5) message.
MarketDataIncrementalRefresh
The MarketDataIncrementalRefresh (35=X) message.
MarketDataRequest
The MarketDataRequest (35=V) message.
MarketDataRequestReject
The MarketDataRequestReject (35=Y) message.
MarketDataSnapshotFullRefresh
The MarketDataSnapshotFullRefresh (35=W) message.
MassQuote
The MassQuote (35=i) message.
MassQuoteAcknowledgement
The MassQuoteAcknowledgement (35=b) message.
MultilegOrderCancelReplace
The MultilegOrderCancelReplace (35=AC) message.
NetworkCounterpartySystemStatusRequest
The NetworkCounterpartySystemStatusRequest (35=BC) message.
NetworkCounterpartySystemStatusResponse
The NetworkCounterpartySystemStatusResponse (35=BD) message.
NewOrderCross
The NewOrderCross (35=s) message.
NewOrderList
The NewOrderList (35=E) message.
NewOrderMultileg
The NewOrderMultileg (35=AB) message.
NewOrderSingle
The NewOrderSingle (35=D) message.
News
The News (35=B) message.
OrderCancelReject
The OrderCancelReject (35=9) message.
OrderCancelReplaceRequest
The OrderCancelReplaceRequest (35=G) message.
OrderCancelRequest
The OrderCancelRequest (35=F) message.
OrderMassCancelReport
The OrderMassCancelReport (35=r) message.
OrderMassCancelRequest
The OrderMassCancelRequest (35=q) message.
OrderMassStatusRequest
The OrderMassStatusRequest (35=AF) message.
OrderStatusRequest
The OrderStatusRequest (35=H) message.
PositionMaintenanceReport
The PositionMaintenanceReport (35=AM) message.
PositionMaintenanceRequest
The PositionMaintenanceRequest (35=AL) message.
PositionReport
The PositionReport (35=AP) message.
Quote
The Quote (35=S) message.
QuoteCancel
The QuoteCancel (35=Z) message.
QuoteRequest
The QuoteRequest (35=R) message.
QuoteRequestReject
The QuoteRequestReject (35=AG) message.
QuoteResponse
The QuoteResponse (35=AJ) message.
QuoteStatusReport
The QuoteStatusReport (35=AI) message.
QuoteStatusRequest
The QuoteStatusRequest (35=a) message.
RFQRequest
The RFQRequest (35=AH) message.
RegistrationInstructions
The RegistrationInstructions (35=o) message.
RegistrationInstructionsResponse
The RegistrationInstructionsResponse (35=p) message.
Reject
The Reject (35=3) message.
RequestForPositions
The RequestForPositions (35=AN) message.
RequestForPositionsAck
The RequestForPositionsAck (35=AO) message.
ResendRequest
The ResendRequest (35=2) message.
SecurityDefinition
The SecurityDefinition (35=d) message.
SecurityDefinitionRequest
The SecurityDefinitionRequest (35=c) message.
SecurityList
The SecurityList (35=y) message.
SecurityListRequest
The SecurityListRequest (35=x) message.
SecurityStatus
The SecurityStatus (35=f) message.
SecurityStatusRequest
The SecurityStatusRequest (35=e) message.
SecurityTypeRequest
The SecurityTypeRequest (35=v) message.
SecurityTypes
The SecurityTypes (35=w) message.
SequenceReset
The SequenceReset (35=4) message.
SettlementInstructionRequest
The SettlementInstructionRequest (35=AV) message.
SettlementInstructions
The SettlementInstructions (35=T) message.
TestRequest
The TestRequest (35=1) message.
TradeCaptureReport
The TradeCaptureReport (35=AE) message.
TradeCaptureReportAck
The TradeCaptureReportAck (35=AR) message.
TradeCaptureReportRequest
The TradeCaptureReportRequest (35=AD) message.
TradeCaptureReportRequestAck
The TradeCaptureReportRequestAck (35=AQ) message.
TradingSessionStatus
The TradingSessionStatus (35=h) message.
TradingSessionStatusRequest
The TradingSessionStatusRequest (35=g) message.
Trailer
The trailer fields of a message.
UserRequest
The UserRequest (35=BE) message.
UserResponse
The UserResponse (35=BF) message.
XMLnonFIX
The XMLnonFIX (35=n) message.

Enums§

AccountType
The values of the AccountType (581) field.
AcctIDSource
The values of the AcctIDSource (660) field.
Adjustment
The values of the Adjustment (334) field.
AdjustmentType
The values of the AdjustmentType (718) field.
AdvSide
The values of the AdvSide (4) field.
AdvTransType
The values of the AdvTransType (5) field.
AffirmStatus
The values of the AffirmStatus (940) field.
AllocAccountType
The values of the AllocAccountType (798) field.
AllocCancReplaceReason
The values of the AllocCancReplaceReason (796) field.
AllocHandlInst
The values of the AllocHandlInst (209) field.
AllocIntermedReqType
The values of the AllocIntermedReqType (808) field.
AllocLinkType
The values of the AllocLinkType (197) field.
AllocNoOrdersType
The values of the AllocNoOrdersType (857) field.
AllocRejCode
The values of the AllocRejCode (88) field.
AllocReportType
The values of the AllocReportType (794) field.
AllocSettlInstType
The values of the AllocSettlInstType (780) field.
AllocStatus
The values of the AllocStatus (87) field.
AllocTransType
The values of the AllocTransType (71) field.
AllocType
The values of the AllocType (626) field.
ApplQueueAction
The values of the ApplQueueAction (815) field.
ApplQueueResolution
The values of the ApplQueueResolution (814) field.
AssignmentMethod
The values of the AssignmentMethod (744) field.
AvgPxIndicator
The values of the AvgPxIndicator (819) field.
BasisPxType
The values of the BasisPxType (419) field.
BidDescriptorType
The values of the BidDescriptorType (399) field.
BidRequestTransType
The values of the BidRequestTransType (374) field.
BidTradeType
The values of the BidTradeType (418) field.
BidType
The values of the BidType (394) field.
BookingType
The values of the BookingType (775) field.
BookingUnit
The values of the BookingUnit (590) field.
BusinessRejectReason
The values of the BusinessRejectReason (380) field.
CPProgram
The values of the CPProgram (875) field.
CancellationRights
The values of the CancellationRights (480) field.
CashMargin
The values of the CashMargin (544) field.
ClearingFeeIndicator
The values of the ClearingFeeIndicator (635) field.
ClearingInstruction
The values of the ClearingInstruction (577) field.
CollAction
The values of the CollAction (944) field.
CollAsgnReason
The values of the CollAsgnReason (895) field.
CollAsgnRejectReason
The values of the CollAsgnRejectReason (906) field.
CollAsgnRespType
The values of the CollAsgnRespType (905) field.
CollAsgnTransType
The values of the CollAsgnTransType (903) field.
CollInquiryQualifier
The values of the CollInquiryQualifier (896) field.
CollInquiryResult
The values of the CollInquiryResult (946) field.
CollInquiryStatus
The values of the CollInquiryStatus (945) field.
CollStatus
The values of the CollStatus (910) field.
CommType
The values of the CommType (13) field.
ConfirmRejReason
The values of the ConfirmRejReason (774) field.
ConfirmStatus
The values of the ConfirmStatus (665) field.
ConfirmTransType
The values of the ConfirmTransType (666) field.
ConfirmType
The values of the ConfirmType (773) field.
ContAmtType
The values of the ContAmtType (519) field.
CorporateAction
The values of the CorporateAction (292) field.
CoveredOrUncovered
The values of the CoveredOrUncovered (203) field.
CrossPrioritization
The values of the CrossPrioritization (550) field.
CrossType
The values of the CrossType (549) field.
CustOrderCapacity
The values of the CustOrderCapacity (582) field.
CxlRejReason
The values of the CxlRejReason (102) field.
CxlRejResponseTo
The values of the CxlRejResponseTo (434) field.
DKReason
The values of the DKReason (127) field.
DayBookingInst
The values of the DayBookingInst (589) field.
DeleteReason
The values of the DeleteReason (285) field.
DeliveryForm
The values of the DeliveryForm (668) field.
DeliveryType
The values of the DeliveryType (919) field.
DiscretionInst
The values of the DiscretionInst (388) field.
DiscretionLimitType
The values of the DiscretionLimitType (843) field.
DiscretionMoveType
The values of the DiscretionMoveType (841) field.
DiscretionOffsetType
The values of the DiscretionOffsetType (842) field.
DiscretionRoundDirection
The values of the DiscretionRoundDirection (844) field.
DiscretionScope
The values of the DiscretionScope (846) field.
DistribPaymentMethod
The values of the DistribPaymentMethod (477) field.
DlvyInstType
The values of the DlvyInstType (787) field.
EmailType
The values of the EmailType (94) field.
EncryptMethod
The values of the EncryptMethod (98) field.
EventType
The values of the EventType (865) field.
ExecInst
The values of the ExecInst (18) field.
ExecPriceType
The values of the ExecPriceType (484) field.
ExecRestatementReason
The values of the ExecRestatementReason (378) field.
ExecType
The values of the ExecType (150) field.
ExerciseMethod
The values of the ExerciseMethod (747) field.
ExpirationCycle
The values of the ExpirationCycle (827) field.
FinancialStatus
The values of the FinancialStatus (291) field.
FundRenewWaiv
The values of the FundRenewWaiv (497) field.
GTBookingInst
The values of the GTBookingInst (427) field.
HaltReasonChar
The values of the HaltReasonChar (327) field.
HandlInst
The values of the HandlInst (21) field.
IOIQltyInd
The values of the IOIQltyInd (25) field.
IOIQty
The values of the IOIQty (27) field.
IOIQualifier
The values of the IOIQualifier (104) field.
IOITransType
The values of the IOITransType (28) field.
IncTaxInd
The values of the IncTaxInd (416) field.
InstrAttribType
The values of the InstrAttribType (871) field.
LastCapacity
The values of the LastCapacity (29) field.
LastLiquidityInd
The values of the LastLiquidityInd (851) field.
LegSwapType
The values of the LegSwapType (690) field.
LiquidityIndType
The values of the LiquidityIndType (409) field.
ListExecInstType
The values of the ListExecInstType (433) field.
ListOrderStatus
The values of the ListOrderStatus (431) field.
ListStatusType
The values of the ListStatusType (429) field.
MDEntryType
The values of the MDEntryType (269) field.
MDReqRejReason
The values of the MDReqRejReason (281) field.
MDUpdateAction
The values of the MDUpdateAction (279) field.
MDUpdateType
The values of the MDUpdateType (265) field.
MassCancelRejectReason
The values of the MassCancelRejectReason (532) field.
MassCancelRequestType
The values of the MassCancelRequestType (530) field.
MassCancelResponse
The values of the MassCancelResponse (531) field.
MassStatusReqType
The values of the MassStatusReqType (585) field.
MatchStatus
The values of the MatchStatus (573) field.
MatchType
The values of the MatchType (574) field.
Message
A message read as the type its MsgType names.
MessageEncoding
The values of the MessageEncoding (347) field.
MiscFeeBasis
The values of the MiscFeeBasis (891) field.
MiscFeeType
The values of the MiscFeeType (139) field.
MoneyLaunderingStatus
The values of the MoneyLaunderingStatus (481) field.
MsgDirection
The values of the MsgDirection (385) field.
MsgType
The values of the MsgType (35) field.
MultiLegReportingType
The values of the MultiLegReportingType (442) field.
MultiLegRptTypeReq
The values of the MultiLegRptTypeReq (563) field.
NetGrossInd
The values of the NetGrossInd (430) field.
NetworkRequestType
The values of the NetworkRequestType (935) field.
NetworkStatusResponseType
The values of the NetworkStatusResponseType (937) field.
NoSides
The values of the NoSides (552) field.
OpenCloseSettlFlag
The values of the OpenCloseSettlFlag (286) field.
OrdRejReason
The values of the OrdRejReason (103) field.
OrdStatus
The values of the OrdStatus (39) field.
OrdType
The values of the OrdType (40) field.
OrderCapacity
The values of the OrderCapacity (528) field.
OrderRestrictions
The values of the OrderRestrictions (529) field.
OwnerType
The values of the OwnerType (522) field.
OwnershipType
The values of the OwnershipType (517) field.
PartyIDSource
The values of the PartyIDSource (447) field.
PartyRole
The values of the PartyRole (452) field.
PartySubIDType
The values of the PartySubIDType (803) field.
PaymentMethod
The values of the PaymentMethod (492) field.
PegLimitType
The values of the PegLimitType (837) field.
PegMoveType
The values of the PegMoveType (835) field.
PegOffsetType
The values of the PegOffsetType (836) field.
PegRoundDirection
The values of the PegRoundDirection (838) field.
PegScope
The values of the PegScope (840) field.
PosAmtType
The values of the PosAmtType (707) field.
PosMaintAction
The values of the PosMaintAction (712) field.
PosMaintResult
The values of the PosMaintResult (723) field.
PosMaintStatus
The values of the PosMaintStatus (722) field.
PosQtyStatus
The values of the PosQtyStatus (706) field.
PosReqResult
The values of the PosReqResult (728) field.
PosReqStatus
The values of the PosReqStatus (729) field.
PosReqType
The values of the PosReqType (724) field.
PosTransType
The values of the PosTransType (709) field.
PosType
The values of the PosType (703) field.
PositionEffect
The values of the PositionEffect (77) field.
PreallocMethod
The values of the PreallocMethod (591) field.
PriceType
The values of the PriceType (423) field.
PriorityIndicator
The values of the PriorityIndicator (638) field.
ProcessCode
The values of the ProcessCode (81) field.
Product
The values of the Product (460) field.
ProgRptReqs
The values of the ProgRptReqs (414) field.
PutOrCall
The values of the PutOrCall (201) field.
QtyType
The values of the QtyType (854) field.
QuoteCancelType
The values of the QuoteCancelType (298) field.
QuoteCondition
The values of the QuoteCondition (276) field.
QuotePriceType
The values of the QuotePriceType (692) field.
QuoteRejectReason
The values of the QuoteRejectReason (300) field.
QuoteRequestRejectReason
The values of the QuoteRequestRejectReason (658) field.
QuoteRequestType
The values of the QuoteRequestType (303) field.
QuoteRespType
The values of the QuoteRespType (694) field.
QuoteResponseLevel
The values of the QuoteResponseLevel (301) field.
QuoteStatus
The values of the QuoteStatus (297) field.
QuoteType
The values of the QuoteType (537) field.
RegistRejReasonCode
The values of the RegistRejReasonCode (507) field.
RegistStatus
The values of the RegistStatus (506) field.
RegistTransType
The values of the RegistTransType (514) field.
ResponseTransportType
The values of the ResponseTransportType (725) field.
RoundingDirection
The values of the RoundingDirection (468) field.
RoutingType
The values of the RoutingType (216) field.
Scope
The values of the Scope (546) field.
SecurityIDSource
The values of the SecurityIDSource (22) field.
SecurityListRequestType
The values of the SecurityListRequestType (559) field.
SecurityRequestResult
The values of the SecurityRequestResult (560) field.
SecurityRequestType
The values of the SecurityRequestType (321) field.
SecurityResponseType
The values of the SecurityResponseType (323) field.
SecurityTradingStatus
The values of the SecurityTradingStatus (326) field.
SecurityType
The values of the SecurityType (167) field.
SessionRejectReason
The values of the SessionRejectReason (373) field.
SettlCurrFxRateCalc
The values of the SettlCurrFxRateCalc (156) field.
SettlDeliveryType
The values of the SettlDeliveryType (172) field.
SettlInstMode
The values of the SettlInstMode (160) field.
SettlInstReqRejCode
The values of the SettlInstReqRejCode (792) field.
SettlInstSource
The values of the SettlInstSource (165) field.
SettlInstTransType
The values of the SettlInstTransType (163) field.
SettlPriceType
The values of the SettlPriceType (731) field.
SettlSessID
The values of the SettlSessID (716) field.
SettlType
The values of the SettlType (63) field.
ShortSaleReason
The values of the ShortSaleReason (853) field.
Side
The values of the Side (54) field.
SideMultiLegReportingType
The values of the SideMultiLegReportingType (752) field.
SideValueInd
The values of the SideValueInd (401) field.
StandInstDbType
The values of the StandInstDbType (169) field.
StatusValue
The values of the StatusValue (928) field.
StipulationType
The values of the StipulationType (233) field.
SubscriptionRequestType
The values of the SubscriptionRequestType (263) field.
TargetStrategy
The values of the TargetStrategy (847) field.
TaxAdvantageType
The values of the TaxAdvantageType (495) field.
TerminationType
The values of the TerminationType (788) field.
TickDirection
The values of the TickDirection (274) field.
TimeInForce
The values of the TimeInForce (59) field.
TradSesMethod
The values of the TradSesMethod (338) field.
TradSesMode
The values of the TradSesMode (339) field.
TradSesStatus
The values of the TradSesStatus (340) field.
TradSesStatusRejReason
The values of the TradSesStatusRejReason (567) field.
TradeAllocIndicator
The values of the TradeAllocIndicator (826) field.
TradeCondition
The values of the TradeCondition (277) field.
TradeReportRejectReason
The values of the TradeReportRejectReason (751) field.
TradeReportType
The values of the TradeReportType (856) field.
TradeRequestResult
The values of the TradeRequestResult (749) field.
TradeRequestStatus
The values of the TradeRequestStatus (750) field.
TradeRequestType
The values of the TradeRequestType (569) field.
TrdRegTimestampType
The values of the TrdRegTimestampType (770) field.
TrdRptStatus
The values of the TrdRptStatus (939) field.
TrdType
The values of the TrdType (828) field.
Urgency
The values of the Urgency (61) field.
UserRequestType
The values of the UserRequestType (924) field.
UserStatus
The values of the UserStatus (926) field.
YieldType
The values of the YieldType (235) field.

Constants§

DIALECT
The dialect of this dictionary.