stock

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHistory

func GetHistory(ticker string, commodityName string) ([]*price.Price, error)

Types

type Chart

type Chart struct {
	Result []Result
}

type ExchangePrice

type ExchangePrice struct {
	Timestamp int64
	Close     float64
}

func (ExchangePrice) Less

func (p ExchangePrice) Less(o btree.Item) bool

type Indicators

type Indicators struct {
	Quote []Quote
}

type Meta

type Meta struct {
	Currency string
}

type Quote

type Quote struct {
	Close []float64
}

type Response

type Response struct {
	Chart Chart
}

type Result

type Result struct {
	Timestamp  []int64
	Indicators Indicators
	Meta       Meta
}

Jump to

Keyboard shortcuts

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