Tradehub.Ticker.market_stats
You're seeing just the function
market_stats
, go back to Tradehub.Ticker module for more information.
Specs
market_stats(nil) :: {:ok, [Tradehub.market_stats()]} | String.t() | {:error, HTTPoison.Error.t()}
market_stats(String.t()) :: {:ok, [Tradehub.market_stats()]} | String.t() | {:error, HTTPoison.Error.t()}
Requests latest statistics information about the given market or all markets
Returns
- a list of
Tradehub.market_stats()
as expected - a string that represents of an error
- an error if something goes wrong with the connection
Examples
iex> Tradehub.Ticker.market_stats
iex> Tradehub.Ticker.market_stats("swth_eth1")