pub struct QATradePair {Show 14 fields
pub open_datetime: i64,
pub close_datetime: i64,
pub opendate: String,
pub closedate: String,
pub if_buyopen: bool,
pub code: String,
pub amount: f64,
pub openprice: f64,
pub closeprice: f64,
pub open_trade_id: String,
pub close_trade_id: String,
pub pnl_ratio: f64,
pub pnl_money: f64,
pub hold_gap: f64,
}
Expand description
performace is a simple way for analaysis single pair of every trades
Fields§
§open_datetime: i64
§close_datetime: i64
§opendate: String
§closedate: String
§if_buyopen: bool
§code: String
§amount: f64
§openprice: f64
§closeprice: f64
§open_trade_id: String
§close_trade_id: String
§pnl_ratio: f64
§pnl_money: f64
§hold_gap: f64
Trait Implementations§
Source§impl Clone for QATradePair
impl Clone for QATradePair
Source§fn clone(&self) -> QATradePair
fn clone(&self) -> QATradePair
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for QATradePair
impl Debug for QATradePair
Source§impl<'de> Deserialize<'de> for QATradePair
impl<'de> Deserialize<'de> for QATradePair
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for QATradePair
impl RefUnwindSafe for QATradePair
impl Send for QATradePair
impl Sync for QATradePair
impl Unpin for QATradePair
impl UnwindSafe for QATradePair
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more