coin

package
v0.0.0-...-e2be882 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(client api.Client) (*Engine, error)

func (*Engine) AddProcessor

func (e *Engine) AddProcessor(processor api.Processor) *Engine

func (*Engine) Run

func (e *Engine) Run() error

type Strategy

type Strategy struct {
	api.User
	api.Exchange
	api.StrategyProcessor
	// contains filtered or unexported fields
}

Strategy defines a basic strategy element that encapsulates generic api components it serves just as a declarative wrapper for building strategies as processors for providing to the engine

func NewStrategy

func NewStrategy(name string) *Strategy

func (*Strategy) Apply

func (s *Strategy) Apply() api.Processor

func (*Strategy) ForExchange

func (s *Strategy) ForExchange(exchange api.Exchange) *Strategy

func (*Strategy) ForUser

func (s *Strategy) ForUser(user api.User) *Strategy

func (*Strategy) WithProcessor

func (s *Strategy) WithProcessor(processor api.StrategyProcessor) *Strategy

Jump to

Keyboard shortcuts

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