Tradehub.Ticker.prices

You're seeing just the function prices, go back to Tradehub.Ticker module for more information.

Specs

prices(String.t()) ::
  {:ok, Tradehub.ticker_prices()} | {:error, HTTPoison.Error.t()}

Get recent ticker prices of the given market.

Returns

  • an object of type Tradehub.ticker_prices() as expected
  • an error if something goes wrong with the connection

Note

The GET /get_prices endpoint is not completely implemented, it always responses an object of type Tradehub.ticker_prices() although the market param is invalid

Examples

iex> Tradehub.Ticker.prices("swth_eth1")