From 859f7a5560a6c5eee76b3a4c8f4d1a6005f9fbcb Mon Sep 17 00:00:00 2001 From: m5l14i11 Date: Tue, 10 Sep 2024 15:06:40 +0300 Subject: [PATCH] upd --- sor/_router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sor/_router.py b/sor/_router.py index fdfd89c6..8d468d79 100644 --- a/sor/_router.py +++ b/sor/_router.py @@ -117,7 +117,7 @@ async def open_position(self, command: OpenPosition): pending_order = position.entry_order() entry_price = pending_order.price - size = 2 * pending_order.size + size = pending_order.size num_orders = min( max(1, int(size / symbol.min_position_size)), self.config["max_order_slice"]