Update stock information (daily prices, volume) for common markets e..g, S&P500, NASDAQ100
The program first scan a list of stock symbols. For each symbol, it request the server for fetching stock data. We've provided the list of symbols for SP500 and NASDAQ100 at the time the program is published. You could modify the list as your need.
- List of stock symbols: The program scan the list of stock symbols as the input. You could customize the list.
- Libraries:
commons-codec-1.6
,commons-logging-1.1.3
,fluent-hc-4.3
,httpclient-4.3
,httpclient-cache-4.3
,httpcore-4.3
,httpmime-4.3
,javacsv
.
-
Edit
config.cnf
. AdjustFROM_DATE
andTO_DATE
for your desired period. Change value ofSYMBOL_LIST_FILE
for SP500 or NASDAQ100. -
Run the jar file:
java -jar stockdata.jar
- Output: the list of stock prices as text file in
OUT_DIR
specified inconfig.cnf
file.