api

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

type Bar struct {
	Timestamp *datetime.Datetime
	Current   decimal.Decimal
	Y         int
	Char      string
}

Bar of a Chart

type Chart

type Chart struct {
	Ticker   string
	Exchange string
	Currency string
	Start    *datetime.Datetime
	End      *datetime.Datetime
	Length   int
	High     decimal.Decimal
	Low      decimal.Decimal
	Open     decimal.Decimal
	Close    decimal.Decimal
	Interval datetime.Interval
	Bars     []*Bar
	Change   decimal.Decimal
	Prev     decimal.Decimal
}

Chart used to generate graphs

func GetChart

func GetChart(symbol string, interval datetime.Interval, start *datetime.Datetime, end *datetime.Datetime) (*Chart, error)

GetChart returns a Chart

Jump to

Keyboard shortcuts

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