Skip to content

Commit

Permalink
🚨
Browse files Browse the repository at this point in the history
  • Loading branch information
mraniki committed Nov 1, 2024
1 parent 134afd0 commit 319f522
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cefi/handler/ibkr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down Expand Up @@ -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"],
Expand Down

0 comments on commit 319f522

Please sign in to comment.