spareleg / bitcoin-ticker

Uses SPI TFT display ILI9341 and NodeMCU to display current Bitcoin price, candle chart and time. Binance REST API + Binance Web Sockets API
21 stars 8 forks source link

Convert current price to Euro. #2

Open PvDam opened 4 years ago

PvDam commented 4 years ago

Really like your Crypto Ticker. Right now only a handful of margin trading pairs are available through the Binance API, against USD or USDT. None of them to the Euro. Would it be possible to somehow convert the current price in the lower left of the screen to Euro's?

spareleg commented 4 years ago

Hi. Switching the binance API to EUR pairs won't work well because of the low volume of these pairs. For the accurate info it needs reliable API for USD/EUR price, making a call to one in the init() and storing ratio, then updating it over time (once in an hour would be enough). Unfortunately I don't have spare time for this improvement right now, but if you or someone makes a pull-request I can merge and test.