defmodule CCXT.Application do @moduledoc """ OTP Application for CCXT. Starts the rate limiter and rate limit state store under supervision. """ use Application @impl true def start(_type, _args) do children = [ CCXT.RateLimiter, CCXT.RateLimiter.State, CCXT.Testnet ] opts = [strategy: :one_for_one, name: CCXT.Supervisor] Supervisor.start_link(children, opts) end end