yahoofinance

package module
v0.0.0-...-d7d2b4c Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2014 License: MIT Imports: 7 Imported by: 1

README

yahoofinance

Utility to get historical quote info using yahoo finance api

Documentation

Overview

Package stock allows to use yahoo finance api to get historical quotes data It uses YQL pointing to yahoo.finance.historicaldata to get the necessary info

Index

Constants

View Source
const (
	YQL_HISTORICAL_DATA = "select Date, Close from yahoo.finance.historicaldata where symbol=\"%s\" and startDate=\"%s\" and endDate=\"%s\""
	YQL_WEB_SERVICE_URL = "http://query.yahooapis.com/v1/public/yql?format=json&diagnostics=false&callback=&%s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Quote

type Quote struct {
	Close  float64
	Date   time.Time
	Avg    float64
	Top    float64
	Bottom float64
}

func HistoricalPrices

func HistoricalPrices(symbol string, start, end time.Time) []Quote

Jump to

Keyboard shortcuts

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