This commit is contained in:
aazhou 2023-06-22 09:57:33 +08:00
parent c19cee123e
commit 255bcb3a25
2 changed files with 9 additions and 3 deletions

View File

@ -25,8 +25,14 @@ def run():
for ts in data:
if ts['to']['owner_type'] == 'exchange':
from_text = 'unknown wallet'
content = f"🚨大额转入提醒🚨\r\n\r\n {ts['amount']} #{ts['symbol']} ({ts['amount_usd']} USD) 从 {from_text} 转入 #{ts['to']['owner']}"
amount = int(ts['amount'])
amount_usd = int(ts['amount_usd'])
amount_format = f'{int(amount_usd):,d}'
amount_usd_format = f'{int(amount_usd):,d}'
content = f"🚨大额转入提醒🚨\r\n\r\n {amount_format} #{ts['symbol']} ({amount_usd_format} USD) 从 {ts['from']['owner']} 转入 #{ts['to']['owner']}"
print(content)
tg.send_message(settings.chat_id, content)

View File

@ -5,4 +5,4 @@ import signals.ma_arrangement as maa
# symbols = bn.symbols()
# for s in symbols:
maa.run('LINKUSDT', '15m')
maa.run('LINKUSDT', '1h')