fyers 0.2.1

Idiomatic async Rust client for the Fyers trading API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::Serialize;

/// Order validity specifying how long the order remains active.
#[derive(Debug, Serialize, Clone, Copy, PartialEq, Eq, Hash)]
#[serde(rename_all = "UPPERCASE")]
pub enum Validity {
    /// Immediate or Cancel
    ///
    /// The order is executed immediately. Any remaining unfilled quantity
    /// is cancelled.
    Ioc,

    /// Valid for the entire trading day
    Day,
}