BTW there is a missing attribute in your code. To make it work You need to add a missing data, like this. (data is an internal struct of pair)
iex> body.data |> Enum.filter(fn pair -> pair.data.volumeWaves >= 500 end)
BTW there is a missing attribute in your code. To make it work You need to add a missing data, like this. (data is an internal struct of pair)
iex> body.data |> Enum.filter(fn pair -> pair.data.volumeWaves >= 500 end)