Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚡ update cex_exchange_plugin.py #1440

Merged
merged 3 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ talkytrend = "2.0.8"
iamlistening = "5.1.7"
findmyorder = "1.9.19"
dxsp = "10.0.2"
cefi = "4.4.15"
cefi = "4.4.16"
myllm = "4.8.1"


Expand Down
2 changes: 1 addition & 1 deletion tt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def loguru_setup():
"discord": settings.thirdparty_lib_loglevel,
"telethon": settings.thirdparty_lib_loglevel,
"web3": settings.thirdparty_lib_loglevel,
"apprise": settings.thirdparty_lib_loglevel,
# "apprise": settings.thirdparty_lib_loglevel,
"urllib3": settings.thirdparty_lib_loglevel,
"asyncz": settings.thirdparty_lib_loglevel,
"rlp": settings.thirdparty_lib_loglevel,
Expand Down
2 changes: 2 additions & 0 deletions tt/plugins/default_plugins/cex_exchange_plugin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from cefi import CexTrader
from findmyorder import FindMyOrder
from loguru import logger

from tt.config import settings
from tt.plugins.plugin_manager import BasePlugin
Expand Down Expand Up @@ -57,6 +58,7 @@ async def handle_message(self, msg):
order = await self.fmo.get_order(msg)
if order and settings.trading_enabled:
trade = await self.exchange.submit_order(order)
logger.debug("trade {}", trade)
if trade:
await send_notification(trade)

Expand Down
1 change: 0 additions & 1 deletion tt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ async def send_notification(msg):
https://github.com/caronc/apprise/wiki

"""

if not settings.apprise_url:
logger.warning("No Apprise URL set")
return
Expand Down
Loading