{"id":3610,"date":"2018-09-28T20:40:46","date_gmt":"2018-09-28T20:40:46","guid":{"rendered":"http:\/\/www.csidata.com\/?page_id=3610"},"modified":"2024-11-19T13:46:22","modified_gmt":"2024-11-19T13:46:22","slug":"history-format2-specification","status":"publish","type":"page","link":"https:\/\/www.csidata.com\/?page_id=3610","title":{"rendered":"History Format#2 Specification"},"content":{"rendered":"<p><strong>Stock files (.CSV)<\/strong><br \/>\nOne issue per file<\/p>\n<p>Field 1: Date &#8211; multiple formats, generally YYYYMMDD<br \/>\nField 2: Open (decimal)<br \/>\nField 3: High (decimal)<br \/>\nField 4: Low (decimal)<br \/>\nField 5: Close (decimal)<br \/>\nField 6: Volume in 100s of shares (integer)<br \/>\nField 7: Dividend in 1\/1000s of currency (integer)<\/p>\n<p><strong>Fund files (.CSV)<\/strong><br \/>\nOne issue per file<\/p>\n<p>Field 1: Date &#8211; multiple formats, generally YYYYMMDD<br \/>\nField 2: Net Asset Value (decimal)<br \/>\nField 3: Net Asset Value + Load (if any) (decimal)<br \/>\nField 4: Net Asset Value (decimal)<br \/>\nField 5: Net Asset Value (decimal)<br \/>\nField 6: Dividend in 1\/1000s of currency (integer)<br \/>\nField 7: Capital Gain in 1\/1000s of currency (integer)<\/p>\n<p><strong>Futures files (.CSV)<\/strong><br \/>\nOne delivery month contract per file with the filename [csinum]\\[csinum]-[DY]-[DM].csv where DY is the delivery year and DM is the delivery month.<\/p>\n<p>Field 1: Trade Date as YYYYMMDD<br \/>\nField 2: Open (decimal)<br \/>\nField 3: High (decimal)<br \/>\nField 4: Low (decimal)<br \/>\nField 5: Close price. (decimal) (can be settlement or last depending on the CSI number)<br \/>\nField 6: Contract Volume (integer)<br \/>\nField 7: Contract Open Interest (integer)<br \/>\nField 8: Total Volume for all contracts (integer)<br \/>\nField 9: Total Open Interest for all contracts (integer)<\/p>\n<p><strong>Cash files (.CSV)<\/strong><br \/>\nOne cash file per future with the filename [symbol]\\[symbol]_0000.csv.<\/p>\n<p>Field 1: Trade Date as YYYYMMDD<br \/>\nField 2: Cash Open (decimal)<br \/>\nField 3: Cash High (decimal)<br \/>\nField 4: Cash Low (decimal)<br \/>\nField 5: Cash Close price. (decimal)<br \/>\nField 6: Total Volume for all contracts (integer)<br \/>\nField 7: Total Open Interest for all contracts (integer)<br \/>\nField 8: Total Volume for all contracts (integer)<br \/>\nField 9: Total Open Interest for all contracts (integer)<\/p>\n<p><strong>Dividend\/Capital Gain files (.DIV)<\/strong><br \/>\nOne file per issue that has dividends or capital gains<\/p>\n<p>Field 1: Ex Date &#8211; multiple formats, generally YYYYMMDD<br \/>\nField 2: Dividend (decimal)<br \/>\nField 3: Capital Gain (decimal)<\/p>\n<p><strong>Splits files (.SPT)<\/strong><br \/>\nOne file per issue that has splits<\/p>\n<p>Field 1: Date &#8211; multiple formats, generally YYYYMMDD<br \/>\nField 2: Number of new shares (integer)<br \/>\nField 3: Number of old shares (integer)<\/p>\n<p><strong>SYMBOLS.CSV file<\/strong><\/p>\n<p>Field 1: CSI identification number<br \/>\nField 2: Symbol as used in the filenames<br \/>\nField 3: Symbol used by CSI<br \/>\nField 4: Conversion Factor (to convert prices given in points to decimals)<br \/>\nField 5: CSI Exchange\/Group<br \/>\nField 6: Stock Type<br \/>\nField 7: Name<\/p>\n<p><strong><a id=\"OptionsHeader\"><\/a>Options Header File<\/strong><br \/>\nFilename format is W\\WP.csv where W is the Market symbol and P is Put.<\/p>\n<p>Field 1: Trade date<br \/>\nField 2: Market symbol<br \/>\nField 3: Put (P) or Call (C)<br \/>\nField 4: Total volume for all strikes<br \/>\nField 5: Total option interest for all strikes<\/p>\n<p><a id=\"FuturesOptions\"><\/a><strong>Futures Options<\/strong><br \/>\nFilename format is \\21\\202107\\P00850.csv where 21 is the unique market identifier (csinum), 2021 is the delivery year, 07 is the delivery month, P is Put, and 00850 is the strike price in points format.\u00a0 Optionally the history can be generated with symbol folders where &#8217;21&#8217; is replaced with &#8216;W&#8217;, the market symbol.<\/p>\n<p>Field 1: Trade date<br \/>\nField 2: Market symbol<br \/>\nField 3: Delivery month and year.<br \/>\nField 4: Put (P) or Call (C)<br \/>\nField 5: Strike price<br \/>\nField 6: Open (Opens are not available prior to 7\/1\/2021)<br \/>\nField 7: High<br \/>\nField 8: Low<br \/>\nField 9: Settle<br \/>\nField 10: Volume<br \/>\nField 11: Open Interest<\/p>\n<p><a id=\"StockOptions\"><\/a><strong>Stock Options<\/strong><br \/>\nFilename format is \\5230\\202107\\P00850.csv where 5230 is the unique market identifier (csinum), 2021 is the delivery year, 07 is the delivery month, P is Put, and 00850 is the strike price. Optionally the history can be generated with symbol folders where &#8216;5230&#8217; is replaced with &#8216;OEX&#8217;, the market symbol.<\/p>\n<p>Field 1: Trade Date<br \/>\nField 2: Symbol<br \/>\nField 3: Delivery month and year.<br \/>\nField 4: Put (P) or Call (C)<br \/>\nField 5: Strike price<br \/>\nField 6: Bid<br \/>\nField 7: Ask<br \/>\nField 8: High<br \/>\nField 9: Low<br \/>\nField 10: Last<br \/>\nField 11: Volume<br \/>\nField 12: Open Interest<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stock files (.CSV) One issue per file Field 1: Date &#8211; multiple formats, generally YYYYMMDD Field 2: Open (decimal) Field 3: High (decimal) Field 4: Low (decimal) Field 5: Close (decimal) Field 6: Volume in 100s of shares (integer) Field 7: Dividend in 1\/1000s of currency (integer) Fund files (.CSV) One issue per file Field [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":625,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/www.csidata.com\/index.php?rest_route=\/wp\/v2\/pages\/3610"}],"collection":[{"href":"https:\/\/www.csidata.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.csidata.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.csidata.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.csidata.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3610"}],"version-history":[{"count":22,"href":"https:\/\/www.csidata.com\/index.php?rest_route=\/wp\/v2\/pages\/3610\/revisions"}],"predecessor-version":[{"id":5066,"href":"https:\/\/www.csidata.com\/index.php?rest_route=\/wp\/v2\/pages\/3610\/revisions\/5066"}],"up":[{"embeddable":true,"href":"https:\/\/www.csidata.com\/index.php?rest_route=\/wp\/v2\/pages\/625"}],"wp:attachment":[{"href":"https:\/\/www.csidata.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}