windowfinder

package
v0.0.0-...-2ee53ed Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcBuyPriceAndWindow

func CalcBuyPriceAndWindow[T entity.Kliner](klines []T, minwindow decimal.Decimal) (decimal.Decimal, decimal.Decimal, error)

Types

type BinanceWindowFinder

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

func NewBinanceWindowFinder

func NewBinanceWindowFinder(client *binance.Client, minwindow decimal.Decimal, pair entity.Pair, statHours uint64) *BinanceWindowFinder

func (*BinanceWindowFinder) GetBuyPriceAndWindow

func (b *BinanceWindowFinder) GetBuyPriceAndWindow() (decimal.Decimal, decimal.Decimal, error)

type WindowFinder

type WindowFinder interface {
	GetBuyPriceAndWindow() (decimal.Decimal, decimal.Decimal, error)
}

Jump to

Keyboard shortcuts

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