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)
Click to show internal directories.
Click to hide internal directories.