From 881defa081e9b151e3d0b8a861132dc8dbdfa8de Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Wed, 17 Feb 2021 16:32:08 +0000 Subject: [PATCH] enriched orderform in EnforceMarket --- rustybot/src/strategy.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rustybot/src/strategy.rs b/rustybot/src/strategy.rs index 2503ba0..1052c57 100644 --- a/rustybot/src/strategy.rs +++ b/rustybot/src/strategy.rs @@ -576,7 +576,9 @@ impl OrderStrategy for MarketEnforce { OrderKind::Market, *order.order_form().platform(), order.order_form().amount(), - ), + ) + .with_leverage(order.order_form().leverage()) + .with_metadata(order.order_form().metadata().clone()), }) }