grid

package
v0.14.17 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Exchange hs.ExchangeConf
	Mongo    hs.MongoConf
	Strategy hs.RestGridStrategyConf
	Robots   []hs.BroadcastConf
}

type RestGridTrader

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

func New

func New(configFilename string) *RestGridTrader

func (*RestGridTrader) Broadcast

func (r *RestGridTrader) Broadcast(ctx context.Context, order exchange.Order, profit string)

func (*RestGridTrader) Clear

func (r *RestGridTrader) Clear(ctx context.Context, dryRun bool) error

func (*RestGridTrader) Close

func (r *RestGridTrader) Close(ctx context.Context)

func (*RestGridTrader) Init

func (r *RestGridTrader) Init(ctx context.Context)

func (*RestGridTrader) Print

func (r *RestGridTrader) Print(ctx context.Context) error

func (*RestGridTrader) ReBalance

func (r *RestGridTrader) ReBalance(ctx context.Context, dryRun bool) error

func (*RestGridTrader) Start

func (r *RestGridTrader) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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