entities

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromEntityListToModelList

func FromEntityListToModelList(entities []Candlestick) (*candlestick.List, error)

Types

type Candlestick

type Candlestick struct {
	Exchange   string    `bson:"exchange"`
	Pair       string    `bson:"pair"`
	Period     string    `bson:"period"`
	Time       time.Time `bson:"time"`
	Open       float64   `bson:"open"`
	High       float64   `bson:"high"`
	Low        float64   `bson:"low"`
	Close      float64   `bson:"close"`
	Volume     float64   `bson:"volume"`
	Uncomplete bool      `bson:"uncomplete"`
}

func FromModelListToEntityList

func FromModelListToEntityList(list *candlestick.List) []Candlestick

func (*Candlestick) FromModel

func (c *Candlestick) FromModel(exchange, pair, period string, t time.Time, model candlestick.Candlestick)

func (Candlestick) ToModel

func (c Candlestick) ToModel() (exchange, pair, period string, t time.Time, model candlestick.Candlestick)

Jump to

Keyboard shortcuts

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