-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStockService.java
More file actions
29 lines (27 loc) · 898 Bytes
/
StockService.java
File metadata and controls
29 lines (27 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package StockServices;
import java.util.Calendar;
import java.util.List;
public interface StockService {
/**
* Return the current price for a share o
f stock for the
* given symbol
* @param symbol the stock symbol of the company you want a
* quote for e.g. APPL for APPLE
* @return a <CODE>BigDecimal</CODE> instance
*/
StockQuote getQuote(String symbol);
/**
* Get a histo
rical list of stock quotes for the provided
* symbol
* @param symbol the stock symbol to search for
* @param from the date of the first stock quote
* @param until the date of the last stock quote
* @return a list of StockQuote instan
ces.
* One for each day in the range specified.
*/
List<StockQuote> getQuote(String symbol, Calendar from,
Calendar until);
}