Usage:                                                                                                         
   NewsSample [-h <host>] -u <username> -p <password>                                                          
              [-timeout <connect timeout>]
              [ -r <requestType> -ns <services> -s <symbolsOrStoryID> -sf <storyFormat> -c <categories> ]      
              [ -hc <headlineStoryCount> -b <beginTime> -e <endTime> -hd <days> -actions <actions> ]           
              [ -sp <searchText> -f <searchFields> -phrase <isPhrase> -all <allWords>  ]                       
              [ -fulltext <fullText> -wholeword <wholeWord> -matchcase <matchCase> -so <sortOrder> ]           
              [-disp <displaySwitch>]                                                           
                                                                                                               
where                                                                                                          
                                                                                                               
   Arg   Value                  Description                                                                    
   ---   -----                  -----------                                                                    
   -h    <host>                 Specifies the address to use to connect to the ICE Data Services               
                                Consolidated Feed Network.                                                     
                                                                                                               
                                For example: cm*.esignal.com                                                   
                                                                                                               
   -u    <username>  (required) The username for the account entitled to receive data from                     
                                ICE Data Services. If you do not have one, please contact                      
                                your ICE Data Services representative.                                         
                                                                                                               
   -p    <password>  (required) The password for the account entitled to receive data from                     
                                ICE Data Services. If you do not have one, please contact                      
                                your ICE Data Services representative.                                                                                                                                                        
                                                                                                        
   -timeout <connect timeout>   The API allows up to 30 seconds to establish a connection before it
                                "times out" and makes another attempt.  The 30 second default can be 
                                overridden using this argument.  For example, to set the timeout to
								6 seconds enter the following:

								   -t 6

								note:  The minimum value accepted is 1 second, however, setting the 
								       connection timeout to a value less than 6 seconds may compromise
									   your ability to connect to the ICE Data Services consolidated network.

   -r    <requestType>          Specifies what kind of news request to make.  Valid values include:            
                                                                                                               
                                   - headline                                                                  
                                     This is a non-streaming request for headlines that meet search criteria.  
                                                                                                               
                                   - subscribe                                                                 
                                     This is a streaming request for headlines that meet search criteria.      
                                                                                                               
                                   - story                                                                     
                                     This is a request for a story associated with a story ID.                 
                                                                                                               
   -ns   <services>             Comma separated list of news services.  News services are specified by the     
                                ICE Data Services two letter service code for each news service. For example:  
                                                                                                               
                                   -ns "CT,PR,N1,PC"                                                         
                                                                                                               
   -s    <symbolsOrStoryID>     Comma separated list of symbols or a single story ID for which to make a       
                                request. Multiple symbols must be enclosed in quotes and separated by commas.  
                                                                                                               
                                   For example: "IBM,GE,WFM"                                                 
                                                                                                               
                                NOTE: You cannot mix symbols and story IDs.                                    
                                      You cannot submit multiple story IDs in a single request.                
                                                                                                               
   -sf   <storyFormat>          The format the News Service should provide for the requested story.            
                                Valid formats include:                                                         
                                                                                                               
                                   - url                                                                       
                                     The response includes a URL address to the story.                         
                                                                                                               
                                   - html                                                                      
                                     The response is an HTML document provided as a string.                    
                                                                                                               
   -c    <categories>           A single word, or multiple words enclosed in quotes and separated by commas    
                                that identify vendor categories, products, topics, language, region, etc.       
                                                                                                               
                                For example: -c business                                                       
                                                                                                               
   -hc   <headlineStoryCount>   The number of headlines or stories to return for a search request, regardless  
                                of the total number available.                                                 
                                                                                                               
   -b    <beginTime>            Is the start of the time range in which to conduct the news search.            
                                The format to specify the range date and time is is yyyy/mm/dd hh:mm:ss.       
                                For example:                                                                   
                                                                                                               
                                   -b "2017/1/1 00:00:00"                                                    
                                                                                                               
   -e    <endTime>              Is the end of the time range in which to conduct the news search.              
                                The format to specify the range date and time is is yyyy/mm/dd hh:mm:ss.       
                                For example:                                                                   
                                                                                                               
                                   -e "2017/3/31 00:00:00"                                                   
                                                                                                               
                                NOTE: Setting this value to 0 indicates to use the current time as the end time
                                      for the search.                                                          
                                                                                                               
   -hd   <days>                 The number of days to search from the current day moving backward.             
                                                                                                               
   -actions  <actions>          Valid values include:                                                          
                                                                                                               
                                   - 0  =  Send only new headlines (default)                                   
                                   - 1  =  Send all headline update actions                                    
                                                                                                               
   -sp   <searchText>           A single word, set of words, or phrase to search.  Multiple words should be    
                                separated by commas and contained in quotes.                                   
                                                                                                               
                                For example:  -sp "gains,above expectations"                                 
                                                                                                               
   -f    <searchFields>         The fields in which to search for the instruments, words, phrases, etc.        
                                Search fields include:                                                                
                                                                                                               
                                   - headline                                                                  
                                   - story                                                                     
                                   - category                                                                  
                                   - symbol                                                                    
                                   - all                                                                       
                                                                                                               
   -phrase <isPhrase>           Valid values include:                                                          
                                                                                                               
                                   - 0  =  The search text is not a phrase (default)                           
                                   - 1  =  The search text is a phrase                                         
                                                                                                               
   -all  <allWords>             Valid values include:                                                          
                                                                                                               
                                   - 0  =  Do not require a match of all words (default)                       
                                   - 1  =  Require all words specified                                         
                                                                                                               
   -fulltext  <fullText>        Valid values include:                                                          
                                                                                                               
                                   - 0  =  Do not perform a full-text search (default)                         
                                   - 1  =  The search is a full-text search                                    
                                                                                                               
   -wholeword   <wholeWord>    Valid values include:                                                           
                                                                                                               
                                   - 0  =  Allow partial word matches (default)                                
                                   - 1  =  Require whole word matches                                          
                                                                                                               
   -matchcase  <matchCase>      Valid values include:                                                          
                                                                                                               
                                   - 0  =  The search is case-insensitive (default)                            
                                   - 1  =  The search is case-sensitive                                        
                                                                                                               
                                The default is to search the headline field.                                   
                                                                                                               
   -so   <sortOrder>            The order in which to return the news search results.  Valid values include:   
                                                                                                               
                                   - 0  =  time descending (default)                                           
                                   - 1  =  time ascending                                                      
                                   - 2  =  relevancy score                                                     
                                                                                                               
  -disp <displaySwitch>         indicates how to format the data received from the Interday History     
                                service.  Valid settings include:                                       
                                                                                                        
                                   ON      the data will be formatted for viewing the output            
                                           on the screen. (default)                                     
                                                                                                        
                                   OFF     the data will be formatted for viewing the output            
                                           as a comma separated value (CSV) file.                       
                                                                                                        
                                note:  When set to OFF, the command line must end with standard         
                                       redirection syntax and a file name.  For example:                
                                                                                                        
                                          -disp OFF >> output.csv                                       
                                                                                                        
Note:  If you do not enter a values for the [optional] arguments, the default values will be used.             
       <username> and <password> must be entered at the command line.                                          
