pub enum InstrumentType {
STOCK,
ETF,
INDEX,
FUTURES_CONTRACT,
MAIN_CONTRACT,
CONTINUOUS_CONTRACT,
OPTION_CONTRACT,
BOND,
CONVERTIBLE_BOND,
SPREAD,
HEDGE,
}Expand description
合约形态(constant.py:69);与 Asset 正交组合。
Variants§
STOCK
ETF
INDEX
FUTURES_CONTRACT
MAIN_CONTRACT
CONTINUOUS_CONTRACT
OPTION_CONTRACT
BOND
CONVERTIBLE_BOND
SPREAD
HEDGE
Implementations§
Trait Implementations§
Source§impl Clone for InstrumentType
impl Clone for InstrumentType
impl Copy for InstrumentType
Source§impl Debug for InstrumentType
impl Debug for InstrumentType
Source§impl Display for InstrumentType
impl Display for InstrumentType
impl Eq for InstrumentType
Source§impl FromStr for InstrumentType
impl FromStr for InstrumentType
Source§impl Hash for InstrumentType
impl Hash for InstrumentType
Source§impl PartialEq for InstrumentType
impl PartialEq for InstrumentType
impl StructuralPartialEq for InstrumentType
Auto Trait Implementations§
impl Freeze for InstrumentType
impl RefUnwindSafe for InstrumentType
impl Send for InstrumentType
impl Sync for InstrumentType
impl Unpin for InstrumentType
impl UnsafeUnpin for InstrumentType
impl UnwindSafe for InstrumentType
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