Tradehub.Fee.current_fee

You're seeing just the function current_fee, go back to Tradehub.Fee module for more information.
Link to this function

current_fee(withdrawal_token)

View Source

Specs

current_fee(denom :: String.t()) ::
  {:ok, Tradehub.withdrawal_fee()} | String.t() | {:error, HTTPoison.Error.t()}

Get the latest fees of the given denom.

Returns

  • an object type Tradehub.withdrawal_fee() as expected.
  • a string when the denom is invalid or something went wrong in the API side.
  • an error when someting goes wrong with the connection.

Examples

iex> Tradehub.Fee.current_fee("swth")