Tradehub.Exchange.markets
You're seeing just the function
markets
, go back to Tradehub.Exchange module for more information.
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
orspot
- 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")