tai v0.0.8 Tai.Exchanges.Config
Configuration helper for exchanges
Link to this section Summary
Functions
Return a struct for all configured exchanges
Link to this section Types
Link to this section Functions
Link to this function
all(exchanges \\ Application.get_env(:tai, :exchanges))
Return a struct for all configured exchanges
Examples
iex> Tai.Exchanges.Config.all [
%Tai.Exchanges.Config{
id: :test_exchange_a,
supervisor: Tai.ExchangeAdapters.Mock.Supervisor,
products: "*",
accounts: %{main: %{}}
},
%Tai.Exchanges.Config{
id: :test_exchange_b,
supervisor: Tai.ExchangeAdapters.Mock.Supervisor,
products: "*",
accounts: %{main: %{}}
}
]