diff --git a/common/symbol_router.py b/common/symbol_router.py index 044f64c..21c1de7 100644 --- a/common/symbol_router.py +++ b/common/symbol_router.py @@ -1,5 +1,4 @@ -"""Function that routes symbols to the correct API provider. -""" +"""Function that routes symbols to the correct API provider.""" import datetime import logging diff --git a/dev-reqs.txt b/dev-reqs.txt index ecf7f5e..2ea75e4 100644 --- a/dev-reqs.txt +++ b/dev-reqs.txt @@ -9,3 +9,4 @@ types-cachetools==5.3.0.6 types-pytz==2023.3.1.1 ruff==0.15.2 pytest==9.0.2 +pytest-asyncio==0.25.3 diff --git a/discord/D_info.py b/discord/D_info.py index 1508136..5e9a2ee 100644 --- a/discord/D_info.py +++ b/discord/D_info.py @@ -1,5 +1,4 @@ -"""Functions and Info specific to the discord Bot -""" +"""Functions and Info specific to the discord Bot""" import re diff --git a/discord/bot.py b/discord/bot.py index 3054400..400ea58 100644 --- a/discord/bot.py +++ b/discord/bot.py @@ -42,7 +42,7 @@ async def status(ctx: commands): message = "" try: message = "Contact MisterBiggs#0465 if you need help.\n" - message += s.status(f"Bot recieved your message in: {bot.latency*10:.4f} seconds") + "\n" + message += s.status(f"Bot recieved your message in: {bot.latency * 10:.4f} seconds") + "\n" except Exception as ex: logging.critical(ex) @@ -217,9 +217,7 @@ async def handle_options(message, symbols): embed = nextcord.Embed(title=options_data["Option Symbol"], description=options_data["Underlying"], color=0x3498DB) # Key details - details = ( - f"Expiration: {options_data['Expiration']}\n" f"Side: {options_data['side']}\n" f"Strike: {options_data['strike']}" - ) + details = f"Expiration: {options_data['Expiration']}\nSide: {options_data['side']}\nStrike: {options_data['strike']}" embed.add_field(name="Details", value=details, inline=False) # Pricing info @@ -232,7 +230,7 @@ async def handle_options(message, symbols): embed.add_field(name="Pricing", value=pricing_info, inline=False) # Volume and open interest - volume_info = f"Open Interest: {options_data['Open Interest']}\n" f"Volume: {options_data['Volume']}" + volume_info = f"Open Interest: {options_data['Open Interest']}\nVolume: {options_data['Volume']}" embed.add_field(name="Activity", value=volume_info, inline=False) # Greeks diff --git a/telegram/T_info.py b/telegram/T_info.py index b157aaa..afc81be 100644 --- a/telegram/T_info.py +++ b/telegram/T_info.py @@ -1,5 +1,4 @@ -"""Functions and Info specific to the Telegram Bot -""" +"""Functions and Info specific to the Telegram Bot""" import re diff --git a/telegram/bot.py b/telegram/bot.py index 9f23e49..62fae60 100644 --- a/telegram/bot.py +++ b/telegram/bot.py @@ -232,7 +232,7 @@ def generate_options_reply(options_data: dict): message_text += pricing_info # Volume and open interest - volume_info = f"*Open Interest:* `{options_data['Open Interest']}`\n" f"*Volume:* `{options_data['Volume']}`\n\n" + volume_info = f"*Open Interest:* `{options_data['Open Interest']}`\n*Volume:* `{options_data['Volume']}`\n\n" message_text += volume_info # Greeks