price
This commit is contained in:
parent
a5f8c01802
commit
7024d17d6c
|
@ -13,7 +13,7 @@ defmodule ZcashExplorer.Price.PriceService do
|
|||
|
||||
defp fetch_price() do
|
||||
url()
|
||||
|> HTTPoison.get!()
|
||||
|> HTTPoison.get!([{"User-agent", "curl/7.83.1"}])
|
||||
|> Map.get(:body)
|
||||
|> Poison.decode!()
|
||||
end
|
||||
|
@ -21,4 +21,4 @@ defmodule ZcashExplorer.Price.PriceService do
|
|||
defp url() do
|
||||
"https://api.coingecko.com/api/v3/simple/price?ids=zcash&vs_currencies=usd&include_market_cap=true&include_24hr_vol=true&include_24hr_change=true&include_last_updated_at=true"
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue