Skip to main content

PositionReport

Struct PositionReport 

Source
pub struct PositionReport {
Show 13 fields pub pos_req_id: String, pub position_id: Option<PositionId>, pub total_reports: u32, pub result: u32, pub symbol: Option<SymbolId>, pub settl_price: Option<Price>, pub long_qty: Option<Volume>, pub short_qty: Option<Volume>, pub absolute_tp: Option<Price>, pub absolute_sl: Option<Price>, pub trailing_sl: Option<bool>, pub trigger_method_sl: Option<u32>, pub guaranteed_sl: Option<bool>,
}
Expand description

Position report (AP): one open position, or the news that there is none.

Fields§

§pos_req_id: String

Identifier of the request the report answers (710).

§position_id: Option<PositionId>

Identifier of the position (721).

§total_reports: u32

Number of reports that answer the request (727).

§result: u32

Code of the result; zero stands for a valid request, two for no position (728).

§symbol: Option<SymbolId>

Symbol (55).

§settl_price: Option<Price>

Entry price of the position (730).

§long_qty: Option<Volume>

Quantity bought (704).

§short_qty: Option<Volume>

Quantity sold (705).

§absolute_tp: Option<Price>

Take profit as a price (1000).

§absolute_sl: Option<Price>

Stop loss as a price (1002).

§trailing_sl: Option<bool>

Tells whether the stop loss trails the price (1004).

§trigger_method_sl: Option<u32>

Code of the trigger method of the stop loss (1005).

§guaranteed_sl: Option<bool>

Tells whether the stop loss is guaranteed (1006).

Implementations§

Source§

impl PositionReport

Source

pub const MSG_TYPE: &'static str = "AP"

Type of the message (35).

Trait Implementations§

Source§

impl Clone for PositionReport

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for PositionReport

Source§

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

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

impl Eq for PositionReport

Source§

impl From<PositionReport> for Message

Source§

fn from(message: PositionReport) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for PositionReport

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PositionReport

Source§

impl TryFrom<&PositionReport> for Position

Source§

type Error = FixError

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

fn try_from(report: &PositionReport) -> Result<Self, FixError>

Performs the conversion.

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more