Tradehub.Stream.account_trades_by_market

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

account_trades_by_market(market, account)

View Source

Specs

account_trades_by_market(String.t(), String.t()) ::
  :ok | {:error, reason :: any()}

Subscribes to the account_trades_by_market.[market].[account] channel to request trades of the given account within a market.

A topic named account_trades_by_market.[market].[account] in the Tradehub.PubSub will automatically created to handle incomming messages of this subscription.

Examples

iex> alias Phoenix.PubSub
iex> PubSub.subscribe Tradehub.PubSub, "account_trades_by_market.swth_eth1.swth1gdm8rvlfxjapvh2paswx7td9fcrq3r7cavkd2a"
iex> Tradehub.Stream.account_trades_by_market("swth_eth1", "swth1gdm8rvlfxjapvh2paswx7td9fcrq3r7cavkd2a")
iex> Process.info(self(), :messages)
iex> Tradehub.Stream.unsubscribe "account_trades.swth1gdm8rvlfxjapvh2paswx7td9fcrq3r7cavkd2a"