Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
function: get history of Futures by specific year and month.

Parameters

  • symbol : str
    ticker symbols
  • year : int
    year of delivery
  • month : int
    month of delivery
  • fields : str or list
    same as data.history
  • start : str or pd.Timestamp
    same as data.history
  • end: str or pd.Timestamp
    same as data.history

Returns

  • pandas.DataFrame
    The pricing data by data.history