[][src]Struct qifi_rs::account::Position

pub struct Position {
    pub user_id: String,
    pub exchange_id: String,
    pub instrument_id: String,
    pub volume_long_today: f64,
    pub volume_long_his: f64,
    pub volume_long: f64,
    pub volume_long_frozen_today: f64,
    pub volume_long_frozen_his: f64,
    pub volume_long_frozen: f64,
    pub volume_short_today: f64,
    pub volume_short_his: f64,
    pub volume_short: f64,
    pub volume_short_frozen_today: f64,
    pub volume_short_frozen_his: f64,
    pub volume_short_frozen: f64,
    pub volume_long_yd: f64,
    pub volume_short_yd: f64,
    pub pos_long_his: f64,
    pub pos_long_today: f64,
    pub pos_short_his: f64,
    pub pos_short_today: f64,
    pub open_price_long: f64,
    pub open_price_short: f64,
    pub open_cost_long: f64,
    pub open_cost_short: f64,
    pub position_price_long: f64,
    pub position_price_short: f64,
    pub position_cost_long: f64,
    pub position_cost_short: f64,
    pub last_price: f64,
    pub float_profit_long: f64,
    pub float_profit_short: f64,
    pub float_profit: f64,
    pub position_profit_long: f64,
    pub position_profit_short: f64,
    pub position_profit: f64,
    pub margin_long: f64,
    pub margin_short: f64,
    pub margin: f64,
}

Fields

user_id: Stringexchange_id: Stringinstrument_id: Stringvolume_long_today: f64volume_long_his: f64volume_long: f64volume_long_frozen_today: f64volume_long_frozen_his: f64volume_long_frozen: f64volume_short_today: f64volume_short_his: f64volume_short: f64volume_short_frozen_today: f64volume_short_frozen_his: f64volume_short_frozen: f64volume_long_yd: f64volume_short_yd: f64pos_long_his: f64pos_long_today: f64pos_short_his: f64pos_short_today: f64open_price_long: f64open_price_short: f64open_cost_long: f64open_cost_short: f64position_price_long: f64position_price_short: f64position_cost_long: f64position_cost_short: f64last_price: f64float_profit_long: f64float_profit_short: f64float_profit: f64position_profit_long: f64position_profit_short: f64position_profit: f64margin_long: f64margin_short: f64margin: f64

Trait Implementations

impl Clone for Position[src]

impl Debug for Position[src]

impl Default for Position[src]

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

impl Serialize for Position[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> Same<T> for T

type Output = T

Should always be Self

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