[][src]Struct quantaxis_rs::market_preset::CodePreset

pub struct CodePreset {
    pub name: String,
    pub unit_table: i32,
    pub price_tick: f64,
    pub buy_frozen_coeff: f64,
    pub sell_frozen_coeff: f64,
    pub exchange: String,
    pub commission_coeff_peramount: f64,
    pub commission_coeff_pervol: f64,
    pub commission_coeff_today_peramount: f64,
    pub commission_coeff_today_pervol: f64,
}

Fields

name: Stringunit_table: i32price_tick: f64buy_frozen_coeff: f64sell_frozen_coeff: f64exchange: Stringcommission_coeff_peramount: f64commission_coeff_pervol: f64commission_coeff_today_peramount: f64commission_coeff_today_pervol: f64

Implementations

impl CodePreset[src]

pub fn calc_marketvalue(&mut self, price: f64, volume: f64) -> f64[src]

pub fn calc_frozenmoney(&mut self, price: f64, volume: f64) -> f64[src]

pub fn calc_commission(&mut self, price: f64, volume: f64) -> f64[src]

pub fn calc_tax(&mut self, price: f64, volume: f64, towards: i32) -> f64[src]

pub fn calc_commission_today(&mut self, price: f64, volume: f64) -> f64[src]

pub fn calc_coeff(&mut self) -> f64[src]

pub fn print(&mut self)[src]

Trait Implementations

impl Clone for CodePreset[src]

impl Debug for CodePreset[src]

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

impl Serialize for CodePreset[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,