fix
This commit is contained in:
parent
c19cee123e
commit
255bcb3a25
@ -25,8 +25,14 @@ def run():
|
|||||||
|
|
||||||
for ts in data:
|
for ts in data:
|
||||||
if ts['to']['owner_type'] == 'exchange':
|
if ts['to']['owner_type'] == 'exchange':
|
||||||
from_text = 'unknown wallet'
|
amount = int(ts['amount'])
|
||||||
content = f"🚨大额转入提醒🚨\r\n\r\n {ts['amount']} #{ts['symbol']} ({ts['amount_usd']} USD) 从 {from_text} 转入 #{ts['to']['owner']}"
|
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)
|
print(content)
|
||||||
tg.send_message(settings.chat_id, content)
|
tg.send_message(settings.chat_id, content)
|
||||||
|
|||||||
@ -5,4 +5,4 @@ import signals.ma_arrangement as maa
|
|||||||
# symbols = bn.symbols()
|
# symbols = bn.symbols()
|
||||||
|
|
||||||
# for s in symbols:
|
# for s in symbols:
|
||||||
maa.run('LINKUSDT', '15m')
|
maa.run('LINKUSDT', '1h')
|
||||||
Loading…
Reference in New Issue
Block a user