Documentation ¶
Index ¶
- Constants
- func GetIntervalMinutes(interval string) int64
- func GetIntervalSeconds(interval string) int64
- func GetIntervalSecondsMilli(interval string) int64
- func IsClosing(ts int64, interval string) bool
- func IsClosingMilli(ts int64, interval string) bool
- func IsSameMonth(ts1, ts2 int64) bool
- func NextTs(ts int64, interval string) int64
- func PrevTs(ts int64, interval string) int64
- func Verify(candles Candles, interval int64) []error
- func VerifyHighLow(obj *Candle) bool
- func VerifyHighs(obj *Candle) bool
- func VerifyInterval(obj_1, obj_2 *Candle, interval int64) bool
- func VerifyLows(obj *Candle) bool
- func VerifyOne(prevObj, obj *Candle, interval int64) error
- func VerifyOpenClose(obj_1, obj_2 *Candle) bool
- func VerifyZeros(obj *Candle) bool
- type Candle
- type Candles
- type Interval
- func (i Interval) IsClosing(ts int64) bool
- func (i Interval) IsClosingMilli(ts int64) bool
- func (i Interval) IsDefault() bool
- func (i Interval) Minutes() int64
- func (i Interval) Next(ts int64) int64
- func (i Interval) Prev(ts int64) int64
- func (i Interval) Seconds() int64
- func (i Interval) SecondsMilli() int64
- func (i Interval) String() string
- type OHLC
- type OHLCV
- type OHLCVs
- type OHLCs
Constants ¶
View Source
const ( Interval_1m = Interval("1m") Interval_5m = Interval("5m") Interval_15m = Interval("15m") Interval_30m = Interval("30m") Interval_1h = Interval("1h") Interval_4h = Interval("4h") Interval_D = Interval("D") Interval_W = Interval("W") Interval_M = Interval("M") Interval_DEFAULT = Interval("DEFAULT") )
Variables ¶
This section is empty.
Functions ¶
func GetIntervalMinutes ¶
func GetIntervalSeconds ¶
func GetIntervalSecondsMilli ¶
func IsClosingMilli ¶
IsClosingMilli, ts is in milliseconds
func IsSameMonth ¶ added in v0.2.8
func VerifyHighLow ¶ added in v0.2.5
func VerifyHighs ¶ added in v0.2.5
func VerifyInterval ¶
func VerifyLows ¶ added in v0.2.5
func VerifyOpenClose ¶
func VerifyZeros ¶
Types ¶
type Interval ¶ added in v0.2.3
type Interval string
func GetInterval ¶ added in v0.2.3
func GetIntervals ¶ added in v0.6.0
func (Interval) IsClosingMilli ¶ added in v0.3.2
func (Interval) SecondsMilli ¶ added in v0.3.2
type OHLC ¶
Click to show internal directories.
Click to hide internal directories.