Match immediate buys against a cash budget and price cap

This commit is contained in:
2026-12-03 04:27:01 +08:00
parent c27bb60fd2
commit 763b46f43e
11 changed files with 244 additions and 9 deletions
+9
View File
@@ -46,6 +46,15 @@ pub(crate) enum Command {
#[serde(default)]
post_only: bool,
},
#[serde(rename = "market_buy")]
MarketBuy {
market: String,
outcome: String,
account: String,
amount_cents: i64,
max_price: i64,
tif: Option<TimeInForce>,
},
Cancel {
account: String,
order: i64,