Expand description
§refix-fix44
Typed FIX 4.4 messages for ReFIX,
generated from QuickFIX’s FIX44.xml.
use bytes::Bytes;
use refix_fix44::{NewOrderSingle, OrdType, Side};
use refix_message::Tokenizer;
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 order = NewOrderSingle::from_raw(raw);
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_raw(), Some(b"101.25".as_slice()));Strings, integers, enums and repeating groups are typed, and every message
reaches its header and trailer. Prices, quantities and timestamps read as raw
bytes, as price_raw() does.
§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
- Allocation
Instruction - Allocation
Instruction Ack - Allocation
Report - Allocation
Report Ack - Assignment
Report - BidRequest
- BidResponse
- Business
Message Reject - Collateral
Assignment - Collateral
Inquiry - Collateral
Inquiry Ack - Collateral
Report - Collateral
Request - Collateral
Response - Confirmation
- Confirmation
Ack - Confirmation
Request - Cross
Order Cancel Replace Request - Cross
Order Cancel Request - Derivative
Security List - Derivative
Security List Request - Dont
Know Trade - Execution
Report - Header
- Heartbeat
- IOI
- List
Cancel Request - List
Execute - List
Status - List
Status Request - List
Strike Price - Logon
- Logout
- Market
Data Incremental Refresh - Market
Data Request - Market
Data Request Reject - Market
Data Snapshot Full Refresh - Mass
Quote - Mass
Quote Acknowledgement - Multileg
Order Cancel Replace - Network
Counterparty System Status Request - Network
Counterparty System Status Response - NewOrder
Cross - NewOrder
List - NewOrder
Multileg - NewOrder
Single - News
- Order
Cancel Reject - Order
Cancel Replace Request - Order
Cancel Request - Order
Mass Cancel Report - Order
Mass Cancel Request - Order
Mass Status Request - Order
Status Request - Position
Maintenance Report - Position
Maintenance Request - Position
Report - Quote
- Quote
Cancel - Quote
Request - Quote
Request Reject - Quote
Response - Quote
Status Report - Quote
Status Request - RFQRequest
- Registration
Instructions - Registration
Instructions Response - Reject
- Request
ForPositions - Request
ForPositions Ack - Resend
Request - Security
Definition - Security
Definition Request - Security
List - Security
List Request - Security
Status - Security
Status Request - Security
Type Request - Security
Types - Sequence
Reset - Settlement
Instruction Request - Settlement
Instructions - Test
Request - Trade
Capture Report - Trade
Capture Report Ack - Trade
Capture Report Request - Trade
Capture Report Request Ack - Trading
Session Status - Trading
Session Status Request - Trailer
- User
Request - User
Response - XMLnonFIX
Enums§
- Account
Type - AcctID
Source - Adjustment
- Adjustment
Type - AdvSide
- AdvTrans
Type - Affirm
Status - Aggregated
Book - Alloc
Account Type - Alloc
Canc Replace Reason - Alloc
Handl Inst - Alloc
Intermed ReqType - Alloc
Link Type - Alloc
NoOrders Type - Alloc
RejCode - Alloc
Report Type - Alloc
Settl Inst Type - Alloc
Status - Alloc
Trans Type - Alloc
Type - Appl
Queue Action - Appl
Queue Resolution - Assignment
Method - AvgPx
Indicator - Basis
PxType - BidDescriptor
Type - BidRequest
Trans Type - BidTrade
Type - BidType
- Booking
Type - Booking
Unit - Business
Reject Reason - CPProgram
- Cancellation
Rights - Cash
Margin - Clearing
FeeIndicator - Clearing
Instruction - Coll
Action - Coll
Asgn Reason - Coll
Asgn Reject Reason - Coll
Asgn Resp Type - Coll
Asgn Trans Type - Coll
Inquiry Qualifier - Coll
Inquiry Result - Coll
Inquiry Status - Coll
Status - Comm
Type - Confirm
RejReason - Confirm
Status - Confirm
Trans Type - Confirm
Type - Cont
AmtType - Corporate
Action - Covered
OrUncovered - Cross
Prioritization - Cross
Type - Cust
Order Capacity - CxlRej
Reason - CxlRej
Response To - DKReason
- DayBooking
Inst - Delete
Reason - Delivery
Form - Delivery
Type - Discretion
Inst - Discretion
Limit Type - Discretion
Move Type - Discretion
Offset Type - Discretion
Round Direction - Discretion
Scope - Distrib
Payment Method - Dlvy
Inst Type - DueTo
Related - Email
Type - Encrypt
Method - Event
Type - Exchange
ForPhysical - Exec
Inst - Exec
Price Type - Exec
Restatement Reason - Exec
Type - Exercise
Method - Expiration
Cycle - Financial
Status - Forex
Req - Fund
Renew Waiv - GTBooking
Inst - GapFill
Flag - Halt
Reason Char - Handl
Inst - IOINatural
Flag - IOIQlty
Ind - IOIQty
- IOIQualifier
- IOITrans
Type - InView
OfCommon - IncTax
Ind - Instr
Attrib Type - Last
Capacity - Last
Fragment - Last
Liquidity Ind - LegSwap
Type - Legal
Confirm - Liquidity
IndType - List
Exec Inst Type - List
Order Status - List
Status Type - Locate
Reqd - MDEntry
Type - MDImplicit
Delete - MDReq
RejReason - MDUpdate
Action - MDUpdate
Type - Mass
Cancel Reject Reason - Mass
Cancel Request Type - Mass
Cancel Response - Mass
Status ReqType - Match
Status - Match
Type - Message
Encoding - Misc
FeeBasis - Misc
FeeType - Money
Laundering Status - MsgDirection
- MsgType
- Multi
LegReporting Type - Multi
LegRpt Type Req - NetGross
Ind - Network
Request Type - Network
Status Response Type - NoSides
- Notify
Broker OfCredit - OddLot
- Open
Close Settl Flag - OrdRej
Reason - OrdStatus
- OrdType
- Order
Capacity - Order
Restrictions - Owner
Type - Ownership
Type - PartyID
Source - Party
Role - Party
SubID Type - Payment
Method - PegLimit
Type - PegMove
Type - PegOffset
Type - PegRound
Direction - PegScope
- PosAmt
Type - PosMaint
Action - PosMaint
Result - PosMaint
Status - PosQty
Status - PosReq
Result - PosReq
Status - PosReq
Type - PosTrans
Type - PosType
- Position
Effect - Poss
DupFlag - Poss
Resend - Prealloc
Method - Previously
Reported - Price
Type - Priority
Indicator - Process
Code - Product
- Prog
RptReqs - Publish
TrdIndicator - PutOr
Call - QtyType
- Quote
Cancel Type - Quote
Condition - Quote
Price Type - Quote
Reject Reason - Quote
Request Reject Reason - Quote
Request Type - Quote
Resp Type - Quote
Response Level - Quote
Status - Quote
Type - Regist
RejReason Code - Regist
Status - Regist
Trans Type - Report
ToExch - Reset
SeqNum Flag - Response
Transport Type - Rounding
Direction - Routing
Type - Scope
- SecurityID
Source - Security
List Request Type - Security
Request Result - Security
Request Type - Security
Response Type - Security
Trading Status - Security
Type - Session
Reject Reason - Settl
Curr FxRate Calc - Settl
Delivery Type - Settl
Inst Mode - Settl
Inst ReqRej Code - Settl
Inst Source - Settl
Inst Trans Type - Settl
Price Type - Settl
SessID - Settl
Type - Short
Sale Reason - Side
- Side
Multi LegReporting Type - Side
Value Ind - Solicited
Flag - Stand
Inst DbType - Status
Value - Stipulation
Type - Subscription
Request Type - Target
Strategy - TaxAdvantage
Type - Termination
Type - Test
Message Indicator - Tick
Direction - Time
InForce - Trad
SesMethod - Trad
SesMode - Trad
SesStatus - Trad
SesStatus RejReason - Trade
Alloc Indicator - Trade
Condition - Trade
Report Reject Reason - Trade
Report Type - Trade
Request Result - Trade
Request Status - Trade
Request Type - Traded
Flat Switch - TrdReg
Timestamp Type - TrdRpt
Status - TrdType
- Unsolicited
Indicator - Urgency
- User
Request Type - User
Status - Working
Indicator - Yield
Type