Cinderella-Man / hands-on-elixir-and-otp-cryptocurrency-trading-bot-source-code

Resources related to the "Hands-on Elixir & OTP: Cryptocurrency trading bot" book
https://elixircryptobot.com
75 stars 24 forks source link

handle_event/2 is referenced but does not exist #2

Closed gavinhughes closed 3 years ago

gavinhughes commented 3 years ago
image
Cinderella-Man commented 3 years ago

Hello :wave:

Thank you very much for pointing this out, the description is incorrect - it should point to process_event/1 - I've updated the description and the code snippet below it to:

  # /apps/streamer/lib/streamer/binance.ex
  defp process_event(%{"e" => "trade"} = event) do
    ...
    Naive.send_event(trade_event)
  end

Thank you once again for pointing this out :+1: