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