Tradehub.Stream.positions_by_market
You're seeing just the function
positions_by_market
, go back to Tradehub.Stream module for more information.
Specs
positions_by_market(String.t(), String.t()) :: channel_id() | {:error, reason :: any()}
Subscribes to the positions_by_market.[market].[account]
channel to request the latest positions of the given account
within a particular market
Examples
iex> topic = Tradehub.Stream.positions_by_market("swth_eth1", "swth1fdqkq5gc5x8h6a0j9hamc30stlvea6zldprt6q")
iex> Process.info(self(), :messages)
iex> Tradehub.Stream.unsubscribe topic