Tradehub.Stream.orders_by_market

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

orders_by_market(market, account)

View Source

Specs

orders_by_market(String.t(), String.t()) ::
  channel_id() | {:error, reason :: any()}

Subscribes to the orders_by_market.[market].[account] channel to request the latest orders of the given account within a specific market.

Examples

iex> topic = Tradehub.Stream.orders_by_market("swth_eth1", "swth1fdqkq5gc5x8h6a0j9hamc30stlvea6zldprt6q")
iex> Process.info(self(), :messages)
iex> Tradehub.Stream.unsubscribe topic