api

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StockClient

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

func NewStockClient

func NewStockClient(h string) *StockClient

func (*StockClient) Get

func (sc *StockClient) Get(symbol string) (model.StockData, error)

func (*StockClient) GetAll added in v1.1.0

func (sc *StockClient) GetAll() ([]model.StockData, error)

func (*StockClient) GetSP500DivYield

func (sc *StockClient) GetSP500DivYield() float64

TODO move this logic to stock-screener service

func (*StockClient) RegisterStock

func (sc *StockClient) RegisterStock(symbol string) error

type UserprofileClient

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

func NewUserprofileClient

func NewUserprofileClient(h string) *UserprofileClient

func (*UserprofileClient) GetUserprofile

func (uc *UserprofileClient) GetUserprofile(userId string) (userprofileModel.Userprofile, error)

Jump to

Keyboard shortcuts

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