pub struct TradeParam {
pub contract_id: String,
pub spec_buy_rate: f64,
pub spec_buy: f64,
pub hedge_buy_rate: f64,
pub hedge_buy: f64,
pub rise_limit_rate: f64,
pub rise_limit: f64,
pub fall_limit: f64,
pub trade_date: String,
}Expand description
Trade parameter data.
Fields§
§contract_id: StringContract ID.
spec_buy_rate: f64Speculative buy margin rate.
spec_buy: f64Speculative buy margin.
hedge_buy_rate: f64Hedge buy margin rate.
hedge_buy: f64Hedge buy margin.
rise_limit_rate: f64Rise limit rate.
rise_limit: f64Rise limit price.
fall_limit: f64Fall limit price.
trade_date: StringTrade date.
Trait Implementations§
Source§impl Clone for TradeParam
impl Clone for TradeParam
Source§fn clone(&self) -> TradeParam
fn clone(&self) -> TradeParam
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 TradeParam
impl Debug for TradeParam
Source§impl<'de> Deserialize<'de> for TradeParam
impl<'de> Deserialize<'de> for TradeParam
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 TradeParam
impl RefUnwindSafe for TradeParam
impl Send for TradeParam
impl Sync for TradeParam
impl Unpin for TradeParam
impl UnwindSafe for TradeParam
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