Documentation ¶
Index ¶
- Variables
- type AssetsProvider
- type Calculation
- func (cc *Calculation) GetAsset() database.Assets
- func (cc *Calculation) GetAssetID() string
- func (cc *Calculation) GetCurrent(candle int) (op rates.Points)
- func (cc *Calculation) GetIndicator(id string) core.IIndicator
- func (cc *Calculation) GetLogger() *logging.Logger
- func (cc *Calculation) GetPoints(opt rates.CandleRequest) (map[int][]rates.Points, error)
- func (cc *Calculation) GetSendTime() time.Time
- func (cc *Calculation) GetServerTime() time.Time
- func (cc *Calculation) GetValue(tp, candle int) (op []float64)
- func (cc *Calculation) GetValues(lg, candle int) (op []rates.Points)
- func (cc *Calculation) New()
- type CalculationResult
- type Database
- func (cc *Database) Del(bucket, key string) (err error)
- func (cc *Database) Get(bucket, key string, autocreateBucket bool) (value []byte, err error)
- func (cc *Database) GetAll(bucket string) (res interface{})
- func (cc *Database) Init() (err error)
- func (cc *Database) Set(bucket, key string, value []byte, autocreateBucket bool) (err error)
- type Stores
- type Strategy
- type SubChannel
Constants ¶
This section is empty.
Variables ¶
Logger -
Functions ¶
This section is empty.
Types ¶
type AssetsProvider ¶
AssetsProvider -
type Calculation ¶
type Calculation struct { Strategy *Strategy Candles *rates.SendPoints Result *CalculationResult }
Calculation -
func (*Calculation) GetCurrent ¶
func (cc *Calculation) GetCurrent(candle int) (op rates.Points)
GetCurrent -
func (*Calculation) GetIndicator ¶
func (cc *Calculation) GetIndicator(id string) core.IIndicator
GetIndicator -
func (*Calculation) GetPoints ¶
func (cc *Calculation) GetPoints(opt rates.CandleRequest) (map[int][]rates.Points, error)
GetPoints -
func (*Calculation) GetServerTime ¶
func (cc *Calculation) GetServerTime() time.Time
GetServerTime -
func (*Calculation) GetValue ¶
func (cc *Calculation) GetValue(tp, candle int) (op []float64)
GetValue -
func (*Calculation) GetValues ¶
func (cc *Calculation) GetValues(lg, candle int) (op []rates.Points)
GetValues -
type CalculationResult ¶
CalculationResult -
type Strategy ¶
type Strategy struct { AssetsProvider *AssetsProvider SubChannel *SubChannel Data core.StrategyOption // contains filtered or unexported fields }
Strategy -
func (*Strategy) Run ¶
func (cc *Strategy) Run(hc func() *core.HTTPClient, wsc func() *interfaces.WebsocketClient) bool
Run -
type SubChannel ¶
SubChannel -
Click to show internal directories.
Click to hide internal directories.