Tradehub.Stream.leverages

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

Specs

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

Subscribes to the leverages.[account] channel to request latest leverages information of the given account.

A topic named leverages.[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, "leverages.swth1gdm8rvlfxjapvh2paswx7td9fcrq3r7cavkd2a"
iex> Tradehub.Stream.leverages("swth1gdm8rvlfxjapvh2paswx7td9fcrq3r7cavkd2a")
iex> Process.info(self(), :messages)
iex> Tradehub.Stream.unsubscribe "leverages.swth1gdm8rvlfxjapvh2paswx7td9fcrq3r7cavkd2a"