chart

package
v0.0.0-...-427f95e Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package chart is

Index

Constants

View Source
const (
	API_KEY    = ""
	API_SECRET = ""
)

Variables

This section is empty.

Functions

func GetExecutions

func GetExecutions(startFrom time.Time)

func SaveOHLC

func SaveOHLC(startFrom time.Time) (err error)

Types

type Agent

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

type Db

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

func NewConnect

func NewConnect() Db

func (*Db) Close

func (d *Db) Close()

func (*Db) Fetch

func (d *Db) Fetch() (ohlcs OHLCs)

func (*Db) Insert

func (d *Db) Insert(ohlc OHLC) (err error)

type ExecutionsResponse

type ExecutionsResponse struct {
	Executions liquid.Executions
}

func (*ExecutionsResponse) First

func (e *ExecutionsResponse) First() (execution liquid.Execution)

func (*ExecutionsResponse) Last

func (e *ExecutionsResponse) Last() (execution liquid.Execution)

func (*ExecutionsResponse) TrimEnd

func (e *ExecutionsResponse) TrimEnd() (response ExecutionsResponse)

Jump to

Keyboard shortcuts

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