[−][src]Struct quantaxis_rs::qaposition::QA_Postions
Fields
preset: CodePreset
code: String
instrument_id: String
user_id: String
username: String
position_id: String
frozen: f64
name: String
spms_id: String
oms_id: String
market_type: String
exchange_id: String
lastupdatetime: String
volume_long_today: f64
volume_long_his: f64
volume_short_today: f64
volume_short_his: f64
volume_long_frozen_today: f64
volume_long_frozen_his: f64
volume_short_frozen_today: f64
volume_short_frozen_his: f64
margin_long: f64
margin_short: f64
position_price_long: f64
position_cost_long: f64
position_price_short: f64
position_cost_short: f64
open_price_long: f64
open_cost_long: f64
open_price_short: f64
open_cost_short: f64
lastest_price: f64
lastest_datetime: String
Implementations
impl QA_Postions
[src]
pub fn new(
code: String,
user_id: String,
username: String,
account_cookie: String,
portfolio_cookie: String
) -> Self
[src]
code: String,
user_id: String,
username: String,
account_cookie: String,
portfolio_cookie: String
) -> Self
pub fn new_with_inithold(
code: String,
user_id: String,
username: String,
account_cookie: String,
portfolio_cookie: String,
volume_long_today: f64,
volume_long_his: f64,
volume_short_today: f64,
volume_short_his: f64,
open_price_long: f64,
open_price_short: f64
) -> Self
[src]
code: String,
user_id: String,
username: String,
account_cookie: String,
portfolio_cookie: String,
volume_long_today: f64,
volume_long_his: f64,
volume_short_today: f64,
volume_short_his: f64,
open_price_long: f64,
open_price_short: f64
) -> Self
pub fn get_price_tick(&mut self) -> f64
[src]
pub fn margin(&mut self) -> f64
[src]
pub fn settle(&mut self)
[src]
pub async fn settle_async(&mut self)
[src]
pub fn on_price_change(&mut self, price: f64, datetime: String)
[src]
pub fn float_profit_long(&mut self) -> f64
[src]
pub fn float_profit_short(&mut self) -> f64
[src]
pub fn float_profit(&mut self) -> f64
[src]
pub fn get_qifi_position(&mut self) -> Position
[src]
pub fn position_profit_long(&mut self) -> f64
[src]
pub fn position_profit_short(&mut self) -> f64
[src]
pub fn position_profit(&mut self) -> f64
[src]
pub fn volume_long(&mut self) -> f64
[src]
pub fn volume_short(&mut self) -> f64
[src]
pub fn volume_long_frozen(&mut self) -> f64
[src]
pub fn volume_short_frozen(&mut self) -> f64
[src]
pub fn update_pos(
&mut self,
price: f64,
amount: f64,
towards: i32
) -> (f64, f64)
[src]
&mut self,
price: f64,
amount: f64,
towards: i32
) -> (f64, f64)
Trait Implementations
impl Clone for QA_Postions
[src]
pub fn clone(&self) -> QA_Postions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for QA_Postions
[src]
impl<'de> Deserialize<'de> for QA_Postions
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for QA_Postions
[src]
Auto Trait Implementations
impl RefUnwindSafe for QA_Postions
[src]
impl Send for QA_Postions
[src]
impl Sync for QA_Postions
[src]
impl Unpin for QA_Postions
[src]
impl UnwindSafe for QA_Postions
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,