Tradehub.Exchange.orderbook
You're seeing just the function
orderbook
, go back to Tradehub.Exchange module for more information.
Specs
orderbook(String.t(), integer()) :: {:ok, Tradehub.orderbook()} | {:error, HTTPoison.Error.t()}
Get the latest orderbook of given market
Parameters
- market: a market ticker used by the chain, e.g
swth_eth1
- limit: number of results per side (asks, bids)
Examples
iex> Tradehub.Exchange.orderbook("swth_eth1")