[][src]Struct fxoanda_definitions::InstrumentCommission

pub struct InstrumentCommission {
    pub commission: Option<f32>,
    pub units_traded: Option<f32>,
    pub minimum_commission: Option<f32>,
}

Fields

commission: Option<f32>

The commission amount (in the Account's home currency) charged per unitsTraded of the instrument format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.

units_traded: Option<f32>

The number of units traded that the commission amount is based on. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.

minimum_commission: Option<f32>

The minimum commission amount (in the Account's home currency) that is charged when an Order is filled for this instrument. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.

Methods

impl InstrumentCommission[src]

pub fn new() -> InstrumentCommission[src]

pub fn with_commission(self, x: f32) -> Self[src]

The commission amount (in the Account's home currency) charged per unitsTraded of the instrument format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.

  • param f32
  • return InstrumentCommission

pub fn with_units_traded(self, x: f32) -> Self[src]

The number of units traded that the commission amount is based on. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.

  • param f32
  • return InstrumentCommission

pub fn with_minimum_commission(self, x: f32) -> Self[src]

The minimum commission amount (in the Account's home currency) that is charged when an Order is filled for this instrument. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.

  • param f32
  • return InstrumentCommission

Trait Implementations

impl Debug for InstrumentCommission[src]

impl Serialize for InstrumentCommission[src]

impl<'de> Deserialize<'de> for InstrumentCommission[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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