Keyboard Shortcuts
Likes
Search
tickByTickAllLast returns tickType = 1 instead of 4
Not sure I understand exactly what you are asking. Can you clarify. to and not to . It depends on the instrument and market condition. but the majority of trades take place at the current Ask price or the current Bid price. Below a snapshot from ESU2 this afternoon:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The parameter Rather, it is related to the 3 and 4 have dedicated callbacks whereas 1 and 2 both use with |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
So what error message do you get? I assume your variable "ticker" has the same value for both calls, but the requestId for each TWS API request must be unique in the sense that no two outstanding requests or subscriptions shall have the same requestId. A good practice is that you create a function "nextRequestId()" that provides a unique ID for each TWS API request you make. ´³¨¹°ù²µ±ð²Ô On Thu, Sep 7, 2023 at 05:47 AM, <gmpat4u@...> wrote:
How do i subscribe to?TickByTickLast and?TickByTickBidAsk both for the same Contract/Instrument? |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Thanks I can try it out, yes I might be using same ticker for both - I presumed that both triggers separate callbacks so that could be ok...
Thanks again for taking time for this question... On a separate note, can you please answer my question here if possible? I am waiting on that as well. [email protected] | How do I know from the data coming to tickByTickAllLast whether its Buy (green) or Sell (red) indicated in the Time And Sale window of TWS |