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"],