This commit is contained in:
Vamsi Krishna B 2022-05-22 12:50:08 +05:30
parent a5f8c01802
commit 7024d17d6c
1 changed files with 2 additions and 2 deletions

View File

@ -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