Versions in this module Expand all Collapse all v2 v2.5.0 Nov 15, 2024 v2.4.3 Nov 4, 2024 v2.4.2 Nov 4, 2024 Changes in this version + var ErrInvalidPeriod = errors.New("invalid period") + type Symbol string + const D1 + const D3 + const H1 + const H12 + const H2 + const H4 + const H6 + const H8 + const M1 + const M15 + const M3 + const M30 + const M5 + const W1 + func FromDuration(d time.Duration) (Symbol, error) + func FromSeconds(i int64) (Symbol, error) + func FromString(symbol string) (Symbol, error) + func Symbols() []Symbol + func UniqueArray(sym1, sym2 []Symbol) []Symbol + func (per Symbol) RoundInterval(start, end *time.Time) (time.Time, time.Time) + func (s Symbol) CountBetweenTimes(t1, t2 time.Time) int64 + func (s Symbol) Duration() time.Duration + func (s Symbol) IsAligned(t time.Time) bool + func (s Symbol) Opt() *Symbol + func (s Symbol) RoundTime(t time.Time) time.Time + func (s Symbol) String() string + func (s Symbol) Validate() error Other modules containing this package github.com/lerenn/cryptellation github.com/lerenn/cryptellation/svc/candlesticks