Skip to content

Commit

Permalink
Merge pull request #1440 from mraniki/dev
Browse files Browse the repository at this point in the history
⚡ update cex_exchange_plugin.py
  • Loading branch information
mraniki authored Apr 8, 2024
2 parents 9dae3cc + 4e99043 commit 748702b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
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

0 comments on commit 748702b

Please sign in to comment.