enums

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SellReason

type SellReason int

SellReason represents enum to distinguish between sell reasons.

const (
	None SellReason = iota
	ROI
	Stoploss
	Limit
	SellSignal
	ForceSell
	EmergencySell
	CustomSell
)

Declare related constants for each sell reason starting with index 1.

func (SellReason) Index

func (r SellReason) Index() int

Index returns the index to the given enum value.

func (SellReason) String

func (r SellReason) String() string

String returns the string to the given enum value.

Jump to

Keyboard shortcuts

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