tai v0.0.7 Tai.Exchanges.Exchange

Link to this section Summary

Link to this section Types

Link to this type asset_balance()
asset_balance() :: Tai.Exchanges.AssetBalance.t()
Link to this type config()
config() :: Tai.Config.t()

Link to this section Functions

Link to this function asset_balances(adapter, account_id)
asset_balances(adapter :: adapter(), account_id :: atom()) ::
  {:ok, [asset_balance()]}
Link to this function maker_taker_fees(adapter, account_id)
maker_taker_fees(adapter :: adapter(), account_id :: atom()) ::
  {:ok, {maker :: Decimal.t(), taker :: Decimal.t()}}
Link to this function parse_adapters(config)
parse_adapters(config :: config()) :: [adapter()]

Parse a map of exchange configurations into a list of adapter structs

Link to this function products(adapter)
products(adapter :: adapter()) :: {:ok, [product()]}