Your SBD and STEEM value in USD

in utopian-io •  7 years ago  (edited)

As you know, SBD and STEEM prices are very volatile in recent days. With Ömer Atagün's suggestion, I made a tool which calculates your Steemit account's total SBD and STEEM value in USD according to BitTrex prices. (via CoinMarketCap without API)

It create result html file like this demo
GitHub: https://github.com/murattatar/SbdSteemUSD

su.png

SBDs and STEEMs total value in USD

You can easily to see your SBDs and STEEMs total value in USD

Setup

Using

  • Open SbdSteemUsd.py with python IDE
  • Press F5
  • Input your Steemit user name
  • ta ta.. ;)

Finding "SBDs" and "STEEMs" that your account has

## Steemit Wallet #########################################

url = "https://steemit.com/@"+username+"/transfers"
bring = requests.get(url)
arrival = bring.content

sbd1 = Between('STEEM DOLLARS','UserWallet',arrival)
sbd = Between('-->$','(html comment removed: ',sbd1)

steem1 = Between('can be converted to','UserWallet',arrival);
steem = Between(')',' STEEM<!',steem1)

sbd = float(sbd)
steem = float(steem)

print steem
print sbd


Finding "SBDs" and "STEEMs" price on BitTrex

## BitTrex SBD / Steem #########################################

url = "https://coinmarketcap.com/currencies/steem/#markets"
bring = requests.get(url)
arrival = bring.content

bitSteem1 = Between('Bittrex','Recently',arrival);
bitSteem2 = Between('price','',bitSteem1);
bitSteem = Between('$','',bitSteem2)

url = "https://coinmarketcap.com/currencies/steem-dollars/#markets"
bring = requests.get(url)
arrival = bring.content

bitSbd1 = Between('Bittrex','Recently',arrival);
bitSbd2 = Between('price','',bitSbd1)
bitSbd = Between('$','',bitSbd2)

bitSbd = float(bitSbd)
bitSteem = float(bitSteem)

print bitSbd
print bitSteem


If you want ,you can play with Circle:

size = 120
fcnum = 180

or Sliding:

sli = unicode(str(60+2))
bsli_x = unicode(str(size / 1.2))
bsli_y = unicode(str(size / 4.0))

Actually, a browser plug-in would be nice;) But unfortunately, I do not have time to deal with the server right now. Maybe someone else can do it, inspired by this. Because;

It's open source!

license.png



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thanks for sharing.
Python 2.7 is slowly leaving us.
I hope your code works with +3.6 version
Will try it when I get a moment

I did not test it with 3.6+
If you tell me what it is result, I would be grateful.

Haaaaarikasin :) bugunde yarinda ihtiyac duyulacak bir program. Ortaya cikan is baya basarili olmus. Aksama
Bi kurcuklayayim :)

Teşekkürler.. Şimdilik yeni makina/sunucu işlerine bulaşmak istemediğim için böyle dolambaçlı. Aslında direk steem blok zincirinden bilgi alan bi Chome eklentisi olaydı daha güzel olurdu ;)

Bu arada kendi söylediğim böyle dolambaçlı sözününe de kısmen itiraz edeyim :)
Optimize işini bazen fazla abartıyoruz. Zira bazen Zamanı iyi kullanmak, 2 saniye daha hızlı çalışacak koddan ya da az daha şık görünecek bir butondan, daha önemli olabiliyor. Bu daha iyi versiyonu için işler 2 hafta/ay uzuyor. Oysa çoğu zaman fazladan 2GB RAM + 2 GB SSD maliyeti, Zaman maliyetinden çok çok düşük oluyor.

Projelerin hitap edecegi kitle ile market analizi bu konuda devreye giriyor aslinda. Projenin programlanmaya baslamadan once yatirim degeri ve potansiyeli hesaplanirsa, mesela senin yaptigin api kullanarak fiyat ortaya koyan kisa bir kodlama gibi o zaman bu projenin ustunde gecirecegin 10 hafta sadece zarardir. Gorsel gelistirme veya add on olarakta kodlayabilirsin ancak programin gidecegi noktanin siniri var.
Optimize onemlidir evet ama her proje icin degil. Birseyleri guzel yapalim diye ugrasirken guzel yapman gereken projeye zaman ayiramazsan dunyanin en yetenekli programcisida olsan bir ise yaramaz. Mental tatminiyet muhim ama para kazandirmiyor :) gerek analizlerin gerek olaylara bakis acin enfes.

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Thank you so much!

Hey @murattatar I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Come and learn how AI processes images :)

I have a bot that working with image recognition.
However, I am already digging sometimes, if I have a time ;)