api

package
v0.0.0-...-d047bce Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	GetCompany(ctx context.Context, symbol string) (model.Company, error)
	GetPrice(ctx context.Context, symbol string, time time.Time) (model.Price, error)
}

func New

func New(logger *zap.Logger, token string) API

type Price

type Price struct {
	Close float64 `json:"close"`
}

Only relevant fields

Jump to

Keyboard shortcuts

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