org.ferris.yahoo.finance.jmce.handler
Class CrudeOilHandlerByScrape

java.lang.Object
  extended by org.ferris.yahoo.finance.jmce.handler.AbstractHandlerByScrape
      extended by org.ferris.yahoo.finance.jmce.handler.CrudeOilHandlerByScrape
All Implemented Interfaces:
CrudeOilHandler

public class CrudeOilHandlerByScrape
extends AbstractHandlerByScrape
implements CrudeOilHandler

Author:
mjr2586

Constructor Summary
CrudeOilHandlerByScrape()
           
 
Method Summary
 Oil getByCurrentContract()
          This handler needs to determine what is the current contract by figuring how today's date falls within the the last trading (LT) days setup for the year for Oil.
 CalendarHandler getCalendarHandler()
           
 FuturesExpirationsHandler getFuturesExpirationsHandler()
           
 void setCalendarHandler(CalendarHandler calendarHandler)
           
 void setFuturesExpirationsHandler(FuturesExpirationsHandler futuresExpirationsHandler)
           
 
Methods inherited from class org.ferris.yahoo.finance.jmce.handler.AbstractHandlerByScrape
getHtmlPageContents, getMarketDown, getYearEndPriceHandler, setYearEndPriceHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrudeOilHandlerByScrape

public CrudeOilHandlerByScrape()
Method Detail

getByCurrentContract

public Oil getByCurrentContract()
Description copied from interface: CrudeOilHandler
This handler needs to determine what is the current contract by figuring how today's date falls within the the last trading (LT) days setup for the year for Oil. This is determined by finding the first LT day which is >= to today. That LT day will be associated with a month and it is that month which is currently under contract. Once the contract month is know, the future's ticker symbol can be determined by: An email should be automatically set near the end of the year to lookup the dates for next year so they can be inserted into the database. This site may be good: #1 http://alpari-forex.com/en/trader/futures_exp/ #2 http://www.ccstrade.com/futures/light--sweet-crude-oil-futures-cl/exp/ If Not, a Google search of "YYYY oil futures expiration" should help find the information NOTE: Last Trading Day (LT) First Notice Day (FN)

Specified by:
getByCurrentContract in interface CrudeOilHandler

getFuturesExpirationsHandler

public FuturesExpirationsHandler getFuturesExpirationsHandler()
Returns:
the futuresExpirationsHandler

setFuturesExpirationsHandler

public void setFuturesExpirationsHandler(FuturesExpirationsHandler futuresExpirationsHandler)
Parameters:
futuresExpirationsHandler - the futuresExpirationsHandler to set

getCalendarHandler

public CalendarHandler getCalendarHandler()
Returns:
the calendarHandler

setCalendarHandler

public void setCalendarHandler(CalendarHandler calendarHandler)
Parameters:
calendarHandler - the calendarHandler to set


Copyright © May 23, 2006-2012 The Ferris Foundation. All Rights Reserved.