¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date
Re: Client Version - Connecting to the API
After the \0 there should be 4 bytes containing the length of the remainder of the message, as a binary integer. In this case, the remainder of the message is v100..177 which is 9 bytes, so the length
By Richard L King · #51669 ·
Client Version - Connecting to the API
I had to switch to 10.24 and have problems setting up a connection (didn't before). Using V100Plus (I have to, I believe) I want to pass the client version. I construct a UTF_8 string as indicated
By Aninos · #51668 ·
Re: C++ Client Class visibility w/ the Sample App
David is correct. You should hide all low-level TWS API details in a Controller class. The Java TWS API implementation ships with a sample ApiController class that could be a starting point for your
By J¨¹rgen Reinold · #51666 ·
Re: C++ Client Class visibility w/ the Sample App
Try making the client as a shared_ptr<> in your Controller class which you can pass to your Model class. Personally I make all my IB client calls from a single Controler class. If you design your
By David Armour · #51665 ·
Re: C++ Client Class visibility w/ the Sample App
The reason I am asking, is because I want to modularize this Client Class to use for other strategies.
By Brendan Lydon · #51664 ·
C++ Client Class visibility w/ the Sample App
Hi, In the sample application of TestCppClient the visibility for EWrapper's hooks is being stored as private.? EReaderOSSignal m_osSignal, EClientSocket * const m_pClient, etc. are all private and
By Brendan Lydon · #51663 ·
C++ Multi-Threaded System Order Book & Historical Data Monitoring
Hi, I am thinking of having 2 separate threads to handle order book and historical data monitoring. Main reason, I want to send aggressive orders when stops are hit rather than have passive orders on
By Brendan Lydon · #51662 ·
Re: tickByTickAllLast returns tickType = 1 instead of 4
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
By gmpat4u@... · #51661 ·
Re: why bracket quantity reduces after parent filled?
Yes , i read it. I understood that I cannot use bracket - so I'm looking for a solution of what i CAN use. what is the best approach to go from position 1 to -1 and vice-versa , with different
By ofirbux@... · #51660 ·
Re: why bracket quantity reduces after parent filled?
Then you can't use bracket orders. You read my reply, right?
By J¨¹rgen Reinold · #51659 ·
Re: why bracket quantity reduces after parent filled?
what if i want to go from position 1 , to position -1 of the equity? lets say im in position 0 , I put an order with quantity 1,tp 1, sl 1, and filled it, now im in position 1. what if i want to go to
By ofirbux@... · #51658 ·
Re: why bracket quantity reduces after parent filled?
Hello, If you think about it, it's not that weird. From your example, you plan to take profit and also immediately go short at the same level (sell 3 on position of 1, ends up -2). Also, that short
By Raoul Suurmeijer · #51657 ·
Re: why bracket quantity reduces after parent filled?
That is how bracket orders are supposed to work. You can search our archive since we had lots of discussions about this before. One that comes to mind from a couple weeks ago can be found here (
By J¨¹rgen Reinold · #51656 ·
why bracket quantity reduces after parent filled?
hello community, I am facing a problem with generating bracket orders. lets say i'm generating a bracket order with parent,take-profit,and stoploss. i'm sending the order with different quantity for
By ofirbux@... · #51655 ·
Re: tickByTickAllLast returns tickType = 1 instead of 4
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
By J¨¹rgen Reinold · #51654 ·
Re: tickByTickAllLast returns tickType = 1 instead of 4
How do i subscribe to *TickByTickLast* and *TickByTickBidAsk* both for the same Contract/Instrument? If I do reqTickByTickData(ticker, contract, "Last", 0, true); reqTickByTickData(ticker, contract,
By gmpat4u@... · #51653 ·
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
I have started with TWS Apis few days back. Thanks to this group gave me answers to many initial question. Still one thing is so unclear to me is that how do I know?from the data coming to
By gmpat4u@... · #51652 ·
Re: Java 18 present but TWS installer script still downloads Java 1.8
Java 8 is still very widely used.
By FreeGoldRush · #51651 ·
Re: Java 18 present but TWS installer script still downloads Java 1.8
TWS is a Java application but, more importantly, it heavily depends on JavaFX, which is not part of the JDK any longer since Java 11. JavaFX went through major changes and I suggest you simply let
By J¨¹rgen Reinold · #51650 ·
Re: Java 18 present but TWS installer script still downloads Java 1.8
if you check ~/Jts/tws, especially the test_jvm() function, you'll see that the java version is hardcoded there. i guess they only test tws against this version and hence they require exactly this
By fordfrog · #51649 ·