Add persistent limit orders and cancel semantics

This commit is contained in:
boris
2026-04-23 03:13:26 -07:00
parent 8aae4941a5
commit 14326c0847
4 changed files with 1020 additions and 116 deletions

View File

@@ -89,6 +89,12 @@ pub enum OrderIntent {
quantity: i32,
reason: String,
},
LimitShares {
symbol: String,
quantity: i32,
limit_price: f64,
reason: String,
},
Lots {
symbol: String,
lots: i32,
@@ -114,6 +120,17 @@ pub enum OrderIntent {
target_percent: f64,
reason: String,
},
CancelOrder {
order_id: u64,
reason: String,
},
CancelSymbol {
symbol: String,
reason: String,
},
CancelAll {
reason: String,
},
}
#[derive(Debug, Clone)]