Documentation ¶
Index ¶
- Variables
- type CandleStick
- type ExportedList
- type List
- func (l *List) Delete(t ...timestamp.Timestamp)
- func (l List) Exchange() string
- func (l List) Get(ts timestamp.Timestamp) (CandleStick, bool)
- func (l List) Len() int
- func (l *List) Loop(callback func(ts timestamp.Timestamp, cs CandleStick) (bool, error)) error
- func (l *List) Merge(l2 List, options *timeseries.MergeOptions) error
- func (l *List) MergeTimeSeries(ts timeseries.TimeSeries, options *timeseries.MergeOptions) error
- func (l List) Pair() pair.Pair
- func (l List) Period() period.Period
- func (l *List) Set(ts timestamp.Timestamp, c CandleStick) error
- type Lists
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CandleStick ¶
type CandleStick struct { Open float64 `bson:"open" json:"open,omitempty"` High float64 `bson:"high" json:"high,omitempty"` Low float64 `bson:"low" json:"low,omitempty"` Close float64 `bson:"close" json:"close,omitempty"` }
func (CandleStick) Equal ¶
func (cs CandleStick) Equal(b CandleStick) bool
type ExportedList ¶
type ExportedList struct { Exchange string Pair pair.Pair Period int64 CandleSticks map[timestamp.Timestamp]CandleStick }
func (*ExportedList) FromList ¶
func (el *ExportedList) FromList(l List) error
func (ExportedList) ToList ¶
func (el ExportedList) ToList() (*List, error)
type List ¶
type List struct {
// contains filtered or unexported fields
}
func (*List) Merge ¶
func (l *List) Merge(l2 List, options *timeseries.MergeOptions) error
func (*List) MergeTimeSeries ¶
func (l *List) MergeTimeSeries(ts timeseries.TimeSeries, options *timeseries.MergeOptions) error
Click to show internal directories.
Click to hide internal directories.