technical

package
v0.0.0-...-ec05587 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Provides an http.HandlerFunc which predicts future prices based on a technical Model

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	// http.Handler to execute Code for technical analysis
	//
	// It accepts every valid quoteId for https://finance.yahoo.com and
	// train a model and predict future stock values
	TechnicalAnalysis(http.ResponseWriter, *http.Request)
	// Loads a specific model either if present in the current fs
	// or from a remote location, which can be specified by the -bucket flag.
	//
	// In case no model is present, if the value is a valid quoteId from
	// https://finance.yahoo.com, a new model is trained and provided in the
	// remote location
	LoadModel(context.Context, string) error
}

func NewService

func NewService(storage cloudstorage.Storage, l hclog.Logger) Service

Jump to

Keyboard shortcuts

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