tai v0.0.6 Tai.Exchanges.AssetBalance

Link to this section Summary

Link to this section Types

Link to this type t()
t() :: %Tai.Exchanges.AssetBalance{
  account_id: atom(),
  asset: atom(),
  exchange_id: atom(),
  free: Decimal.t(),
  locked: Decimal.t()
}

Link to this section Functions

Link to this function new(exchange_id, account_id, asset, free, locked)
new(
  exchange_id :: atom(),
  account_id :: atom(),
  asset :: atom(),
  free :: number() | String.t(),
  locked :: number() | String.t()
) :: t()
Link to this function total(asset_balance)
total(balance :: t()) :: Decimal.t()