pub struct Portfolio2PositionsPortfolio2position {Show 17 fields
pub asset_class: Option<String>,
pub avg_cost: Option<Value>,
pub avg_price: Option<f64>,
pub conid: Option<i32>,
pub currency: Option<String>,
pub description: Option<String>,
pub group: Option<String>,
pub is_last_to_loq: Option<bool>,
pub market_price: Option<f64>,
pub market_value: Option<f64>,
pub model: Option<String>,
pub position: Option<f64>,
pub realized_pnl: Option<f64>,
pub sec_type: Option<String>,
pub sector: Option<String>,
pub timestamp: Option<i32>,
pub unrealized_pnl: Option<f64>,
}Fields§
§asset_class: Option<String>Asset class of the requested instrument.
avg_cost: Option<Value>The account’s average cost for its position.
avg_price: Option<f64>The account’s average price for its position.
conid: Option<i32>IB contract ID for the instrument.
currency: Option<String>Currency in which the instrument trades.
description: Option<String>Contract’s local symbol
group: Option<String>Industry sub-categorization of the instrument.
is_last_to_loq: Option<bool>§market_price: Option<f64>Current market price of the instrument, in the instrument’s currency.
market_value: Option<f64>Current market value of the account’s position in the instrument, in the instrument’s currency.
model: Option<String>Name of the model portfolio in which the account is invested that contributes this position.
position: Option<f64>Size of position in units of instrument.
realized_pnl: Option<f64>Realized PnL for the instrument in the instrument’s currency.
sec_type: Option<String>The security type of the instrument.
sector: Option<String>Industry sector categorization of the instrument.
timestamp: Option<i32>Time taken to retrieve position data in milliseconds.
unrealized_pnl: Option<f64>Unrealized PnL for the instrument in the account.
Trait Implementations§
Source§impl Clone for Portfolio2PositionsPortfolio2position
impl Clone for Portfolio2PositionsPortfolio2position
Source§fn clone(&self) -> Portfolio2PositionsPortfolio2position
fn clone(&self) -> Portfolio2PositionsPortfolio2position
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for Portfolio2PositionsPortfolio2position
impl<'de> Deserialize<'de> for Portfolio2PositionsPortfolio2position
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for Portfolio2PositionsPortfolio2position
impl PartialEq for Portfolio2PositionsPortfolio2position
Source§fn eq(&self, other: &Portfolio2PositionsPortfolio2position) -> bool
fn eq(&self, other: &Portfolio2PositionsPortfolio2position) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Portfolio2PositionsPortfolio2position
Auto Trait Implementations§
impl Freeze for Portfolio2PositionsPortfolio2position
impl RefUnwindSafe for Portfolio2PositionsPortfolio2position
impl Send for Portfolio2PositionsPortfolio2position
impl Sync for Portfolio2PositionsPortfolio2position
impl Unpin for Portfolio2PositionsPortfolio2position
impl UnsafeUnpin for Portfolio2PositionsPortfolio2position
impl UnwindSafe for Portfolio2PositionsPortfolio2position
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
§fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
§fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
x-request-id as the header name. Read more§fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
§fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
x-request-id as the header name. Read more§fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
413 Payload Too Large responses. Read more