Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Help with fetch_csv error

Hello, I am trying to use the fetch_csv error but when I want to get the history object I receive the following error : 'ValueError: invalid literal for int() with base 10: 'C'.
There was a runtime error on line 28.'
I have commented out the line because otherwise I cannot attach the backtest. I will be very grateful if somebody can help me out with this.

2 responses

The content in context.stock is a string, try something more like context.stock = sid(50428). Or maybe there's a way to pick it up from fetcher assets.

Thanks a lot ! Passing a sid of a real company did the trick.