BitMEX API Client for Elixir
If available in Hex, the package can be installed
by adding bitmex
to your list of dependencies in mix.exs
:
def deps do
[
{:ex_bitmex, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/bitmex.
Create a WebSocket wrapper with a handler
defmodule BitMexWebSocketWrapper do
use ExBitmex.WebSocket
def handle_response(json, _state) do
Logger.warn("Received #{inspect(json)}")
end
end