From 319f5228d4ca79bc16108a99d8e0f8c9245df353 Mon Sep 17 00:00:00 2001 From: mraniki <8766259+mraniki@users.noreply.github.com> Date: Fri, 1 Nov 2024 08:43:57 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cefi/handler/ibkr.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cefi/handler/ibkr.py b/cefi/handler/ibkr.py index 04416ff..0bd2cc4 100644 --- a/cefi/handler/ibkr.py +++ b/cefi/handler/ibkr.py @@ -188,7 +188,7 @@ async def execute_order(self, order_params): order.orderType = order_params["order_type"] or "MKT" order.totalQuantity = amount trade = self.client.placeOrder(contract, order) - return await self.get_trade_confirmation(trade, instrument, action) + return await self.get_trade_confirmation(trade, instrument, action) return f"Error executing {self.name}" @@ -219,8 +219,7 @@ async def search_contract(self, instrument): return Contract( secType=asset["type"], symbol=asset["id"], - - lastTradeDateOrContractMonth=asset["lastTradeDateOrContractMonth"], + lastTradeDateOrContractMonth=asset["lastTradeDateOrContractMonth"], strike=asset["strike"], right=asset["right"], multiplier=asset["multiplier"],