dialect

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, dialect Dialect)

Types

type Dialect

type Dialect interface {
	SetClient(*config.Configuration, *zap.Logger)
	HistKlines() ([]*indicator.Kline, error)
	Ticker() (chan *indicator.Ticker, error)
	CreateMarketOrder(indicator.ActionType, float64, float64) error
	ClosePosition(float64) error
	PostionRisk() (float64, float64, float64, indicator.ActionType, error)
	GetOpenOrder() (float64, int64, error)
	GetAccountInfo() (*futures.Account, error)
}

func Get

func Get(conf *config.Configuration) (dialect Dialect, err error)

Jump to

Keyboard shortcuts

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