|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for history and interday data feed plugins.
Field Summary | |
---|---|
static int |
INTERVAL_DAILY
Constant for 1 day time interval. |
static int |
INTERVAL_MINUTE
Constant for 1 minute time interval. |
Method Summary | |
---|---|
void |
updateHistory(Security security,
int interval)
Update the history data for a security using the specified time interval. |
Field Detail |
public static final int INTERVAL_MINUTE
public static final int INTERVAL_DAILY
Method Detail |
public void updateHistory(Security security, int interval)
Security.getIntradayHistory()
method,
daily data must be loaded and saved using the Security.getHistory()
method.
Implementors should always download the smallest time interval available for each category (i.e. if the data source doesn't provide 1 minute data it is safe to download 2, 5 or greater minute data).
If the data source doesn't provide data for the given category (i.e. 1 minute data was requested but only daily data is available) do nothing.
security
- the security to updateinterval
- the time interval, specified with one of the INTERVAL_* constants
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |