Skip to content

Instantly share code, notes, and snippets.

@zvineyard
Created November 8, 2015 04:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zvineyard/100f9452409f9430f84f to your computer and use it in GitHub Desktop.
Save zvineyard/100f9452409f9430f84f to your computer and use it in GitHub Desktop.
A list of methods to use in the yahoo-finance-api php library.
<?php
getHistoricalData($symbol, $startDate, $endDate); // Returns json object of basic historical data
getHistoricalData( 'IDA', date('Y-m-d', strtotime('-14 days')), date('Y-m-d',time()) );
getQuotes($symbols); // Returns json object with comprehensive trade info for each stock
getQuotes(array('AAPL', 'GOOG'));
getQuotesList($symbols); // Returns a summarized view of getQuotes
getQuotesList(array('AAPL', 'GOOG'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment