¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date
Re: How to automatically accept (or disable) the paper trading notification?
This was really easy to do, thanks for your help!
By Bryce Turner · #49776 ·
Re: Obtaining more than 1,000 ticks of historical data
Hi, I use a simple but robust trick, which will get as many ticks as you like. start with one call and then at reqHistoricalDataEnd - change time and ask again. (Snippit - not complete) self.
By Erez Kaplan <erezkaplan90@...> · #49775 ·
Re: TWS Closing
I don't see anything in the log file, granted I haven't ever needed to look in them before so not entirely sure what I would look for.? Attached a screenshot of my log file. When I get to my
By Mike · #49774 ·
Obtaining more than 1,000 ticks of historical data
I wonder if it possible to obtain more than 1,000 ticks of historical data from IBKR with minimal efforts. We can try to use multiple times reqHistoricalTicks but then we will get duplicate ticks,
By GreenGreen · #49773 ·
Re: Timestamp is missing milliseconds in tickByTickAllLast
J¨¹rgen I was fascinated by your write-up abut ¡®correcting¡¯ the tick timestamps, but I can¡¯t help wondering why you think this is worth doing at all. What benefit does it provide? I can
By Richard L King · #49772 ·
Re: tickByTickAllLast returns tickType = 1 instead of 4
The parameter `tickType` in `tickByTickAllLast()` has no connection with the Tick Types of `reqMktData()`. Rather, it is related to the `tickType` argument used in
By @lbilli · #49771 ·
Re: tickByTickAllLast returns tickType = 1 instead of 4
Not sure I understand exactly what you are asking. Can you clarify. Tick Types relate ( https://interactivebrokers.github.io/tws-api/tick_types.html ) to IBApi.EClient.reqMktData (
By J¨¹rgen Reinold · #49770 ·
tickByTickAllLast returns tickType = 1 instead of 4
I noticed that `tickByTickAllLast` returns tickType = 1 (which is BID), while I was expecting LAST (4). The request was made with `reqTickByTickData`. Does anybody know why it is?
By GreenGreen · #49769 ·
Re: Timestamp is missing milliseconds in tickByTickAllLast
Thank you for such a comprehensive reply. I like your estimate around 8:30 very much. I think everyone can do something similar.
By GreenGreen · #49768 ·
Re: Timestamp is missing milliseconds in tickByTickAllLast
That's a good question. Let me share what this looks like for our specific setup, but there are so many variables that your results (and those for everyone else) will vary greatly.? But maybe our
By J¨¹rgen Reinold · #49767 ·
Re: Timestamp is missing milliseconds in tickByTickAllLast
Thank you so much! Just out of curiosity, how do you estimate delay time? (difference between trade timestamp and arrival stamp). Do you buy data feed with more granular timestamp?
By GreenGreen · #49766 ·
Re: Timestamp is missing milliseconds in tickByTickAllLast
Timestamps within the IBKR API are generally "Epoch Seconds" and there is nothing you can do to get actual? higher resolution time stamps. We work around that by recording high-resolution arrival
By J¨¹rgen Reinold · #49765 ·
Timestamp is missing milliseconds in tickByTickAllLast
I am trying to request real-time tick by tick data, but data arrives with timestamp missing milliseconds. Here is my code: from ibapi.client import EClient from ibapi.wrapper import EWrapper from
By GreenGreen · #49764 ·
Re: No historical market data for AAL/STK@VALUE Last 1d
You caught yourself a good one here, David. I am sure our environments are different enough that we get (at least) slightly different results. I am running tests in a paper account, TWS 10.16.1n and
By J¨¹rgen Reinold · #49763 ·
Re: No historical market data for AAL/STK@VALUE Last 1d
Hi J¨¹rgen, Thanks I had a similar thought, but I traced the contract into the IB client class function and it is definitely submitting the AAL NASDAQ contract. Here is the contract object as it
By David Walker · #49762 ·
Re: About commissionReport.realizedPNL
I think it¡¯s just as simple as monitoring position changes, and then using the reported realizedPNL for that position change directly. It gets reported to you, no need to calculate. Rgds, Bart
By Bart D · #49761 ·
Re: reqPositionsMulti does not work as intended
J¨¹rgen, Thanks I am aware of it and handle order submissions and fills/executions correctly. I will just allocate the fills to pertaining positions on my end. Thanks for explaining, it makes it very
By Dojo321 · #49760 ·
Re: reqPositionsMulti does not work as intended
The Order Class ( https://interactivebrokers.github.io/tws-api/classIBApi_1_1Order.html ) has a field called OrderRef (
By J¨¹rgen Reinold · #49759 ·
Re: reqPositionsMulti does not work as intended
So, this pertains to specific model portfolios that were set up in advisor accounts in seems? How do you then keep positions apart for specific strategies? Does this all have to be handled on the
By Dojo321 · #49758 ·
Re: reqPositionsMulti does not work as intended
Thanks, will take a look
By Dojo321 · #49757 ·