Skip to content
Simple library for getting stock information using the YQL API on yahoo.finance tables
PHP
Find file
Latest commit e881269 aygee Added error handling
Failed to load latest commit information.
lib/YahooFinance Added error handling
README Revised README

README

# Yahoo Finance API

Simple library for getting stock information using the YQL API on yahoo.finance tables

## Download

    $ git clone git://github.com/aygee/yahoo-finance-api

## Setup

    require 'php-yql-finance/lib/YahooFinance/YahooFinance.php';

    $yf = new YahooFinance;

## Usage

   $historicaldata = $yf->getHistoricalData('ASX', '2012-01-01', '2012-01-31');
   $quote          = $yf->getQuotes('ASX');	   		// single quote
   $quotes	   = $yf->getQuotes(array('ASX', 'WOW'));	// multiple quotes

Something went wrong with that request. Please try again.