Skip to main content

TradeTransfer

Struct TradeTransfer 

Source
pub struct TradeTransfer {
Show 69 fields pub account_id: Option<String>, pub acct_alias: Option<String>, pub model: Option<String>, pub symbol: Option<String>, pub description: Option<String>, pub conid: Option<String>, pub asset_category: Option<AssetCategory>, pub transfer_type: Option<String>, pub direction: Option<String>, pub delivery_type: Option<String>, pub quantity: Option<Decimal>, pub transfer_price: Option<Decimal>, pub date: Option<NaiveDate>, pub executing_broker: Option<String>, pub currency: Option<String>, pub fx_rate_to_base: Option<Decimal>, pub transaction_type: Option<TradeType>, pub open_close_indicator: Option<OpenClose>, pub delivered_received: Option<DeliveredReceived>, pub cusip: Option<String>, pub isin: Option<String>, pub underlying_conid: Option<String>, pub trade_id: Option<String>, pub report_date: Option<NaiveDate>, pub trade_date: Option<NaiveDate>, pub trade_time: Option<String>, pub settle_date_target: Option<NaiveDate>, pub exchange: Option<String>, pub trade_price: Option<Decimal>, pub trade_money: Option<Decimal>, pub taxes: Option<Decimal>, pub ib_commission: Option<Decimal>, pub ib_commission_currency: Option<String>, pub close_price: Option<Decimal>, pub notes: Option<String>, pub cost: Option<Decimal>, pub fifo_pnl_realized: Option<Decimal>, pub mtm_pnl: Option<Decimal>, pub broker_name: Option<String>, pub broker_account: Option<String>, pub away_broker_commission: Option<Decimal>, pub regulatory_fee: Option<Decimal>, pub net_trade_money: Option<Decimal>, pub net_trade_money_in_base: Option<Decimal>, pub net_trade_price: Option<Decimal>, pub multiplier: Option<Decimal>, pub sedol: Option<String>, pub security_id: Option<String>, pub underlying_symbol: Option<String>, pub issuer: Option<String>, pub strike: Option<Decimal>, pub expiry: Option<NaiveDate>, pub put_call: Option<PutCall>, pub principal_adjust_factor: Option<Decimal>, pub proceeds: Option<Decimal>, pub fx_pnl: Option<Decimal>, pub net_cash: Option<Decimal>, pub orig_trade_price: Option<Decimal>, pub orig_trade_date: Option<NaiveDate>, pub orig_trade_id: Option<String>, pub orig_order_id: Option<String>, pub clearing_firm_id: Option<String>, pub transaction_id: Option<String>, pub open_date_time: Option<String>, pub holding_period_date_time: Option<String>, pub when_realized: Option<String>, pub when_reopened: Option<String>, pub level_of_detail: Option<String>, pub security_id_type: Option<String>,
}
Expand description

Trade transfer between accounts/brokers

Fields§

§account_id: Option<String>

Account ID

§acct_alias: Option<String>

Account alias

§model: Option<String>

Model

§symbol: Option<String>

Symbol

§description: Option<String>

Description

§conid: Option<String>

Contract ID

§asset_category: Option<AssetCategory>

Asset category

§transfer_type: Option<String>

Transfer type

§direction: Option<String>

Direction

§delivery_type: Option<String>

Delivery type

§quantity: Option<Decimal>

Quantity

§transfer_price: Option<Decimal>

Transfer price

§date: Option<NaiveDate>

Date

§executing_broker: Option<String>

Executing broker

§currency: Option<String>

Currency

§fx_rate_to_base: Option<Decimal>

FX rate to base

§transaction_type: Option<TradeType>

transactionType (added for full ibflex coverage)

§open_close_indicator: Option<OpenClose>

openCloseIndicator (added for full ibflex coverage)

§delivered_received: Option<DeliveredReceived>

deliveredReceived (added for full ibflex coverage)

§cusip: Option<String>

cusip (added for full ibflex coverage)

§isin: Option<String>

isin (added for full ibflex coverage)

§underlying_conid: Option<String>

underlyingConid (added for full ibflex coverage)

§trade_id: Option<String>

tradeID (added for full ibflex coverage)

§report_date: Option<NaiveDate>

