yfinance

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright 2022

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(asset *common.Asset)

Download retrieves data for the list of assets from Yahoo! Finance

func Enrich

func Enrich(assets []*common.Asset, max int)

func NumAssetsNeedingUpdate

func NumAssetsNeedingUpdate(assets []*common.Asset) int

func RateLimit

func RateLimit() *rate.Limiter

Types

type YFinanceAssetProfile

type YFinanceAssetProfile struct {
	Website           string `json:"website"`
	Industry          string `json:"industry"`
	Sector            string `json:"sector"`
	Summary           string `json:"longBusinessSummary"`
	FullTimeEmployees int    `json:"fullTimeEmployees"`
}

type YFinanceESG

type YFinanceESG struct {
	PeerGroup string `json:"peerGroup"`
}

type YFinancePrice

type YFinancePrice struct {
	Name string `json:"longName"`
}

type YFinanceQuoteSummary

type YFinanceQuoteSummary struct {
	AssetProfile *YFinanceAssetProfile `json:"assetProfile"`
	Price        *YFinancePrice        `json:"price"`
	Esg          *YFinanceESG          `json:"esgScores"`
}

type YFinanceQuoteSummaryWrapper

type YFinanceQuoteSummaryWrapper struct {
	Result []*YFinanceQuoteSummary `json:"result"`
}

type YFinanceResult

type YFinanceResult struct {
	Profile *YFinanceQuoteSummaryWrapper `json:"quoteSummary"`
}

Jump to

Keyboard shortcuts

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