Tradehub.Ticker.candlesticks
You're seeing just the function
candlesticks
, go back to Tradehub.Ticker module for more information.
Specs
candlesticks(String.t(), integer(), integer(), integer()) :: {:ok, [Tradehub.candlestick()]} | {:error, HTTPoison.Error.t()}
Requests candlesticks for the given market.
Parameters
- market: the market symbols: e.g
swth_eth1
- resolution: the candlestick period in minutes, possible values are: 1, 5, 30, 60, 360, 1440
- from: the start of time range for data in epoch
seconds
- to: the end of time range for data in epoch
seconds
Examples
iex> Tradehub.Ticker.candlesticks("swth_eth1", 5, 1610203000, 1610203000)