kline

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMarketIDMap

func GetMarketIDMap() map[string]int64

func GetMarketServiceURL

func GetMarketServiceURL(urls string, nameSpace string, param vo.SelectOneHealthInstanceParam) (string, error)

func InitTokenPairMap

func InitTokenPairMap(ctx sdk.Context, dexKeeper types.DexKeeper)

func RegisterNewTokenPair

func RegisterNewTokenPair(tokenPairID int64, tokenPairName string, marketServiceURL string, logger log.Logger) (err error)

Types

type KlineData

type KlineData struct {
	Height int64
	// contains filtered or unexported fields
}

func NewKlineData

func NewKlineData() *KlineData

func (KlineData) BlockHeight

func (kd KlineData) BlockHeight() int64

func (KlineData) DataType

func (kd KlineData) DataType() types.StreamDataKind

func (*KlineData) GetMatchResults

func (kd *KlineData) GetMatchResults() []*backend.MatchResult

func (*KlineData) GetNewTokenPairs

func (kd *KlineData) GetNewTokenPairs() []*dex.TokenPair

func (*KlineData) SetData

func (kd *KlineData) SetData(ctx sdk.Context, orderKeeper types.OrderKeeper, cache *common.Cache)

func (*KlineData) SetMatchResults

func (kd *KlineData) SetMatchResults(matchResults []*backend.MatchResult)

type MarketConfig

type MarketConfig struct {
	MarketServiceEnable    bool
	MarketNacosUrls        string
	MarketNacosNamespaceId string
	MarketNacosClusters    []string
	MarketNacosServiceName string
	MarketNacosGroupName   string
}

func NewMarketConfig

func NewMarketConfig(enable bool, urls, nameSpace string, clusters []string, serviceName, groupName string) MarketConfig

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL