alpaca-sdk 0.0.0

Unofficial Rust SDK for the Alpaca trading, market data, and broker APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Enums shared by more than one API surface.
//!
//! Generated by `scripts/gen_enums.py` from `alpaca/trading/enums.py`
//! at alpaca-py revision `cc4cb3b`. Do not edit by hand — hand-written
//! `impl` blocks belong in the sibling `enums_ext.rs`.

use crate::types::wire::wire_enum;
wire_enum! {
    /// Represents the contract type of options
    pub enum ContractType {
        /// `call`
        Call => "call",
        /// `put`
        Put => "put",
    }
}