#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Side {
Unspecified = 0,
Buy = 1,
Sell = 2,
}
impl Side {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "SIDE_UNSPECIFIED",
Self::Buy => "SIDE_BUY",
Self::Sell => "SIDE_SELL",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SIDE_UNSPECIFIED" => Some(Self::Unspecified),
"SIDE_BUY" => Some(Self::Buy),
"SIDE_SELL" => Some(Self::Sell),
_ => None,
}
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AccountTrade {
#[prost(string, tag = "1")]
pub trade_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub symbol: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub price: ::core::option::Option<super::super::super::google::r#type::Decimal>,
#[prost(message, optional, tag = "4")]
pub size: ::core::option::Option<super::super::super::google::r#type::Decimal>,
#[prost(enumeration = "Side", tag = "5")]
pub side: i32,
#[prost(message, optional, tag = "6")]
pub timestamp: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, tag = "7")]
pub order_id: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub account_id: ::prost::alloc::string::String,
}