开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育
Date
Re: Do I need to create a GUI for using the IBAPI sample program TestCppClient. Thanks.
Thank you very much, Richard, Franco, and Hartmut. Richard, you are right, "the program just runs requests that are hard-coded into it: no GUI, no command line." I am trying to use MFC Dialog-based
By jnyusf · #47108 ·
How do I calculate the profit and loss of a futures spread position?
Hi I am trying get my code to match the spread valuation in TWS L Mar20 '24 / Sep17 '25 Calendar ICEEU Here is my attempt: ( ( ( LH24[bid_price] - LU25[ask_price] ) - fill_execution_price ) /
By tariq_hamid@... · #47107 ·
Re: Do I need to create a GUI for using the IBAPI sample program TestCppClient. Thanks.
I think the answer to your question is that the program just runs requests that are hard-coded into it: no GUI, no command line. So you should be able to modify it to request market data for YM. I
By Richard L King · #47106 ·
Re: Do I need to create a GUI for using the IBAPI sample program TestCppClient. Thanks.
You can request for a stream quotes of the futures symbol for Dow 30 index just by coding it using this as a guide:
By Franco Chiesa Docampo <fchiesadoc@...> · #47105 ·
Re: Do I need to create a GUI for using the IBAPI sample program TestCppClient. Thanks.
Why don’t you start slow? Try to grasp how to interact with cpp or python code compiling it from the terminal or an IDE.
By Franco Chiesa Docampo <fchiesadoc@...> · #47104 ·
Re: Do I need to create a GUI for using the IBAPI sample program TestCppClient. Thanks.
Perhaps you are looking for a working console to enter api-commands? That's wired, because you end up with a cryptic code. Are you are looking for a terminal-console to enter high-level code (java,
By Hartmut Bischoff · #47103 ·
Re: Do I need to create a GUI for using the IBAPI sample program TestCppClient. Thanks.
Thank you for your response. Then where should I enter a request for a stream quotes of YM (the futures symbol for Dow 30 index)? Do I have to run the program with a parameter (a futures contract
By jnyusf · #47102 ·
Re: com.ib.controller.ApiController thread safety discussion
I can't agree with this.? Callbacks aren't simpler, they are just older.? Having to write a special class just to make an API call is really weird.? It introduces all sorts of weird issues about
By Hunter C Payne · #47101 ·
Re: com.ib.controller.ApiController thread safety discussion
I would prefer to separate thread-safety and concurrency properties?of ApiController. Adding Futures doesn't solve thread-safety and rises an entry bar. Once ApiController is thread-safe, methods
By Artyom T. · #47100 ·
Re: com.ib.controller.ApiController thread safety discussion
If you are going to make the IB API thread-safe, you should do it with Futures.? There are probably plenty of non thread-safe things in the ApiController and the library.? The biggest headache for
By Hunter C Payne · #47098 ·
Re: com.ib.controller.ApiController thread safety discussion
Yes, that’s a fork of TWS API, so you have to request a contributor license.
By Artyom T. · #47097 ·
Re: com.ib.controller.ApiController thread safety discussion
Interesting, Artyom. We did something similar a few years back and use our AprControllerEx ever since. Was just trying to check out the repository but get 404 errors with and without being logged
By Jürgen Reinold · #47096 ·
Re: com.ib.controller.ApiController thread safety discussion
FWIW, I think IBK did about the best that could be done by putting out there a minimal library capable of demo executions, yet is amenable to taking in different architectural directions via layering
By Ray Racine · #47095 ·
com.ib.controller.ApiController thread safety discussion
Hi Good progress was made to make com.ib.controller.ApiController thread-safe. Besides thread-safety, this branch contains re-implementation of error propagation approach. Lets discuss
By Artyom T. · #47094 ·
Re: status of com.ib.controller.ApiController API
Nick, in the context of Java, I think my usage of 'atomic' was correct. See the following:
By Richard L King · #47093 ·
Re: Do I need to create a GUI for using the IBAPI sample program TestCppClient. Thanks.
Ibapi code can be run from terminal. You don’t need a GUI.
By fchiesadoc@... · #47092 ·
Do I need to create a GUI for using the IBAPI sample program TestCppClient. Thanks.
Thanks.
By jnyusf · #47091 ·
Re: status of com.ib.controller.ApiController API
Yeah, (out) is a good idea.
By Nick <news1000@...> · #47090 ·
Re: status of com.ib.controller.ApiController API
[resent due to formatting issues] . No disagreement here. It is just that m_reqId++ is not one step but (at least) four: load, copy, increment, and store. In Java possibly unboxing, boxing, and
By Jürgen Reinold · #47089 ·
Re: status of com.ib.controller.ApiController API
. No disagreement here. It is just that m_reqId++ is not one step but (at least) four: load, copy, increment, and store. In Java possibly unboxing, boxing, and various value conversions as well. So
By Jürgen Reinold · #47088 ·