Skip to main content

kind_of

Function kind_of 

Source
pub fn kind_of(contract_type: &str) -> InstrumentKind
Expand description

The kind of an instrument by the contract type of the exchange: a perpetual is a [InstrumentKind::Perpetual], a dated contract a [InstrumentKind::Future].