HOME FORUMS BROKERS SOFTWARE BOOKS CONTACT US
Elite Trader Your Account  •  Become a Member  •  Help  •  Search    
    Forums ›› Technically Speaking ›› Order Execution ›› IB API - orderID? new orderID for every order?  


Post A Reply
    Page 2 of 2:   1   2  
Bob111
 

Registered: May 2002
Posts: 6422

 

05-22-13 02:35 AM


Quote from bluematrix:

oh sure, it was that every time you restart it, it doesn't reset - you need to pick up the last order you had used.



that's right.just a random example- imagine holding large position on same stock with multiple entries and maybe open target\stops orders. then your internet dies or Pc crashed or whatever. you have to restart TWS and now you stuck,if you don't have your ID's and rest of the info about orders stored or they reset because of this restart. what you gonna do?
it's the only way-assign new ID in whatever increments you like every time upon successful connection. TWS keeps track of them on your side and fire next available every time

    Edit/Delete Quote Complain
bluematrix
 

Registered: Jan 2012
Posts: 114

 

05-22-13 02:48 AM


Quote from Bob111:

that's right.just a random example- imagine holding large position on same stock with multiple entries and maybe open target\stops orders. then your internet dies or Pc crashed or whatever. you have to restart TWS and now you stuck,if you don't have your ID's and rest of the info about orders stored or they reset because of this restart. what you gonna do?
it's the only way-assign new ID in whatever increments you like every time upon successful connection. TWS keeps track of them on your side and fire next available every time



yup that's it. thanks for the help.

    Edit/Delete Quote Complain
    Page 2 of 2:   1   2  
Post A Reply


Receive an email whenever a new post is added to this thread by subscribing to it.
 
Rate This Thread:

Forum Jump:
 

 

   Conduct Rules  -  Privacy Policy  -  Day Trader -  Day Trader Forum -  Best Trading Software -  Sitemap Copyright © 2013, Elite Trader. All rights reserved.    
 
WHILE YOU'RE HERE, TAKE A MINUTE TO VISIT SOME OF OUR SPONSORS:
Advantage Futures
Futures Brokerage & Clearing
AMP Global Clearing
Futures and FX Trading
Bright Trading
Professional Equities Trading
CTS
Futures Trading Software
DaytradingBias.com
Professional Trading Analytics
ECHOtrade
Professional Trading Firm
eSignal
Trading Software Provider
FXCM
Forex Trading Services
Global Futures
Futures, Options & FX Trading
Interactive Brokers
Pro Gateway to World Markets
JC Trading Group
Direct Access Trading
MB Trading
Direct Access Trading
MultiCharts
Trading Software Provider
NinjaTrader
Trading Software Provider
OANDA
Currency Trading
optionshouse
Option Trading & Education
Rithmic
Futures Trade Execution Platform
SpeedTrader
Direct Access Trading
SpreadProfessor
Spread Trading Instruction
thinkorswim by TD Ameritrade
Direct Access TradingAdvertisement
TradersStudio
System Building & Backtesting
Trading Technologies
Trading Software Provider
Trend Following
Trading Systems Provider