Updated examples, dependencies and some cleanup.

This commit is contained in:
Erik C. Thauvin 2021-05-28 11:04:15 -07:00
parent 59751a574c
commit b547a4d07d
5 changed files with 23 additions and 23 deletions

View file

@ -9,16 +9,16 @@ fun main(@Suppress("UNUSED_PARAMETER") args: Array<String>) {
val price = spotPrice("BTC")
println("The current Bitcoin price is ${price.toCurrency()}")
// Get current Bitcoin spot price in Euro.
val euroPrice = spotPrice("BTC", "EUR")
println("The current Bitcoin price is ${euroPrice.toCurrency()}")
println()
// Get current Ethereum spot price in Pound sterling.
val gbpPrice = spotPrice("ETH", "GBP")
println("The current Ehtereum price is ${gbpPrice.toCurrency()}")
// Get current Litecoin spot price in Euro.
val euroPrice = spotPrice("LTC", "EUR")
println("The current Litecoin price is ${euroPrice.toCurrency()}")
println()
// Get current Bitcoin buy price using API.