tCandle

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Candle

type Candle struct {
	Ts    int64 `bson:"ts" json:"ts"`
	OHLCV `bson:",inline"`
}

func (Candle) LogReturn

func (c Candle) LogReturn() float64

func (Candle) String

func (c Candle) String(prec int) string

type Candles

type Candles []Candle

type OHLC

type OHLC struct {
	Open  float64 `bson:"o" json:"o"`
	High  float64 `bson:"h" json:"h"`
	Low   float64 `bson:"l" json:"l"`
	Close float64 `bson:"c" json:"c"`
}

func (OHLC) String

func (o OHLC) String(prec int) string

type OHLCV

type OHLCV struct {
	OHLC   `bson:",inline"`
	Volume float64 `bson:"v" json:"v"`
}

func (OHLCV) String

func (o OHLCV) String(prec int) string

type OHLCVs

type OHLCVs []OHLCV

type OHLCs

type OHLCs []OHLC

Jump to

Keyboard shortcuts

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