Skip to main content

MsgType

Enum MsgType 

Source
pub enum MsgType {
Show 60 variants Heartbeat, TestRequest, ResendRequest, Reject, SequenceReset, Logout, IndicationOfInterest, Advertisement, ExecutionReport, OrderCancelReject, Logon, News, Email, NewOrderSingle, NewOrderList, OrderCancelRequest, OrderCancelReplaceRequest, OrderStatusRequest, AllocationInstruction, ListCancelRequest, ListExecute, ListStatusRequest, ListStatus, AllocationInstructionAck, DontKnowTrade, QuoteRequest, Quote, SettlementInstructions, MarketDataRequest, MarketDataSnapshotFullRefresh, MarketDataIncrementalRefresh, MarketDataRequestReject, QuoteCancel, QuoteStatusRequest, MassQuoteAcknowledgement, SecurityDefinitionRequest, SecurityDefinition, SecurityStatusRequest, SecurityStatus, TradingSessionStatusRequest, TradingSessionStatus, MassQuote, BusinessMessageReject, BidRequest, BidResponse, ListStrikePrice, XmlMessage, RegistrationInstructions, RegistrationInstructionsResponse, OrderMassCancelRequest, OrderMassCancelReport, NewOrderCross, CrossOrderCancelReplaceRequest, CrossOrderCancelRequest, SecurityTypeRequest, SecurityTypes, SecurityListRequest, SecurityList, DerivativeSecurityListRequest, Custom(String),
}
Expand description

Standard FIX message types.

This enum covers the most common administrative and application messages. Custom or less common message types can be represented as Custom(String).

Variants§

§

Heartbeat

Heartbeat (0) - Session level.

§

TestRequest

Test Request (1) - Session level.

§

ResendRequest

Resend Request (2) - Session level.

§

Reject

Reject (3) - Session level.

§

SequenceReset

Sequence Reset (4) - Session level.

§

Logout

Logout (5) - Session level.

§

IndicationOfInterest

Indication of Interest (6).

§

Advertisement

Advertisement (7).

§

ExecutionReport

Execution Report (8).

§

OrderCancelReject

Order Cancel Reject (9).

§

Logon

Logon (A) - Session level.

§

News

News (B).

§

Email

Email (C).

§

NewOrderSingle

New Order Single (D).

§

NewOrderList

New Order List (E).

§

OrderCancelRequest

Order Cancel Request (F).

§

OrderCancelReplaceRequest

Order Cancel/Replace Request (G).

§

OrderStatusRequest

Order Status Request (H).

§

AllocationInstruction

Allocation Instruction (J).

§

ListCancelRequest

List Cancel Request (K).

§

ListExecute

List Execute (L).

§

ListStatusRequest

List Status Request (M).

§

ListStatus

List Status (N).

§

AllocationInstructionAck

Allocation Instruction Ack (P).

§

DontKnowTrade

Don’t Know Trade (Q).

§

QuoteRequest

Quote Request (R).

§

Quote

Quote (S).

§

SettlementInstructions

Settlement Instructions (T).

§

MarketDataRequest

Market Data Request (V).

§

MarketDataSnapshotFullRefresh

Market Data Snapshot/Full Refresh (W).

§

MarketDataIncrementalRefresh

Market Data Incremental Refresh (X).

§

MarketDataRequestReject

Market Data Request Reject (Y).

§

QuoteCancel

Quote Cancel (Z).

§

QuoteStatusRequest

Quote Status Request (a).

§

MassQuoteAcknowledgement

Mass Quote Acknowledgement (b).

§

SecurityDefinitionRequest

Security Definition Request (c).

§

SecurityDefinition

Security Definition (d).

§

SecurityStatusRequest

Security Status Request (e).

§

SecurityStatus

Security Status (f).

§

TradingSessionStatusRequest

Trading Session Status Request (g).

§

TradingSessionStatus

Trading Session Status (h).

§

MassQuote

Mass Quote (i).

§

BusinessMessageReject

Business Message Reject (j).

§

BidRequest

Bid Request (k).

§

BidResponse

Bid Response (l).

§

ListStrikePrice

List Strike Price (m).

§

XmlMessage

XML Message (n).

§

RegistrationInstructions

Registration Instructions (o).

§

RegistrationInstructionsResponse

Registration Instructions Response (p).

§

OrderMassCancelRequest

Order Mass Cancel Request (q).

§

OrderMassCancelReport

Order Mass Cancel Report (r).

§

NewOrderCross

New Order Cross (s).

§

CrossOrderCancelReplaceRequest

Cross Order Cancel/Replace Request (t).

§

CrossOrderCancelRequest

Cross Order Cancel Request (u).

§

SecurityTypeRequest

Security Type Request (v).

§

SecurityTypes

Security Types (w).

§

SecurityListRequest

Security List Request (x).

§

SecurityList

Security List (y).

§

DerivativeSecurityListRequest

Derivative Security List Request (z).

§

Custom(String)

Custom or unknown message type.

Implementations§

Source§

impl MsgType

Source

pub fn as_str(&self) -> &str

Returns the string representation of this message type.

Source

pub fn is_admin(&self) -> bool

Returns true if this is an administrative message.

Source

pub fn is_app(&self) -> bool

Returns true if this is an application message.

Trait Implementations§

Source§

impl Clone for MsgType

Source§

fn clone(&self) -> MsgType

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MsgType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for MsgType

Source§

fn default() -> MsgType

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for MsgType

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<MsgType, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for MsgType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl FromStr for MsgType

Source§

fn from_str(s: &str) -> Result<MsgType, <MsgType as FromStr>::Err>

Creates a MsgType from a string value.

§Arguments
  • s - The message type string (e.g., “D” for NewOrderSingle)
Source§

type Err = Infallible

The associated error which can be returned from parsing.
Source§

impl Hash for MsgType

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for MsgType

Source§

fn eq(&self, other: &MsgType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for MsgType

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for MsgType

Source§

impl StructuralPartialEq for MsgType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,