Skip to content

fremantle-industries/ex_bitmex

Repository files navigation

ExBitmex

CircleCI Coverage Status

BitMEX API Client for Elixir

Installation

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.

WebSocket

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