bridge

package
v0.0.0-...-8ecc595 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Brokers

type Brokers struct {
	IBrokers
}

Brokers -

type IBrokers

type IBrokers interface {
	Name() string
	Version() string
	Create(interface{}) error
}

IBrokers -

type IIndicator

type IIndicator interface {
	Name() string
	Version() string
	Title() string
	Trigger() map[int]string
	SetHash(map[string]interface{}) (string, error)
	Calculation(*strategy.Calculation, map[string]interface{}) (indicator.Result, error)
}

IIndicator -

type IRates

type IRates interface {
	Name() string
	Version() string
	Create(interface{}) error
	SetRatesAsset(string, bool) error
	SetRatesProviderConfig(database.ProviderConfig) error
	SetRatesProviderConfigIgnores() map[string]bool
	EnableAsset(string) bool
	GetStats() *monitor.AllStats
	RegisterServer()
	OnConnected(scope, id string)
	OnDisconnected(scope, id string)
}

IRates -

type IStrategy

type IStrategy interface {
	GetIndicatorList() ([]indicator.Indicator, error)
	GetStrategy() (data []strategy.Strategy, err error)
	AddStrategy(req strategy.Strategy) (err error)
	DeleteStrategy(req strategy.Strategy) (err error)
}

IStrategy -

type Indicator

type Indicator struct {
	IIndicator
}

Indicator -

type Rates

type Rates struct {
	IRates
}

Rates -

Jump to

Keyboard shortcuts

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