guo-yu / btc

a command-line bitcoin price board for geeks
MIT License
389 stars 73 forks source link

Enhancement: option to also show USD converted price for Chinese exchanges #4

Open unbracketed opened 10 years ago

unbracketed commented 10 years ago

Similar to what http://bitcoinwisdom.com/ is now doing on nav bar for BTCChina

guo-yu commented 10 years ago

good idea :+1:

grantbacon commented 10 years ago

How could this be done without using a currency conversion API? (which I don't believe a public one exists...)

Some APIs exist that require API Keys but are free to use... that would require some type of configuration information for each user of btc though, yet no such configuration options exist, and would detract from the simplicity of the application as it is now.

Static exchange rates could be stored and updated periodically, but this wouldn't be a very reliable or consistent implementation as market rates change so often...

This would be neat and useful. I'd like to help make it happen. I'm unsure what an appropriate implementation would be however. Any ideas?

guo-yu commented 10 years ago

@grantbacon: I've found some currency conversion APIs here: http://stackoverflow.com/questions/3139879/how-do-i-get-currency-exchange-rates-via-an-api-such-as-google-finance

Google finance API may be helpful: https://www.google.com/finance/converter?a=16.6700&from=GBP&to=USD&meta=ei%3DvXXJUuinH4KxkgXRxAE