Tradehub.Trade.trades

You're seeing just the function trades, go back to Tradehub.Trade module for more information.
Link to this function

trades(market \\ nil, before_id \\ nil, after_id \\ nil, order_by \\ nil, limit \\ nil)

View Source

Specs

trades(nil, nil, nil, nil, nil) ::
  {:ok, [Tradehub.trade()]} | {:error, HTTPoison.Error.t()}
trades(String.t(), String.t(), String.t(), String.t(), String.t()) ::
  {:ok, [Tradehub.trade()]} | {:error, HTTPoison.Error.t()}

Requests recent trades of the market or filtered by the specific params

Parameters

  • market: market ticker used by the chain, e.g swth_eth1
  • before_id: filter trades before id
  • after_id: filter trades after id
  • order_by: TODO
  • limit: limit the responsed results, max is 200

Examples

iex> Tradehub.Trade.trades