Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Candle ¶
type Candle struct {
StartTime time.Time `json:"start_time"`
OpenPrice float64 `json:"open"`
HighPrice float64 `json:"high"`
LowPrice float64 `json:"low"`
ClosePrice float64 `json:"close"`
Volume float64 `json:"volume"`
}
Candle - структура для хранения данных по свече
func (Candle) GetClosePrice ¶
func (Candle) GetHighPrice ¶
func (Candle) GetLowPrice ¶
func (Candle) GetOpenPrice ¶
func (Candle) GetStartTime ¶
type CandleSeries ¶
type CandleSeries []Candle
CandleSeries - структура для работы массивами свечей
func (CandleSeries) At ¶
func (cs CandleSeries) At(index int) Candle
func (CandleSeries) Last ¶
func (cs CandleSeries) Last(n int) CandleSeries
func (CandleSeries) LastMin ¶
func (cs CandleSeries) LastMin(nums ...int) CandleSeries
func (CandleSeries) Len ¶
func (cs CandleSeries) Len() int
func (CandleSeries) Slice ¶
func (cs CandleSeries) Slice(start, end int) Series
Click to show internal directories.
Click to hide internal directories.