Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (float(row['free']) > 0 or float(row['locked']) > 0) and row['asset'] not in ('NFT'):
- for crypto in ('USDT', 'BUSD'):
- try:
- convertionRatio = client.get_ticker(symbol=(row['asset'] + crypto))['lastPrice']
- if(float(convertionRatio) * float(row['free']) > 9.9):
- Check_Tree.insert(parent='', index='end', text='',
- values=(row['asset'], row['free'], float(row['free']) * float(convertionRatio)))
- sum += float(convertionRatio) * float(row['free'])
- break
- except Exception as e:
- print(row['asset'] + crypto + "ERROR CAUGHT")
- continue
- print(sum)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement