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
use serde_repr::*;

/// Order side used when placing trades.
///
/// This maps to the numeric values expected by Fyers.
#[derive(Serialize_repr, Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i8)]
pub enum Side {
    /// Buy -> 1
    Buy = 1,

    /// Sell -> -1
    Sell = -1,
}