Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to tell if a price jump is a stock split?

How to tell if a price jump is caused by a stock split or it's a real stock price jump ?
If it's a stock split, would the quantopian API automatically map all the history prices in time to reflect the split?
Right now i am using a little codes to judge if a split would fail to be caught, would that help?

if current/yesterday>1.9 or current/yesterday<0.55:  
    log.info('Data Error detacted! Break!')  
    return  
4 responses

The prices are split adjusted. Although every now and then there is an error in the data or a listing/de-listing with same ticker symbol can sometimes provide inaccurate information. Just last week I found a stock ticker that went from 0.79 to 10.xx overnight. The error was caused by the second reason mentioned above. Usually these are easy to detect by just looking for big spikes or drops in algo returns.

based on what conditions threshold values of 1.9 and 0.55 are used to detect any stock split not being caught? please help me out in understanding it

Is there a better solution to get proper returns, other than checking for jumps in USEquityPricing.close.latest ? Is there perhaps a field that is reliable?

If you're using pipeline then the Returns method should always give the correct split adjusted return. There's generally no reason not to trust the data. That isn't to say there may not be some problems as noted in the first post. But, if one trades the QTradableStocks, then the data is very good.