net.sourceforge.eclipsetrader.core
Interface IHistoryFeed


public interface IHistoryFeed

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

INTERVAL_MINUTE

public static final int INTERVAL_MINUTE
Constant for 1 minute time interval.

See Also:
Constant Field Values

INTERVAL_DAILY

public static final int INTERVAL_DAILY
Constant for 1 day time interval.

See Also:
Constant Field Values
Method Detail

updateHistory

public void updateHistory(Security security,
                          int interval)
Update the history data for a security using the specified time interval.
Minute data must be loaded and saved using the 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.

Parameters:
security - the security to update
interval - the time interval, specified with one of the INTERVAL_* constants