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: StringIdentifier of the request the report answers (710).
position_id: Option<PositionId>Identifier of the position (721).
total_reports: u32Number of reports that answer the request (727).
result: u32Code 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§
Trait Implementations§
Source§impl Clone for PositionReport
impl Clone for PositionReport
Source§impl Debug for PositionReport
impl Debug for PositionReport
impl Eq for PositionReport
Source§impl From<PositionReport> for Message
impl From<PositionReport> for Message
Source§fn from(message: PositionReport) -> Self
fn from(message: PositionReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PositionReport
impl PartialEq for PositionReport
impl StructuralPartialEq for PositionReport
Auto Trait Implementations§
impl Forget for PositionReport
impl Freeze for PositionReport
impl Move for PositionReport
impl RefUnwindSafe for PositionReport
impl Send for PositionReport
impl Sync for PositionReport
impl Unpin for PositionReport
impl UnsafeUnpin for PositionReport
impl UnwindSafe for PositionReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more