Skip to content

Commit

Permalink
Made a little fix to locate_stock() method
Browse files Browse the repository at this point in the history
  • Loading branch information
jegauth committed Nov 10, 2023
1 parent 4e3c3e1 commit a535b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tradezeroapi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def locate_stock(self, symbol: str, share_amount: int, debug_info: bool = False)
warnings.warn(f"ERROR! {insufficient_bp}")
return
else:
raise Exception(f'Error: not able to locate symbol element ({symbol=})')
warnings.warn(f"ERROR! Can't locate stock for {symbol.upper()}")

# Return the locate information.
return Data(locate_pps, locate_total, f'Locate available at ${locate_total}')
Expand Down

0 comments on commit a535b1e

Please sign in to comment.