Below are the CSI Number ranges that distinguish between futures and non-futures.
0 – unused
1000-99999 stocks, indices, etc.
101000-199999 stocks, indices, etc.
201000-299999 stocks, indices, etc.
To test for these cases in code, use the following IF statement:
If (CSINumber MODULO 100000) < 1000 then
‘ it IS a future
‘ it is NOT a future
Fixed Format File Specifications:
The existing field sizes for commodities and stocks are fixed. Therefore multiple header records are required for larger numbers.
Currently the download file contains one header record, multiple data lines, and one trailer record. The new specification calls for the following:
Data records for first group
Data records for second group
Data records for third group
and so on. Programmers need to add 100000 to the instrument numbers in the second group, 200000 to the instrument numbers in the third group, etc. for all headers that are encountered.