trading

package
v0.0.0-...-6ff09cd Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinanceFuturesManager

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

func NewBinanceFuturesManager

func NewBinanceFuturesManager(futuresClient *futures.Client, logger *zap.Logger, opts ...FuturesOption) (*BinanceFuturesManager, error)

func (*BinanceFuturesManager) ConsumeBuySignal

func (m *BinanceFuturesManager) ConsumeBuySignal(buySignal api.BuySignal) error

func (*BinanceFuturesManager) UpdateSupportedSymbols

func (m *BinanceFuturesManager) UpdateSupportedSymbols() error

type FuturesOption

type FuturesOption interface {
	// contains filtered or unexported methods
}

func WithEachTradeAmountInUSD

func WithEachTradeAmountInUSD(f float64) FuturesOption

func WithLeverage

func WithLeverage(l int) FuturesOption

func WithTakeProfitPriceChangedPercentage

func WithTakeProfitPriceChangedPercentage(f float64) FuturesOption

func WithWillExecuteOrder

func WithWillExecuteOrder(f bool) FuturesOption

Jump to

Keyboard shortcuts

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