Re: Main app in new process vs new thread (Python)
Thank you, krazatchu! I definitely need to try queue
By
GreenGreen
·
#50547
·
|
Re: Main app in new process vs new thread (Python)
Thank you, buddy! So this piece (TWS API reader) runs in child process and does effectively nothing since it does not see request for data *p = Process(target = app.run)* *p.start()* *p.join() * while
By
GreenGreen
·
#50546
·
|
How is auction price calculated?
On the page with the list of tick types ( https://interactivebrokers.github.io/tws-api/tick_types.html ), I see "Auction Price" which is the "The price at which the auction would occur if no new
By
JZcgQR2N
·
#50545
·
|
Re: Request Historical Data with Keep up to date set to true
I am using C++. The last arg, the TagValue list exist too, as I can see it in the C# doc https://interactivebrokers.github.io/tws-api/historical_bars.html but I never filled it with anything.? Seems
By
Gordon Eldest
·
#50544
·
|
Re: Request Historical Data with Keep up to date set to true
Which TWS API version are you looking at, Shaun? I just checked 10.19 "stable" and 10.20 "latest" and the reqHistoricalData request signature contains the boolean keepUpToDate and the chartOptions
By
J¨¹rgen Reinold
·
#50543
·
|
Re: Main app in new process vs new thread (Python)
If you read the man page for fork carefully you'll see it says... *The child process and the parent process run in separate memory spaces.* And, J¨¹rgen kindly pointed out that the API *works well
By
buddy
·
#50542
·
|
Request Historical Data with Keep up to date set to true
I am working in C#. I don't know if this feature works the sake in other languages or not. I want to make a Historical Data Request with Keep Up to Date set to true. However, the signature for
By
allenshaun2@...
·
#50541
·
|
Re: Main app in new process vs new thread (Python)
You can use a class for each process: And in main: Que'ing in and out of a class/process makes it easy to add more processes when you need more expediant data processing. You can push a fairly large
By
krazatchu@...
·
#50540
·
|
Re: Main app in new process vs new thread (Python)
Multi-processing works well with tws-api. I use ques to pass information between processes, which I found more ideal that shared variables and locks.
By
krazatchu@...
·
#50538
·
|
Re: Main app in new process vs new thread (Python)
Thank you, J¨¹rgen! In python most TWS API example show how to create new thread and run TWS API reader in there. As far as I know in Python threads cannot run in parallel due to GIL (general
By
GreenGreen
·
#50537
·
|
Re: Main app in new process vs new thread (Python)
What is it that you are trying to achieve? Why is the "standard" way of using TWS API insufficient? TWS API runs a reader thread that receives all communication data packets from TWS/IBGW, decodes
By
J¨¹rgen Reinold
·
#50536
·
|
Re: Main app in new process vs new thread (Python)
I think it might help you to thoroughly read [the man page for fork](https://www.man7.org/linux/man-pages/man2/fork.2.html).
By
buddy
·
#50535
·
|
IBKR API: ERROR -1 1100 Connectivity between IB and Trader Workstation has been lost.
Hi, i am testing the bracket order with ibkr api, it works fine but during the test there was a connection problem then it cancels all orders. I have to restart my python code manually. How can we
By
autotest890@...
·
#50534
·
|
Main app in new process vs new thread (Python)
All Python examples on the Internet show to run main app (class extending?EClient and?EWrapper) in new thread, something like this: *app = TestApp()* *app.connect("127.0.0.1", 7497, 1)*
By
GreenGreen
·
#50533
·
|
Re: API error - Your API version does not support fractional size rules (during forex price extraction)
As a C++ user what do I need to do to clear this issue?
By
Marcus
·
#50532
·
|
Re: API error - Your API version does not support fractional size rules (during forex price extraction)
I would like to let you know the latest Beta version I just tried today seems to fix the issue : version 10.21.0w. They added a tick box in the API settings (at the very bottom) to ? Send Forex
By
twoprint@...
·
#50531
·
|
Re: stupid ib authentication
Good point about the restart. I got the automated notifications working again, but I had to delete the app and reinstall without restoring the previous activation to make it work.
By
Greg C
·
#50530
·
|
Re: stupid ib authentication
I frankly understand your frustration. However, lots of pain can be taken off the process. Most recent TWS include a "restart" in the menu, which makes it unnecessary to enter your pin on the IB app
By
cactus74@...
·
#50529
·
|
Re: API error - Your API version does not support fractional size rules (during forex price extraction)
hymagik is correct about the somewhat messy C++ Decimal support and the fact that IBKR has selected a decimal size of 8 bytes (64 bits). To be more precise, IBKR decimal uses a "MathContext with a
By
J¨¹rgen Reinold
·
#50528
·
|
Re: API error - Your API version does not support fractional size rules (during forex price extraction)
There are really no settings you can change. You would have to use a TWS API Version of at least "163" for any of the fractional size rules to work. rossh_yh mentioned that "163" is available in TWS
By
J¨¹rgen Reinold
·
#50527
·
|