<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi,</div>

<div> </div>

<div>here my code</div>

<div> </div>

<div>require(IBrokers)<br/>
tws=twsConnect(clientId = 22)<br/>
reqCurrentTime(tws)<br/>
serverVersion(tws)<br/>
isConnected(tws)</div>

<div>order=twsOrder(orderId=reqIds(tws),clientId = 22,totalQuantity=1,orderType="MOC",action="BUY")<br/>
placeOrder(tws,twsSTK("SPY"),order)</div>

<div> </div>

<div>OUTPUT</div>

<div> </div>

<div>
<pre class="GNVMTOMCABB" style="border-bottom-style: none; line-height: 1.2; border-right-style: none; margin: 0px; outline-style: none; font-family: 'Lucida Console'; white-space: pre-wrap !important; border-top-style: none; font-size: 10pt !important; border-left-style: none; -webkit-user-select: text" tabindex="0">TWS Message: 2 -1 2104 Market data farm connection is OK:usfuture 
TWS Message: 2 -1 2104 Market data farm connection is OK:eurofarm 
TWS Message: 2 -1 2104 Market data farm connection is OK:cashfarm 
TWS Message: 2 -1 2104 Market data farm connection is OK:usfarm.us 
TWS Message: 2 -1 2104 Market data farm connection is OK:usfarm 
[1] "2013-07-10 12:47:41 CEST"
<span class="GNVMTOMCDBB ace_keyword" style="white-space: pre; color: blue">> </span><span class="GNVMTOMCHAB ace_keyword" style="color: blue">serverVersion(tws)
</span>[1] "67"
<span class="GNVMTOMCDBB ace_keyword" style="white-space: pre; color: blue">> </span><span class="GNVMTOMCHAB ace_keyword" style="color: blue">isConnected(tws)
</span>[1] TRUE
<span class="GNVMTOMCDBB ace_keyword" style="white-space: pre; color: blue">> </span><span class="GNVMTOMCHAB ace_keyword" style="color: blue">orderId=reqIds(tws)
</span><span class="GNVMTOMCLAB  ace_constant" style="color: rgb(197,6,11)">Warnmeldung:
</span><span class="GNVMTOMCLAB  ace_constant" style="color: rgb(197,6,11)">In reqIds(tws) : NAs durch Umwandlung erzeugt
</span><span class="GNVMTOMCDBB ace_keyword" style="white-space: pre; color: blue">> </span><span class="GNVMTOMCHAB ace_keyword" style="color: blue">orderId2=reqIds(tws)
</span><span class="GNVMTOMCDBB ace_keyword" style="white-space: pre; color: blue">> </span><span class="GNVMTOMCHAB ace_keyword" style="color: blue">orderId3=reqIds(tws)
</span><span class="GNVMTOMCDBB ace_keyword" style="white-space: pre; color: blue">> </span><span class="GNVMTOMCHAB ace_keyword" style="color: blue">orderId4=reqIds(tws)</span></pre>
</div>

<div> </div>

<div> </div>

<div> </div>

<div>My problem I receive no valid orderId</div>

<div>When I try the first request - the orderid equals my Accountnumber</div>

<div>the 2nd orderid request ends with "NA_CHARACTER_" same for all the followings</div>

<div> </div>

<div>Any idea</div>

<div>Many thanks</div>

<div> </div>

<div>Best Regards</div>

<div>Martin</div>

<div> </div>

<div> </div></div></body></html>