ex_binance v0.0.5 ExBinance.Rest.HTTPClient

Link to this section Summary

Link to this section Types

Link to this type

config_error()

Specs

config_error() :: {:config_missing, String.t()}
Link to this type

credentials()

Specs

credentials() :: ExBinance.Credentials.t()

Specs

header() :: {key :: String.t(), value :: String.t()}

Specs

path() :: String.t()
Link to this type

shared_errors()

Specs

shared_errors() ::
  :timeout
  | :connect_timeout
  | {:http_error, any()}
  | {:decode_error, Jason.DecodeError.t()}
  | :bad_symbol
  | :receive_window
  | {:binance_error, map()}

Link to this section Functions

Link to this function

delete(path, params, credentials)

Specs

delete(String.t(), map(), credentials()) ::
  {:ok, any()} | {:error, shared_errors()}
Link to this function

get(path, params, headers \\ [])

Specs

get(path(), map(), [header()]) :: {:ok, any()} | {:error, shared_errors()}
Link to this function

get_auth(path, params, credentials)

Specs

get_auth(path(), map(), credentials()) ::
  {:ok, any()} | {:error, shared_errors()}
Link to this function

post(path, params, credentials)

Specs

post(String.t(), map(), credentials()) ::
  {:ok, any()} | {:error, shared_errors()}