Advertisement
Guest User

Err1

a guest
Sep 4th, 2021
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.78 KB | None | 0 0
  1.         if (float(row['free']) > 0 or float(row['locked']) > 0) and row['asset'] not in ('NFT'):
  2.  
  3.             for crypto in ('USDT', 'BUSD'):
  4.                 try:
  5.                     convertionRatio = client.get_ticker(symbol=(row['asset'] + crypto))['lastPrice']
  6.                     if(float(convertionRatio) *  float(row['free']) > 9.9):
  7.                         Check_Tree.insert(parent='', index='end', text='',
  8.                                           values=(row['asset'], row['free'], float(row['free']) * float(convertionRatio)))
  9.                     sum += float(convertionRatio) * float(row['free'])
  10.                     break
  11.                 except Exception as e:
  12.                     print(row['asset'] + crypto + "ERROR CAUGHT")
  13.                     continue
  14.         print(sum)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement