api

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const Version = "1.0.10"

Version of stonks

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
	ChangeVal 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, extra bool) (*Chart, error)

GetChart returns a Chart

Jump to

Keyboard shortcuts

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