开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育
Date
Re: status of com.ib.controller.ApiController API
There is a difference of perspective here. This is what I mean by atomic. From https://preshing.com/20130618/atomic-vs-non-atomic-operations also
By Nick <news1000@...> · #47087 ·
Re: status of com.ib.controller.ApiController API
Richard is right on this one. * In Java, C, C++, ... no guarantees are given that a post increment on an intrinsic is atomic, so m_reqId++ definitely is not. * two or more threads can get the same
By Jürgen Reinold · #47086 ·
Re: status of com.ib.controller.ApiController API
The increment is atomic. A thread will either see the pre or post increment value. It will never see some bytes of the pre-increment value and some bytes of the post-increment value. The increment is
By Nick <news1000@...> · #47085 ·
Re: status of com.ib.controller.ApiController API
Artyom, yes that's true of request IDs, but not of order ids. I haven't looked at your pull request, as I have no interest in the ApiController, so you may well have dealt with any synchronization
By Richard L King · #47084 ·
Re: Time in force of child order
It's TWS time by default but timezone can be specified explicitly either. ср, 21 апр. 2021 г., 22:19 Bruce B <bruceb444@...>:
By ds-avatar · #47083 ·
Re: Time in force of child order
There is a time parameter you receive at one of account update request which might be the time you need to use. This is probably provided other ways too. -Bruce
By Bruce B · #47082 ·
Re: Time in force of child order
Thanks, Richard! Now I saw I can also use GTD and specify an exact point in time when I want the order to be canceled automatically. The time shall be given in the format YYYYMMDD hh:mm:ss. Now I'm
By Despair · #47081 ·
Re: status of com.ib.controller.ApiController API
Richard, from EClient documentation it's not apparent that reqId parameters must be in any order. The only requirement I can read is 'unique identifier'. Artyom
By Artyom T. · #47080 ·
Re: status of com.ib.controller.ApiController API
Dmitry All the API request methods are declared as synchronized, so there will be no parallel usage of the socket if they are called from different threads. Managing request ids, order ids etc
By Richard L King · #47079 ·
Re: Time in force of child order
Yes, you need to set tif to GTC for the child order ( I hit the same thing some time back). And no, the trailing order (or any kind of stop-loss order) will not be cancelled automatically if you
By Richard L King · #47078 ·
Re: Time in force of child order
You ignored the first question. I take this as confirmation? So setting the tif for the trail order to GTC will have it in the market until it is executed or canceled. Then I think you also
By Despair · #47077 ·
adding timestamp as a field in the tickPrice object
I am streaming options quotes using the tickprice object, which is in line 734 of program.py. The options quotes stream nicely, but I notice there is no "timestamp" field there. Is there a good way
By ebtrader · #47076 ·
Re: Time in force of child order
One order has nothing to do with the other. In the scenario you explained, you might end up shorting the product - for example - if you have a margin (when all three of your orders go
By Bruce B · #47075 ·
Time in force of child order
I'm wondering the following, I have a buy limit order with an attached trailing stop order as child order. When the order is executed the trailing stop starts working, all fine. But the next day the
By Despair · #47074 ·
Re: status of com.ib.controller.ApiController API
Hi Artyom, You tried to change ApiController to make it possible to concurrently call reqXXX request methods, but it will not work. As soon as you manage to call two requests methods from different
By Dmitry Shevkoplyas · #47073 ·
Re: No combo order for futures and their options
Try Non-guaranteed Combination Orders https://ibkr.info/node/1683
By Francois G · #47072 ·
Re: status of com.ib.controller.ApiController API
reason for question is that I've made a PR, which was declined: https://github.com/InteractiveBrokers/tws-api/pull/1029
By Artyom T. · #47071 ·
SPX options historical data only 1 month??
I'm trying to download spx options histo, but only getting 1 week's data back. Am i doing something wrong? I first do reqContractDetails to get all the options for an expiry filling in only symbol =
By hannnnny@... · #47070 ·
Re: IB Gateway seemed disconnected when in a web page is refreshed having real time data stream
Yes, you can add another subscription to streaming data if you already have subscriptions running, without disconnecting from TWS/Gateway. You just need to call reqMktData() for the additional
By J G · #47069 ·
Re: Callbacks for Orders not receiving any notification
Solved the problem. For reference for others: I wasn't fully initiating the connection and wasn't waiting. After that was done all call backs worked well. [email protected]> wrote:
By Bruce B · #47068 ·