Tradehub.Stream.candlesticks
You're seeing just the function
candlesticks
, go back to Tradehub.Stream module for more information.
Specs
candlesticks(String.t(), String.t()) :: channel_id() | {:error, reason :: any()}
Subscribes to the candlesticks.[market].[resolution]
channel to request latest candlesticks of the market in the resolution timeframe.
Examples
iex> topic = Tradehub.Stream.candlesticks("swth_eth1", 30)
iex> Process.info(self(), :messages)
iex> Tradehub.Stream.unsubscribe topic