You are viewing a single comment's thread from:

RE: Quick'n dirty python script for fetching your account balance

in #steem8 years ago (edited)

Very nice. I noticed coinm.get_price() can be called with True as the second input, and the output is converted to dollars. Though it still is hardcoded to report "euros" in print_balance.

My fellow Americans, just change line 43 to:
ratio_steem_fiat = coinm.get_price('STEEM',True)

If you're running it in linux, and don't feel like manually finding and replacing the 'euros', run this command in a terminal in the folder with the script:

sed -i -- 's/euros/Dollars/g' steem_balance.py