Bittrex v3.0.0 Bittrex.Balances View Source

Implements /balances endpoints.

Link to this section Summary

Functions

Retrieve account balance for a specific currency

List account balances across available currencies

Link to this section Functions

Link to this function

get_balance(client, currency_symbol) View Source
get_balance(
  %Bittrex.Client{api_key: term(), api_secret: term(), sub_account_id: term()},
  String.t()
) ::
  StrawHat.Response.t(
    %Bittrex.Balance{available: term(), currency_symbol: term(), total: term()},
    Bittrex.Client.error()
  )

Retrieve account balance for a specific currency.

Link to this function

get_balances(client) View Source
get_balances(%Bittrex.Client{
  api_key: term(),
  api_secret: term(),
  sub_account_id: term()
}) ::
  StrawHat.Response.t(
    [
      %Bittrex.Balance{
        available: term(),
        currency_symbol: term(),
        total: term()
      }
    ],
    Bittrex.Client.error()
  )

List account balances across available currencies.