Create a cryptocurrency trading bot in Elixir

Is using a websocket a must for such trading bots? If not websocket, what else can be used? REST API will be too slow?