From 7024d17d6c63dd4d4fa59b92d56f21332546d659 Mon Sep 17 00:00:00 2001 From: Vamsi Krishna B Date: Sun, 22 May 2022 12:50:08 +0530 Subject: [PATCH] price --- lib/zcash_explorer/price/price_service.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/zcash_explorer/price/price_service.ex b/lib/zcash_explorer/price/price_service.ex index 3ab2351..bcad94e 100644 --- a/lib/zcash_explorer/price/price_service.ex +++ b/lib/zcash_explorer/price/price_service.ex @@ -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 \ No newline at end of file