Arbitrage logic in Elixir

You can find the minimum and maximum values? You may want to look into the Enum.{min/max/min_by/max_by} funcitions