Programming a Crypto Wallet Dashboard for Binance Smart Chain Holdings | by Justin Spitzer | Feb, 2022

Using Covalent’s API to generate an up-to-date dashboard

Justin Spitzer
Photo by Austin Distel on Unsplash
List of Covalent supported blockchains. Photo from

Getting Pricing Data

# Update wallet prices
for i in wallet:
for j in current_prices:
if j['Name'] == i['Name']:
i['Price'] = j['Price']
# Generate filter to remove '0' prices
zerodrop = []
for i in current_prices:
if float(i['Price']) == 0:
if i['Name'] != 'BNB':
# Update wallet list of dicts with net cost value
for i in wallet:
for j in netcost:
if j['Name'] == i['Name']:
i['Net Cost'] = j['Net Cost']

Leave a Comment