Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get historical data from the past to the present yahoo finance api

Calendar from = Calendar.getInstance();
Calendar to = Calendar.getInstance();
from.add(Calendar.YEAR, -5); // from 5 years ago

Stock google = YahooFinance.get("GOOG", from, to, Interval.WEEKLY);
Source by github.com #
 
PREVIOUS NEXT
Tagged: #historical #data #present #yahoo #finance #api
ADD COMMENT
Topic
Name
6+2 =