Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- Twsapi
- Messages
Search
Re: TWS app keeps exiting on my desktop
You might have a JVM log file with more information in case the JVM fails or gives up on TWS for some reason. The file is called? hs_err_pidXXXXX.log with XXXX elaced with the JVM process ID. You will find that file in the "current working directory" where the JVM was running. In many cases that is the Jts installation root folder. But it could be in one of your local folders if you start TWS in a different folder.
toggle quoted message
Show quoted text
You might have quite a lot of those files if your TWS exists frequently. JR On Thu, Mar 18, 2021 at 10:44 AM, Stuart Cracraft wrote:
Nothing in the logs. |
Re: TWS app keeps exiting on my desktop
Stuart Cracraft
toggle quoted message
Show quoted text
On Mar 18, 2021, at 8:56 AM, mark collins <mark.collins@...> wrote:
|
Re: TWS app keeps exiting on my desktop
It might be that simple, I run mine on virtual machines with a couple of gb ram each and one or two virtual cpus, I do have to raise this if I'm doing a lot with them though. Monitor the resource loads and see whether it is indeed just that. Best wishes, M On Thu, 18 Mar 2021 at 15:44, Stuart Cracraft via <smcracraft=[email protected]> wrote: Nothing in the logs. -- +44 (0) 7528 551604? Gulfstream Software - Winner Risk Management Awards 2010 This message is subject to : |
Re: TWS app keeps exiting on my desktop
Stuart Cracraft
Nothing in the logs.
toggle quoted message
Show quoted text
Not doing anything except letting it run. I suspect general memory starvation on the instance and will increase its capacity (memory + compute + network) for a tech refresh. On Mar 18, 2021, at 8:37 AM, mark collins <mark.collins@...> wrote: |
Re: TWS app keeps exiting on my desktop
Check the logs for errors, because that's not normal behaviour. If there's no errors it could be getting terminated by the os if it's taking a lot of resources, but almost certainly it's something you're doing and not noticing. Best wishes, M On Thu, 18 Mar 2021, 14:27 Stuart Cracraft via , <smcracraft=[email protected]> wrote: I login, go away, come back and it¡¯s exited. |
Re: How to get all VALID options
juxeiier
Hi Michael,
you might wanna try this little tool I have written, see /g/twsapi/topic/little_tool_for_option_chain/81408600?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,81408600 It basically frees you from doing all of this and provides a fast caching mechanism if? you reload your application. Cheers, Juergen |
Re: Help getting realtime data stream via TWS API for TICK-NYSE and TRIN-NYSE
Go into TWS and right click on any instrument (TRIN or TICK) and select Financial Instrument Info -> Description.? The correct information to put into the Contract object will be specified on the left side of the window that pops up.? In the case of TICK you get: Underlying = TICK-AMEX Security Type = IND Currency = USD Exchange = AMEX Symbol = TICK-AMEX That's what you set for TICK-AMEX. Hunter
On Thursday, March 18, 2021, 2:20:03 AM PDT, Ullas Diwakar <ullasdiwakar96@...> wrote:
Hi,
I want to get the data stream for the index TICK and TRIN. I read around the group and saw that i need to create the contract with the name TICK-NYSE and TRIN-NYSE with secType as "IND". After that, I tried to subscribe to realtime data using both reqMktData and?reqRealTimeBars but I am not getting any ticks for it. I want to know how to get the real time data stream for these two indices.? Thanks |
Help getting realtime data stream via TWS API for TICK-NYSE and TRIN-NYSE
Hi, I want to get the data stream for the index TICK and TRIN. I read around the group and saw that i need to create the contract with the name TICK-NYSE and TRIN-NYSE with secType as "IND". After that, I tried to subscribe to realtime data using both reqMktData and?reqRealTimeBars but I am not getting any ticks for it. I want to know how to get the real time data stream for these two indices.? Thanks |
Re: How to get all VALID options
Filtering on SMART when dealing with US stocks is OK, but when you deal with foreign or commodities exchanges (MONEP, GLOBEX, NYMEX...), SMART doesn't work anymore.
This is my algo, compliant with any symbol any exchange: I collect all answers from reqSecDefOptParams. If SMART is present in the answers, I only keep SMART. If SMART is NOT present, I keep all answers. |
Re: event when a stock reaches a certain price
50 messages per second do not apply to this. However, there is some other limit, based on available market data lines. But polling snapshots have another problem (at least it had a couple of years ago) - snapshot could be cached if polled too frequently. So instead of new prices, you are getting something stale. On Thu, Mar 18, 2021 at 3:16 AM <sudhin_deshpande@...> wrote: Instead of subscribing, why not poll each ticker to get the last price? --
SI: ?+386-30-315-640 |
Re: event when a stock reaches a certain price
You might have just solved that riddle for me, Bruce, why sometimes only four of the five TickByTick subscriptions succeed. I don't always subscribe to Level II data, so that seems to free up extra TickByTicks.
toggle quoted message
Show quoted text
I tried to stay with IB terminology, so when I referred to market data for the ~75 contracts it means data streams from reqTopMktData() requests. No TickByTick or Level II data. But we determine all valid tick ids for each equity type (STK, FUT, IND, ..) and request everything they are willing to give. So while there is no TickByTick or Level II for those 75, the amount of data is quite substantial. A long time ago we switched to mostly immutable objects, flow processing, and a logging strategy that favors logging complete objects over human readable text. That way we can drill down after the fact and are not limited to deciphering incomplete information in the log messages. Objects are being serialized into Json strings and saved with some rich extra context. Log files are being rolled every 15min and compressed with "gzip --best" n the background at low system priorities. That all is handled asynchronously in a couple threads and does not slow down IB API callback processing even under the heaviest of loads. I just grabbed a random day that had 35 million IB callbacks:
Processing can takes place in parallel on multi-processors and most systems have ample idle and otherwise unused CPU power for this. ´³¨¹°ù²µ±ð²Ô On Wed, Mar 17, 2021 at 08:22 PM, Bruce B wrote:
|
Re: event when a stock reaches a certain price
Instead of subscribing, why not poll each ticker to get the last price?
I think IB has a limit of 50 messages per second (correct me if I am wrong) For 800 tickers, that would be 16 seconds. So you would poll each ticker about every 16 seconds. Would that work for you? |
Re: event when a stock reaches a certain price
JR, You must have 8 market depth level 2 subscriptions. I seem to have 6 subscriptions and can pull 6 full book depth level 2 but if I use?TickByTickBidAsk?that also counts towards marketdepthlevel2. Do you see the same? By "That is *all available market data for ~75 contracts" I think you mean partial data as you do not get market depth level 2 for all 75. What you mean by "I ask for five and most of the days I get five"? Some days you intentionally dont ask for five or something is not available on some days or not worth pulling based on your strategies? Sounds like you have a good system running. I am interested to know how you store all this streaming data or if you do not see a point in storing it? - Bruce On Wed, Mar 17, 2021, 7:11 PM JR <TwsApiOnGroupsIo@...> wrote: Can you be more specific what you consider huge? Did you buy quote boosters so that you can subscribe to more than 100 contracts? |
to navigate to use esc to dismiss