yql

package
v0.0.0-...-740a42e Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2014 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(results interface{}, q string) (err error)

`q` is the YQL query

Types

type History

type History struct {
	Symbol string
	Date   string
	Open   string
	Close  string
	High   string
	Low    string
	Volume string
}

func GetHistory

func GetHistory(symbol string, startDate, endDate time.Time) (results []History, err error)

Gets all historical data for a symbol between startDate and endDate.

type Quote

type Quote struct {
	Symbol string
	Price  *big.Rat
}

func GetQuote

func GetQuote(symbol string) (quote *Quote, err error)

Gets the current trading price for a symbol.

func GetQuotes

func GetQuotes(symbols ...string) (quotes []Quote, err error)

Gets the current trading prices for a set of symbols.

Jump to

Keyboard shortcuts

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