Packages

ccxt

0.1.0-binance-pro-preview

Binance-first Elixir target generated from CCXT TypeScript sources, including CCXT Pro websocket support.

Current section

Files

Jump to
ccxt lib ccxt pro supervisor.ex
Raw

lib/ccxt/pro/supervisor.ex

defmodule Ccxt.Pro.Supervisor do
@moduledoc false
use Supervisor
def start_link(opts \\ []) do
Supervisor.start_link(__MODULE__, opts, name: __MODULE__)
end
@impl true
def init(_opts) do
children = [
{Registry, keys: :unique, name: Ccxt.Pro.Registry},
{DynamicSupervisor, strategy: :one_for_one, name: Ccxt.Pro.ConnectionSupervisor}
]
Supervisor.init(children, strategy: :one_for_one)
end
end