Documentation
¶
Overview ¶
Package config provides configuration-driven adapter bootstrap helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildManager ¶
BuildManager constructs a manager from the provided parsed configuration.
Types ¶
type Config ¶
type Config struct {
Exchanges []ExchangeConfig `json:"exchanges" yaml:"exchanges"`
}
Config is the top-level YAML/JSON shape for adapter bootstrap files.
type ExchangeConfig ¶
type ExchangeConfig struct {
Name string `json:"name" yaml:"name"`
Alias string `json:"alias,omitempty" yaml:"alias,omitempty"`
MarketType exchanges.MarketType `json:"market_type" yaml:"market_type"`
Options map[string]string `json:"options,omitempty" yaml:"options,omitempty"`
}
ExchangeConfig describes one adapter instance to construct from config.
Click to show internal directories.
Click to hide internal directories.