forked from kodorvan/stcs
fix app/telegram/handlers/handlers.py, fix app/telegram/functions/functions.py || change two buttons "Начать торговлю" || fix text registration message, fix text profile || delete app/services/Bybit/config.py || delete comments
This commit is contained in:
@@ -16,23 +16,7 @@ async def get_balance(tg_id, message):
|
||||
try:
|
||||
balance = client.get_wallet_balance(accountType='UNIFIED', coin='USDT')['result']['list'][0]['coin'][0]['walletBalance']
|
||||
|
||||
print(f'''
|
||||
=====================
|
||||
=====BALANCE=========
|
||||
======USDT=============
|
||||
===================
|
||||
=================
|
||||
|
||||
{balance}
|
||||
|
||||
===============
|
||||
===============
|
||||
=============
|
||||
===============
|
||||
==============
|
||||
''')
|
||||
|
||||
return balance
|
||||
except Exception as e:
|
||||
await message.answer('Баланс не был получен')
|
||||
await message.answer('Баланс не был получен, подключите платформу')
|
||||
return 0
|
Reference in New Issue
Block a user