Documentation ¶
Index ¶
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 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 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.
Click to show internal directories.
Click to hide internal directories.