charts

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateRSI

func CalculateRSI(ohlcs []Ohlc) []float64

func ResolutionToDuration

func ResolutionToDuration(resolution string) (time.Duration, error)

Types

type Ohlc

type Ohlc struct {
	Open   decimal.Decimal `json:"open"`
	Close  decimal.Decimal `json:"close"`
	High   decimal.Decimal `json:"high"`
	Low    decimal.Decimal `json:"low"`
	Time   time.Time       `json:"time"`
	Volume decimal.Decimal `json:"volume"`
}

func FillMissingOhlc

func FillMissingOhlc(tokenOhlcs []Ohlc, to time.Time, interval time.Duration) []Ohlc

type TokenOhlcs

type TokenOhlcs struct {
	Token string
	Ohlcs []Ohlc
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL