Documentation
¶
Index ¶
- func GenerateDefaultExchangeTomlString() bytes.Buffer
- func GenerateDefaultMarketParamsTomlString() bytes.Buffer
- func ReadExchangeQueryConfigFile(homeDir string) map[types.ExchangeId]*types.ExchangeQueryConfig
- func ReadMarketParamsConfigFile(homeDir string) []types.MarketParam
- func WriteDefaultMarketParamsToml(homeDir string)
- func WriteDefaultPricefeedExchangeToml(homeDir string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDefaultExchangeTomlString ¶
GenerateDefaultExchangeTomlString creates the toml file string containing the default configs for querying each exchange.
func GenerateDefaultMarketParamsTomlString ¶
GenerateDefaultExchangeTomlString creates the toml file string containing the default marketParam configs.
func ReadExchangeQueryConfigFile ¶
func ReadExchangeQueryConfigFile(homeDir string) map[types.ExchangeId]*types.ExchangeQueryConfig
ReadExchangeQueryConfigFile gets a mapping of `exchangeIds` to `ExchangeQueryConfigs` where `ExchangeQueryConfig` for querying exchanges for market prices comes from parsing a TOML file in the config directory. NOTE: if the config file is not found for the price-daemon, return the static exchange query config.
func ReadMarketParamsConfigFile ¶
func ReadMarketParamsConfigFile(homeDir string) []types.MarketParam
func WriteDefaultMarketParamsToml ¶
func WriteDefaultMarketParamsToml(homeDir string)
func WriteDefaultPricefeedExchangeToml ¶
func WriteDefaultPricefeedExchangeToml(homeDir string)
WriteDefaultPricefeedExchangeToml reads in the toml string for the pricefeed client and writes said string to the config folder as a toml file if the config file does not exist.
Types ¶
This section is empty.