Tradehub.Stream.market_stats

You're seeing just the function market_stats, go back to Tradehub.Stream module for more information.

Specs

market_stats() :: :ok | {:error, reason :: any()}

Subscribes to the market_stats channel to request the latest statistics of the market.

A topic named market_stats in the Tradehub.PubSub will automatically created to handle incomming messages of this subscription.

Examples

iex> alias Phoenix.PubSub
iex> PubSub.subscribe Tradehub.PubSub, "market_stats"
iex> Tradehub.Stream.market_stats
iex> Process.info(self(), :messages)
iex> Tradehub.Stream.unsubscribe "market_stats"