Skip to content

Commit

Permalink
backup
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanIvanoff committed Aug 21, 2023
1 parent 20c4f5e commit b49219c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sanbase/external_services/coinmarketcap/web_api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ defmodule Sanbase.ExternalServices.Coinmarketcap.WebApi do
"status" => %{"error_code" => 0, "error_message" => nil}
} <- decoded do
result =
Enum.map(data, fn {datetime_iso8601, [marketcap_usd, volume_usd]} ->
Enum.map(quotes, fn %{"quote" => []} ->
%PricePoint{
marketcap_usd: marketcap_usd |> Sanbase.Math.to_integer(),
volume_usd: volume_usd |> Sanbase.Math.to_integer(),
Expand Down

0 comments on commit b49219c

Please sign in to comment.