Tradehub.Exchange.markets

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

markets(market_type \\ nil, is_active \\ nil, is_settled \\ nil)

View Source

Specs

markets(nil, nil, nil) ::
  {:error, HTTPoison.Error.t()} | {:ok, [Tradehub.market()]}
markets(String.t(), boolean(), boolean()) ::
  {:error, HTTPoison.Error.t()} | {:ok, [Tradehub.market()]}

Requests all markets or filtered markets

Parameters

  • market_type - type of the market, future or spot
  • is_active - if only active markets should be returned
  • is_settled - if only settled markets should be returned

Examples

iex> Tradehub.Exchange.markets
iex> Tradehub.Exchange.markets("spot")