View Source BinanceHttp.Api.V3.Market.Behaviour behaviour (binance_http v0.1.2)

Link to this section Summary

Link to this section Callbacks

@callback aggTrades() :: :ok | {:ok, term()} | {:error, term()}
@callback aggTrades(params :: map() | Keyword.t()) ::
  :ok | {:ok, term()} | {:error, term()}
@callback aggTrades(params :: map() | Keyword.t(), opts :: Keyword.t()) ::
  :ok | {:ok, term()} | {:error, term()}
@callback current_average_price() :: :ok | {:ok, term()} | {:error, term()}
Link to this callback

current_average_price(params)

View Source
@callback current_average_price(params :: map() | Keyword.t()) ::
  :ok | {:ok, term()} | {:error, term()}
Link to this callback

current_average_price(params, opts)

View Source
@callback current_average_price(params :: map() | Keyword.t(), opts :: Keyword.t()) ::
  :ok | {:ok, term()} | {:error, term()}
@callback exchange_info() :: :ok | {:ok, term()} | {:error, term()}
@callback exchange_info(params :: map() | Keyword.t()) ::
  :ok | {:ok, term()} | {:error, term()}
Link to this callback

exchange_info(params, opts)

View Source
@callback exchange_info(params :: map() | Keyword.t(), opts :: Keyword.t()) ::
  :ok | {:ok, term()} | {:error, term()}
@callback historical_trades() :: :ok | {:ok, term()} | {:error, term()}
Link to this callback

historical_trades(params)

View Source
@callback historical_trades(params :: map() | Keyword.t()) ::
  :ok | {:ok, term()} | {:error, term()}
Link to this callback

historical_trades(params, opts)

View Source
@callback historical_trades(params :: map() | Keyword.t(), opts :: Keyword.t()) ::
  :ok | {:ok, term()} | {:error, term()}
@callback order_book() :: :ok | {:ok, term()} | {:error, term()}
@callback order_book(params :: map() | Keyword.t()) ::
  :ok | {:ok, term()} | {:error, term()}
Link to this callback

order_book(params, opts)

View Source
@callback order_book(params :: map() | Keyword.t(), opts :: Keyword.t()) ::
  :ok | {:ok, term()} | {:error, term()}
@callback recent_trades_list() :: :ok | {:ok, term()} | {:error, term()}
Link to this callback

recent_trades_list(params)

View Source
@callback recent_trades_list(params :: map() | Keyword.t()) ::
  :ok | {:ok, term()} | {:error, term()}
Link to this callback

recent_trades_list(params, opts)

View Source
@callback recent_trades_list(params :: map() | Keyword.t(), opts :: Keyword.t()) ::
  :ok | {:ok, term()} | {:error, term()}