reportDate (added for full ibflex coverage)

§trade_date: Option<NaiveDate>

tradeDate (added for full ibflex coverage)

§trade_time: Option<String>

tradeTime (added for full ibflex coverage)

§settle_date_target: Option<NaiveDate>

settleDateTarget (added for full ibflex coverage)

§exchange: Option<String>

exchange (added for full ibflex coverage)

§trade_price: Option<Decimal>

tradePrice (added for full ibflex coverage)

§trade_money: Option<Decimal>

tradeMoney (added for full ibflex coverage)

§taxes: Option<Decimal>

taxes (added for full ibflex coverage)

§ib_commission: Option<Decimal>

ibCommission (added for full ibflex coverage)

§ib_commission_currency: Option<String>

ibCommissionCurrency (added for full ibflex coverage)

§close_price: Option<Decimal>

closePrice (added for full ibflex coverage)

§notes: Option<String>

notes (added for full ibflex coverage)

§cost: Option<Decimal>

cost (added for full ibflex coverage)

§fifo_pnl_realized: Option<Decimal>

fifoPnlRealized (added for full ibflex coverage)

§mtm_pnl: Option<Decimal>

mtmPnl (added for full ibflex coverage)

§broker_name: Option<String>

brokerName (added for full ibflex coverage)

§broker_account: Option<String>

brokerAccount (added for full ibflex coverage)

§away_broker_commission: Option<Decimal>

awayBrokerCommission (added for full ibflex coverage)

§regulatory_fee: Option<Decimal>

regulatoryFee (added for full ibflex coverage)

§net_trade_money: Option<Decimal>

netTradeMoney (added for full ibflex coverage)

§net_trade_money_in_base: Option<Decimal>

netTradeMoneyInBase (added for full ibflex coverage)

§net_trade_price: Option<Decimal>

netTradePrice (added for full ibflex coverage)

§multiplier: Option<Decimal>

multiplier (added for full ibflex coverage)

§sedol: Option<String>

sedol (added for full ibflex coverage)

§security_id: Option<String>

securityID (added for full ibflex coverage)

§underlying_symbol: Option<String>

underlyingSymbol (added for full ibflex coverage)

§issuer: Option<String>

issuer (added for full ibflex coverage)

§strike: Option<Decimal>

strike (added for full ibflex coverage)

§expiry: Option<NaiveDate>

expiry (added for full ibflex coverage)

§put_call: Option<PutCall>

putCall (added for full ibflex coverage)

§principal_adjust_factor: Option<Decimal>

principalAdjustFactor (added for full ibflex coverage)

§proceeds: Option<Decimal>

proceeds (added for full ibflex coverage)

§fx_pnl: Option<Decimal>

fxPnl (added for full ibflex coverage)

§net_cash: Option<Decimal>

netCash (added for full ibflex coverage)

§orig_trade_price: Option<Decimal>

origTradePrice (added for full ibflex coverage)

§orig_trade_date: Option<NaiveDate>

origTradeDate (added for full ibflex coverage)

§orig_trade_id: Option<String>

origTradeID (added for full ibflex coverage)

§orig_order_id: Option<String>

origOrderID (added for full ibflex coverage)

§clearing_firm_id: Option<String>

clearingFirmID (added for full ibflex coverage)

§transaction_id: Option<String>

transactionID (added for full ibflex coverage)

§open_date_time: Option<String>

openDateTime (added for full ibflex coverage)

§holding_period_date_time: Option<String>

holdingPeriodDateTime (added for full ibflex coverage)

§when_realized: Option<String>

whenRealized (added for full ibflex coverage)

§when_reopened: Option<String>

whenReopened (added for full ibflex coverage)

§level_of_detail: Option<String>

levelOfDetail (added for full ibflex coverage)

§security_id_type: Option<String>

securityIDType (added for full ibflex coverage)

Trait Implementations§

Source§

impl Clone for TradeTransfer

Source§

fn clone(&self) -> TradeTransfer

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 TradeTransfer

Source§

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

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

impl<'de> Deserialize<'de> for TradeTransfer

Source§

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

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

impl PartialEq for TradeTransfer

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 TradeTransfer

Source§

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

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

impl StructuralPartialEq for TradeTransfer

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, 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>,