Expire GTD orders before matching, reads and recovery

This commit is contained in:
2026-12-03 04:05:29 +08:00
parent 3bff1c0bc3
commit d43c958ff2
10 changed files with 220 additions and 19 deletions
+3 -1
View File
@@ -40,7 +40,8 @@ pub(crate) enum Command {
price: i64,
qty: i64,
#[serde(default)]
tif: TimeInForce,
tif: Option<TimeInForce>,
expiration: Option<i64>,
#[serde(default)]
post_only: bool,
},
@@ -72,6 +73,7 @@ pub(crate) enum Command {
pub(crate) enum TimeInForce {
#[default]
Gtc,
Gtd,
Ioc,
Fak,
Fok,