stock-quotes
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Java library for the Google Finance Historical Prices API
# Stock Quotes [![Build Status](https://travis-ci.org/kevinsawicki/stock-quotes.png)](https://travis-ci.org/kevinsawicki/stock-quotes)

Library for accessing historical stock prices using the Google Finance API.

The stock-quotes library is available from [Maven Central](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.kevinsawicki%22%20AND%20a%3A%22stock-quotes%22).

```xml

  com.github.kevinsawicki
  stock-quotes
  1.3

```

## Dependencies

* [kevinsawicki/http-request](http://github.com/kevinsawicki/http-request)

## Usage

### Get the closing prices for the current year

The following example requests the prices of the stock symbol `tr` for the
current year and prints out the closing price for each day.

```java
StockQuoteRequest request = new StockQuoteRequest();
request.setSymbol("tr");
request.setStartDate(DateUtils.yearStart());
request.setEndDate(DateUtils.yearEnd());

while(request.next())
  System.out.println(request.getDate() + ": " + request.getClose());
```

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。