Skip to content

Commit

Permalink
revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
r0fls committed Jul 23, 2024
1 parent 68d41f4 commit dde134a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions brokers/tastytrade_broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def is_order_filled(order_response):

return True

async def _place_future_option_order(self, symbol, quantity, order_type, price=None, dry_run=False):
async def _place_future_option_order(self, symbol, quantity, order_type, price=None):
ticker = extract_underlying_symbol(symbol)
logger.info('Placing future option order', extra={'symbol': symbol, 'quantity': quantity, 'order_type': order_type, 'price': price})
option = FutureOption.get_future_option(self.session, symbol)
Expand All @@ -165,7 +165,7 @@ async def _place_future_option_order(self, symbol, quantity, order_type, price=N
price=Decimal(price),
price_effect=effect
)
response = account.place_order(self.session, order, dry_run=dry_run)
response = account.place_order(self.session, order, dry_run=False)
return response

async def _place_option_order(self, symbol, quantity, order_type, price=None):
Expand All @@ -191,7 +191,7 @@ async def _place_option_order(self, symbol, quantity, order_type, price=None):
price=Decimal(price),
price_effect=effect
)
response = account.place_order(self.session, order, dry_run=dry_run)
response = account.place_order(self.session, order, dry_run=False)
return response

async def _place_order(self, symbol, quantity, order_type, price=None):
Expand Down

0 comments on commit dde134a

Please sign in to comment.