title: Problems using IBrokers package
body: <p>I was trying to use IBrokers package with the simplest code like below:</p>
  
  <pre><code>library(IBrokers)
  
  tws &lt;- twsConnect()
  
  aapl.csv &lt;- file("AAPL.csv", open="wa")
  
  # run an infinite-loop ( &lt;C-c&gt; to break )
  reqMktData(tws, twsSTK("AAPL"), 
          eventWrapper=eWrapper.MktData.CSV(1), 
          file=aapl.csv)
  
  close(aapl.csv)
  close(tws)
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>2 1 321 Error validating request:-'oc' : 
  cause - Incorrect generic tick list of 100,101,104,106,165,221,225,236. 
  Legal ones for (STK)
  </code></pre>
  
  <p>And everything hangs...</p>
  
  <p>the whole log is here:</p>
  
  <pre><code>R version 2.13.0 (2011-04-13)
  Copyright (C) 2011 The R Foundation for Statistical Computing
  ISBN 3-900051-07-0
  Platform: x86_64-pc-mingw32/x64 (64-bit)
  
  &gt; library(IBrokers)
  Loading required package: xts
  Loading required package: zoo
  
  Attaching package: 'zoo'
  
  The following object(s) are masked from 'package:base':
  
      as.Date, as.Date.numeric
  
  IBrokers version 0.9-3:
  Implementing API Version 9.64
  This software comes with NO WARRANTY.  Not intended for production use!
  See ?IBrokers for details
  Warning messages:
  1: package 'IBrokers' was built under R version 2.13.2
  2: package 'xts' was built under R version 2.13.2
  3: package 'zoo' was built under R version 2.13.2
  &gt;
  &gt; tws &lt;- twsConnect()
  &gt;
  &gt; aapl.csv &lt;- file("AAPL.csv", open="a")
  &gt;
  &gt; # run an infinite-loop ( &lt;C-c&gt; to break )
  &gt; reqMktData(tws, twsSTK("AAPL"),
  +         eventWrapper=eWrapper.MktData.CSV(1),
  +         file=aapl.csv)
  2 -1 2104 Market data farm connection is OK:cashfarm
  2 -1 2104 Market data farm connection is OK:usfarm
  2 -1 2106 HMDS data farm connection is OK:ushmds2a
  2 1 321 Error validating request:-'oc' : cause - Incorrect generic tick list of 100,101,104,106,165,221,225,236.  Legal ones for (STK) are: 100(Option Volume),101(Option Open Interest),104(Historical Volatility),105(Average Opt Volume),106(Option Implied Volatility),107(Close Implied Volatility),125(Bond analytic data),165(Misc. Stats),166(CScreen),225(Auction),233(RTVolume),236(inventory),258/47(Fundamentals),291(Close Implied Volatility),293(TradeCount),294(TradeRate),295(VolumeRate),318(LastRTHTrade),370(ParticipationMonitor),370(ParticipationMonitor),377(CttTickTag),377(CttTickTag),381(IB Rate),384(RfqTickRespTag),384(RfqTickRespTag),387(DMM),388(Issuer Fundamentals),391(IBWarrantImpVolCompeteTick),407(FuturesMargins),411(Real-Time Historical Volatility)
  
  &gt; (Command cancelled)
  &gt;
  &gt; close(aapl.csv)
  &gt; close(tws)
  </code></pre>
  
  <p>What am I doing wrong here? Any idea for resolution or pointer to references highly appreciated.</p>