mirror of
https://github.com/cmur2/munin-bitcoin.git
synced 2025-01-24 03:27:07 +01:00
API endpoint changed again, now includes indices and yields more data
(old stopped working)
This commit is contained in:
parent
6ad3980e71
commit
b482102410
2
bitcoin_
2
bitcoin_
@ -26,7 +26,7 @@ script = File.basename($0)
|
|||||||
$stderr = IO.new(2, "w")
|
$stderr = IO.new(2, "w")
|
||||||
|
|
||||||
def uri(currency)
|
def uri(currency)
|
||||||
"https://apiv2.bitcoinaverage.com/ticker/#{currency}"
|
"https://apiv2.bitcoinaverage.com/indices/global/ticker/BTC#{currency}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def echo_price(currency, &get_data)
|
def echo_price(currency, &get_data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user