org.ferris.yahoo.finance.jmce.handler
Interface GoldHandler

All Known Implementing Classes:
GoldHandlerByScrape

public interface GoldHandler

Author:
mjr2586

Method Summary
 Gold 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.
 

Method Detail

getByCurrentContract

Gold 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. 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: "Futures tickers are a little different from stocks. Each futures market has a ticker symbol that is followed by symbols for the contract month and the year. For example, crude oil futures have a ticker symbol - CL. The complete ticker symbol for December 2007 Crude Oil Futures would be - CLZ7. The "CL" stands for the underlying futures contract. The "Z" stands for a December delivery month. (F=Jan, G=Feb, H=Mar, J=Apr, K=May, M=June, N=July, Q=Aug, U=Sep, V=Oct, X=Nov, Z=Dec) The "7" stands for the year – 2007." 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://www.cmegroup.com/trading/metals/precious/gold_product_calendar_options.html If Not, a Google search of "comex gold expiry dates 2012" should help find the information NOTE: Last Trading Day (LT) First Notice Day (FN)



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