Hi,
I've been writing some algorithms with Quantopian and Zipline in parallel, in order to to use the upsides of both of them.
However after some confusion I've realized that the two use different sets of SIDs.
Maybe I have understood the concept of and SID wrong, but specifically in the tutorial it even states "A security's SID never changes."
For example (I ran it on Zipline 1.0.2 - with the standard quantopian-quandl bundle from the 05.Feb.2017):
On Quantopian the following code:
print(sid(24))
print(symbol('ACRX'))
produces the following output:
1970-01-01 01:00 PRINT Equity(24 [AAPL])
1970-01-01 01:00 PRINT Equity(40827 [ACRX])
In zipline however the SIDs of those two stocks are different- generally I've observed no stocks have the same SIDs.
Input:
print(sid(24))
print(symbol('AAPL'))
Output:
Equity(24 [ACRX])
Equity(2689 [AAPL])
This goes against the "tip" of working with SIDs instead of Symbols - as the SIDs are not consistent across versions.
What causes this inconsistency?