history

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HistoryReader

type HistoryReader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(r io.Reader) (*HistoryReader, error)

func (*HistoryReader) Read

func (hr *HistoryReader) Read() (t OHLCV, err error)

type HistoryWriter

type HistoryWriter struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(w io.Writer) (*HistoryWriter, error)

func (*HistoryWriter) Write

func (fw *HistoryWriter) Write(t OHLCV) (err error)

type OHLCV

type OHLCV struct {
	Time int64
	Open,
	High,
	Low,
	Close,
	Volume fixed.Fixed
}

type Reader

type Reader interface {
	Read() (t OHLCV, err error)
}

type Writer

type Writer interface {
	Write(t OHLCV) (err error)
}

Jump to

Keyboard shortcuts

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