API endpoint changed again, now includes indices and yields more data

(old stopped working)
This commit is contained in:
cn 2017-07-21 19:08:38 +02:00
parent 6ad3980e71
commit b482102410
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ script = File.basename($0)
$stderr = IO.new(2, "w")
def uri(currency)
"https://apiv2.bitcoinaverage.com/ticker/#{currency}"
"https://apiv2.bitcoinaverage.com/indices/global/ticker/BTC#{currency}"
end
def echo_price(currency, &get_data)