Expose account executions with original order, role and fill economics
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user