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