Tradehub.Stream.account_trades
You're seeing just the function
account_trades
, go back to Tradehub.Stream module for more information.
Specs
Subscribes to the account_trades.[account]
channel to request upto 100 trades of the given account.
A topic named account_trades.[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.swth1gdm8rvlfxjapvh2paswx7td9fcrq3r7cavkd2a"
iex> Tradehub.Stream.account_trades("swth1gdm8rvlfxjapvh2paswx7td9fcrq3r7cavkd2a")
iex> Process.info(self(), :messages)
iex> Tradehub.Stream.unsubscribe "account_trades.swth1gdm8rvlfxjapvh2paswx7td9fcrq3r7cavkd2a"