Skip to content

Commit

Permalink
fix spxw
Browse files Browse the repository at this point in the history
  • Loading branch information
AdoNunes committed Apr 30, 2024
1 parent 4fbc113 commit 05cb7a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tradealerter/brokerages/weBull_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def format_order(self, order:dict):
yer, mnt, day = order['orders'][0]['optionExpireDate'].split("-")
otype = order['orders'][0]['optionType'][0].upper()
symbol = f"{order['orders'][0]['symbol']}_{mnt}{day}{yer[2:]}{otype}{order['orders'][0]['optionExercisePrice']}".replace(".00","")
symbol = self.fix_symbol(symbol, "out")
symbol = self.fix_symbol(symbol, "in")
orderStrategyType = order['optionStrategy'].upper()
else:
symbol = order['orders'][0]['symbol']
Expand Down
4 changes: 2 additions & 2 deletions tradealerter/configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

config_path = package_dir + '/config.ini'
if not os.path.exists(config_path):
print("\033[91mWARNING: DiscordAlertsTrader/config.ini not found. \033[0m")
print("\033[91mWARNING: Rename DiscordAlertsTrader/config_example.ini to DiscordAlertsTrader/config.ini. \033[0m")
print("\033[91mWARNING: tradealerter/config.ini not found. \033[0m")
print("\033[91mWARNING: Rename tradealerter/config_example.ini to tradealerter/config.ini. \033[0m")
print("\033[91mWARNING: Reverting to config_example.ini for now (might be necessary for testing). \033[0m")
config_path = package_dir + '/config_example.ini'

Expand Down

0 comments on commit 05cb7a7

Please sign in to comment.