Expose open order runtime fields

This commit is contained in:
boris
2026-04-23 19:47:56 -07:00
parent f4030f2607
commit c12a883d28
6 changed files with 132 additions and 5 deletions

View File

@@ -47,6 +47,18 @@ pub enum OrderStatus {
Rejected,
}
impl OrderStatus {
pub fn as_str(&self) -> &'static str {
match self {
Self::Pending => "pending",
Self::Filled => "filled",
Self::PartiallyFilled => "partially_filled",
Self::Canceled => "canceled",
Self::Rejected => "rejected",
}
}
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct OrderEvent {
#[serde(with = "date_format")]