¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date
Re: goodAfterTime attribute not supported for combo orders
Works! Thanks a lot J¨¹rgen!
By Ace · #51851 ·
Re: Get movers in the last 1 (say) minute
Hi Gordon, thanks for your reply. A) Yes, actually the examples you gave are normalized according to IB. Hot Contracts by Price Contracts where: (lastTradePrice-prevClose)/avgDailyChange is
By YubiVan · #51850 ·
Re: goodAfterTime attribute not supported for combo orders
You could try a Time Condition ( https://interactivebrokers.github.io/tws-api/order_conditions.html#time_condition ) instead. J¨¹rgen
By J¨¹rgen Reinold · #51849 ·
goodAfterTime attribute not supported for combo orders
HI, I want to attach a?"Good After" market order to an option combo order to close the position at a predeterrmined time using this attibute: time_order.goodAfterTime = expiration_day + ' ' +
By Ace · #51848 ·
Re: Get movers in the last 1 (say) minute
A>> Can you give a definition of "biggest movers" ? Because if you look at TradeRate or VolumeRate, they can be very high on a big MarketCap while simultaneously the PERC_GAIN stay rather small,
By Gordon Eldest · #51847 ·
Get movers in the last 1 (say) minute
Dear all, I was looking for custom scanner to see biggest movers in the last 1 minute say using IB API. Couldn't find any documentation on the scan params, is the best way to proceed to look for
By YubiVan · #51846 ·
Re: questions about the two thread design (TWS c++ api)
It proves that callbacks CANNOT be process anywhere else. It proves that your callbacks will be processed in same thread and sequentially. (if you have a single eReader which is the typical and the
By Gordon Eldest · #51845 ·
Re: questions about the two thread design (TWS c++ api)
Yes, I was able to find those callback invocations in all?EDecoder.cpp as well. However, this just proves that calling *is* done in the main thread, not that it *isn't done in the other thread*.
By tbrown122387@... · #51844 ·
How does IB calculate option prices when ex-dividend date is during the lifetime of the option?
I have a specific query about how the TWS API adjusts option price calculations in the presence of an ex-dividend date. Below is the full context and what I've tried so far. IB offers [option
By HenryE · #51843 ·
Re: TWS api multiple similar orders submission delays
Does that mean you do not send your second Limit order till you get a status update for the first order? If so, this will delay your entire process of placing multiple Limit orders. If I understand
By amar · #51842 ·
Re: questions about the two thread design (TWS c++ api)
To add to Gordon's answer:One thread does I/O, parsing of network messages and formatting of network messages.? The other thread gets callbacks, does your application logic and makes requests to the
By Hunter C Payne · #51841 ·
Re: questions about the two thread design (TWS c++ api)
No Assuming you use a basic implementation, as in the supplied example. You do not have more default processing thread than your number of eReader, typically a single one. So then all callbacks are
By Gordon Eldest · #51840 ·
Re: questions about the two thread design (TWS c++ api)
Thank you for following up because I actually did *not* understand. ¡± It is this [the main] thread that dispatches to your EWrapperImpl callbacks.¡± This makes it sound like all reading and
By tbrown122387@... · #51839 ·
Change ACCOUNT in user interface
Hello community - i hope you are doing well. Is there any API command that letting me change account in the TWS interface? something like : def changeToAccount('DU001') ?
By ofirbux@... · #51838 ·
Re: questions about the two thread design (TWS c++ api)
You don't need to worry about contention between the message reader and sender but you do have to care about possible race conditions between your message dispatch loop and your main thread. i.e. The
By David Armour · #51837 ·
Re: strange execution price for a stop loss
The data that was attached to your post seems to be for 08:32:57 US/Central, one minute later than when the STOP order happened at 08:31:57 US/Central. Prices during the STOP order second were much
By J¨¹rgen Reinold · #51836 ·
Re: Avoiding time.sleep while waiting for openOrder / orderStatus callback after placeOrder
None of that invalidates anything I said about the code you posted. Hunter
By Hunter C Payne · #51835 ·
Re: Avoiding time.sleep while waiting for openOrder / orderStatus callback after placeOrder
threading.Event is a method to communicate between threads. I find it useful when waiting for a server to respond versus time.sleep() - when we get a server response the flag on the response is .set()
By Andrew Bannerman · #51834 ·
Re: Avoiding time.sleep while waiting for openOrder / orderStatus callback after placeOrder
In the interest of helping, Andrew's suggestion is for an interrupt style.? It also has a synchronization bug in it (the blocks of code that reads/writes the flag needs to be in a synch block, them
By Hunter C Payne · #51833 ·
Re: Avoiding time.sleep while waiting for openOrder / orderStatus callback after placeOrder
Python if it's python your using - threading.event() module. Can assign different threads to events as eg: import threading # event threads event = threading.Event() hist_event =
By Andrew Bannerman · #51832 ·