Expose account executions with original order, role and fill economics

This commit is contained in:
2026-12-03 04:12:22 +08:00
parent 5cbbdcbe64
commit 66f42f7b7f
11 changed files with 221 additions and 12 deletions
+11 -1
View File
@@ -1,4 +1,5 @@
mod account_orders;
mod account_trades;
mod assets;
mod catalog;
mod expiry;
@@ -36,7 +37,16 @@ impl Exchange {
pub fn execute(&mut self, payload: Value) -> Result<Value> {
if matches!(
payload["op"].as_str(),
Some("assets" | "catalog" | "history" | "quote" | "book" | "open_orders" | "positions")
Some(
"assets"
| "catalog"
| "history"
| "quote"
| "book"
| "open_orders"
| "positions"
| "trades"
)
) {
let tx = expiry::transaction(&self.db, TransactionBehavior::Deferred)?;
let mut request = payload;