Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
New to Quantopian help fixing api and compatible with robinhood

Hi,

I am new to programming and I would like to fix the api, make it compatible with robhinhood. (Currently it trades above the starting capital)
Also it does not work with certain stocks due to past stocks having the same symbol.

1 response

Hi,

To use the current stocks, in line 5, replace the use of "symbols" with "sid".
e.g.

context.stocks= symbols('LUV', 'P', 'AAL', 'GRPN', 'F')

context.stocks= [sid(4589),sid(41579),sid(45971),sid(42118),sid(2673)]