Skip to content

Commit

Permalink
fix method
Browse files Browse the repository at this point in the history
  • Loading branch information
r0fls committed Nov 26, 2024
1 parent 44a227e commit 022ffdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brokers/tastytrade_broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def process_symbol(symbol):
return symbol.replace(' ', '') # Remove spaces from the symbol

@staticmethod
def is_order_filled(order_response):
def check_is_order_filled_from_response(order_response):
if order_response.order.status == OrderStatus.FILLED:
return True

Expand Down Expand Up @@ -311,7 +311,7 @@ async def _place_order(self, symbol, quantity, side, price=None, order_type='lim
response), 'symbol': symbol, 'quantity': quantity, 'side': side, 'price': price, 'order_type': order_type})
return {'filled_price': None}
else:
if self.is_order_filled(response):
if self.check_is_order_filled_from_response(response):
logger.info('Order filled', extra={'response': str(
response), 'symbol': symbol, 'quantity': quantity, 'side': side, 'price': price, 'order_type': order_type})
else:
Expand Down

0 comments on commit 022ffdb

Please sign in to comment.