Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Pipeline VIX

Hi everyone,

I am still getting this error when trying to output the VIX data.

UnsupportedPipelineOutput: Cannot add column 'open' with term
Latest((yahoo_index_vix.open_::float64,), window_length=1). Adding
slices or single-column-output terms as pipeline columns is not
currently supported. There was a runtime error on line 28.

Any idea ?

Thanks

source code:

from quantopian.algorithm import attach_pipeline, pipeline_output

# General pipeline imports  
from quantopian.pipeline import Pipeline  
from quantopian.pipeline.factors import AverageDollarVolume

# Import the datasets available  
# For use in your algorithms  
# Using the full dataset in your pipeline algo  
from quantopian.pipeline.data.quandl import yahoo_index_vix

def make_pipeline():  
    # Create our pipeline  
    pipe = Pipeline()

    # Add pipeline factors  
    pipe.add(yahoo_index_vix.open_.latest, 'open')  
    pipe.add(yahoo_index_vix.close.latest, 'close')  
    pipe.add(yahoo_index_vix.adjusted_close.latest, 'adjusted_close')  
    pipe.add(yahoo_index_vix.high.latest, 'high')  
    pipe.add(yahoo_index_vix.low.latest, 'low')  
    pipe.add(yahoo_index_vix.volume.latest, 'volume')

    return pipe

def initialize(context):  
    attach_pipeline(make_pipeline(), "pipeline")  
def before_trading_start(context, data):  
    results = pipeline_output('pipeline')  
    return results

def handle_data(context, data):  
    pass  
3 responses

My goal here is just to be able to record the VIX price with it's mean.
Any ideas ?

Thanks
Chris

Hi Chris,

This post details the recent changes to VIX data. Basically, .latest will no longer work; in order to output VIX data directly it's necessary to write a custom factor. There's an example of such a custom factor in the post. Let me know if you need any more help with this.

Disclaimer

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances.

Thank you Nathan.
I will have a look at this post.