开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育
Date
Re: Client 2147483647 on IB Gateway
I used to have software running which had multiple disconnect - connect sequences within short time intervals (less than a few seconds). This worked on old versions of the API and GW, but I ran into
By J G · #52898 ·
Re: Client 2147483647 on IB Gateway
I start my software every Sunday evening (Asia time zone) and let it run until the following Saturday morning. Thus for six days straight. Upon the first connection on the Sunday evening I always get
By J G · #52897 ·
Re: How to route an order in a delayed open (SMART not working)
I don't use SMART routing so I cannot offer practical experience. But I remember that there are several options and strategies you can configure. If you have not done so, take a look at this TWS
By Jürgen Reinold · #52896 ·
Re: best way to display info from ibgateway client
Yeah... Python is the way to go IMHO. In fact, I must be a washed up LISPer because I'd rather just use ib_async directly in a Python REPL. That said, it seems there's probably some value to things
By buddy · #52895 ·
Re: Client 2147483647 on IB Gateway
I don't know all your requirements, but it sounds like you might want to change your design such that clients stay connected and do not disconnect/connect once a minute. Establishing TWS API
By Jürgen Reinold · #52894 ·
Re: Client 2147483647 on IB Gateway
Thank you, Jürgen. You're probably hitting the nail on the head with the issue indeed. No, the connection doesn't persist. the program open a new connection, let's say with client 2000, then the
By @Johan_Alpha · #52893 ·
Re: Client 2147483647 on IB Gateway
Nothing is impossible, but I don't think that what you see relates to the number of data requests the clients make once they are connected. This issue is with the connect() calls and possibly the very
By Jürgen Reinold · #52892 ·
Re: How to route an order in a delayed open (SMART not working)
rwk, I'm assuming you are just routing SMART when you do this preMarket trading?? I think for now I will try the simple solution of: myOrder.outsideRth = true; and see if that fixes it.? I've done
By Greg Schulte · #52891 ·
Re: Client 2147483647 on IB Gateway
The problem is that I've already spent few hours examining all my logs in detail, and I don't see any apparent errors. I have an idea of where this might be coming from, but I'm not certain. Here's
By @Johan_Alpha · #52890 ·
Re: Client 2147483647 on IB Gateway
Thank you, Jürgen, for providing these valuable insights. The diagram is excellent and helps in understanding how the connection works. So, if I summarize correctly, the client with ID 2147483647
By @Johan_Alpha · #52889 ·
Re: Data logger no longer works after switching from TWS to Gateway
I'd now check the IBGW/TWS API log, but you might want to select the configuration option that includes market data in the API log file. You'd see, from the TWS/IBGW perspective: * whether IBGW/TWS
By Jürgen Reinold · #52888 ·
Re: Data logger no longer works after switching from TWS to Gateway
If you notice from above, printf("Debug: requesting live market data\n") never appears in the output. That was inside reqMarketData(). The actual data being delivered by realtimeBars() calls is being
By tbrown122387@... · #52887 ·
Re: Client 2147483647 on IB Gateway
2147483647 is actually MAXINT, the largest positive integer value that can be expressed in four bytes (2^31 - 1). TWS/IBGW/TWS API often uses MAX values for int, long, and double to indicate missing
By Jürgen Reinold · #52886 ·
Re: Data logger no longer works after switching from TWS to Gateway
Nope, still doesn't work. nextValidId() is being called, as evidenced by the print statement. Still no data from realtimeBars() only in this morning situation, though: Start of C++ Socket Client Test
By tbrown122387@... · #52885 ·
Re: Client 2147483647 on IB Gateway
Either it isn't being created and instead the connection id is being set to -1 somehow or a message is received and somehow it has connection id of -1 and it creates a new connection to receive this
By Hunter C Payne · #52883 ·
Re: Client 2147483647 on IB Gateway
Ok thank you Hunter for your answer. But what are the reasons for creating this client?
By @Johan_Alpha · #52882 ·
Re: How to route an order in a delayed open (SMART not working)
It has been my impression that order handling rules are different outside RTH (regular trading hours). I suspect RTH doesn't start for NYSE stocks until the NYSE official open . . . just a guess. I
By rwk · #52881 ·
Re: Client 2147483647 on IB Gateway
I believe that 2147483647 is -1 when casted to an unsigned int.? I think that is what you are seeing. Hunter
By Hunter C Payne · #52880 ·
Client 2147483647 on IB Gateway
Hi everyone, I would like to get your feedback on this mysterious client issue with IB Gateway. Indeed, in a random and incomprehensible way to me, my IB Gateway portail often creates a client with
By @Johan_Alpha · #52879 ·
Re: best way to display info from ibgateway client
I write on python, so I used Flask to create a web-based dashboard with all the data points I need. I use it locally, but I guess with correct routing and SSL settings you can view it from
By bespalex · #52878 ·