Documentation ¶
Index ¶
- Variables
- func GetEvaluationConfigTop(traderType string, identifier int64) ([]model.Top, bool)
- func GetExchangeTop(traderType string, identifier int64) ([]model.Top, bool)
- func GetPairTop(traderType string, identifier int64) ([]model.Top, bool)
- func GetTradingModeTop(traderType string, identifier int64) ([]model.Top, bool)
- func GetUpToDateBotCount(identifier int64, nowTime int64) (int64, bool)
- func SetBotCount(identifier int64, count int64, updateTime int64)
- func SetEvaluationConfigTop(traderType string, identifier int64, top []model.Top)
- func SetExchangeTop(traderType string, identifier int64, top []model.Top)
- func SetPairTop(traderType string, identifier int64, top []model.Top)
- func SetTradingModeTop(traderType string, identifier int64, top []model.Top)
- type BotCountsCache
- type TopCache
Constants ¶
This section is empty.
Variables ¶
var CacheRefreshPeriod = int64(3600 * 4)
Refresh cache every 4 hours
Functions ¶
func GetEvaluationConfigTop ¶
GetEvaluationConfigTop returns the trading mode top from asked cache value and a boolean for value availability
func GetExchangeTop ¶
GetExchangeTop returns the exchange top from asked cache value and a boolean for value availability
func GetPairTop ¶
GetPairTop returns the exchange top from asked cache value and a boolean for value availability
func GetTradingModeTop ¶
GetTradingModeTop returns the trading mode top from asked cache value and a boolean for value availability
func GetUpToDateBotCount ¶
GetBotCount returns the bot count from asked cache value and a boolean for value availability
func SetBotCount ¶
SetBotCount sets the cache value for a given time. Resets cache when too many values in it
func SetEvaluationConfigTop ¶
SetEvaluationConfigTop sets the cache value for a given time. Resets cache when too many values in it
func SetExchangeTop ¶
SetExchangeTop sets the cache value for a given time. Resets cache when too many values in it
func SetPairTop ¶
SetPairTop sets the cache value for a given time. Resets cache when too many values in it
Types ¶
type BotCountsCache ¶
BotCountsCache stores bot counts cache values