finance_enums 0.2.2

Standard Financial Enumerations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};

#[derive(
    Copy, Clone, Debug, Deserialize, Display, EnumIter, EnumString, Eq, PartialEq, Serialize,
)]
#[strum(serialize_all = "PascalCase")]
pub enum InstrumentType {
    Spot,    // single instrument
    Option,  // underlying + date
    Forward, // underlying + date
    Future,  // underlying + date
    Right,   // underlying
    Spread,  // left / right legs
    Pair,    // left / right legs
    Basket,  // components
}