Re: Cannot transmit order (main order and stop loss orders)
Do what you think is best.
By
buddy
·
#50587
·
|
Re: Cannot transmit order (main order and stop loss orders)
Thank you, I saw it. I can make it look the way they showed, but I do not think it matters. They simply have two functions. One creates three orders and puts them into list. The other routine simply
By
GreenGreen
·
#50586
·
|
Re: Cannot transmit order (main order and stop loss orders)
Ok, so I'm a polyglot :-P If you go to the docs and click the Python button at the top it will translate for you... ``` 38 bracketOrder = [parent, takeProfit, stopLoss] 39 return bracketOrder ``` Let
By
buddy
·
#50585
·
|
Re: Cannot transmit order (main order and stop loss orders)
You are probably looking at C#, I am using Python.
By
GreenGreen
·
#50584
·
|
Re: Cannot transmit order (main order and stop loss orders)
How come the code you posted is missing this stuff that's mentioned in the docs? ``` List<Order> bracketOrder = new List<Order>(); bracketOrder.Add(parent); bracketOrder.Add(takeProfit);
By
buddy
·
#50583
·
|
Re: Cannot transmit order (main order and stop loss orders)
No errors. Here is console output: *NextValidId: 39* *Error:? -1? ?2104? ?Market data farm connection is OK:usfuture.nj* *Error:? -1? ?2104? ?Market data farm connection is OK:usfarm.nj*
By
GreenGreen
·
#50582
·
|
Re: Cannot transmit order (main order and stop loss orders)
IDK... no errors? You check precautions?
By
buddy
·
#50581
·
|
Cannot transmit order (main order and stop loss orders)
I am trying to submit two orders, one main order (parent order) and the other is stop loss order. I am following TWS API documentation https://interactivebrokers.github.io/tws-api/bracket_order.html
By
GreenGreen
·
#50580
·
|
Re: How is auction price calculated?
Not sure as I don¡¯t typically trade US stocks but I¡¯d be interested to hear the answer if someone else knows.
By
Colin Bowers
·
#50578
·
|
Re: How is auction price calculated?
Thanks. For NYSE, what is the difference between "NYSE MKT Order Imbalances" and "NYSE Order Imbalances" IB data feeds?
By
JZcgQR2N
·
#50577
·
|
Re: TWS API Linux - Segmentation fault - __bid64_to_string
I won't directly blame the machine, look very similar to same issue on Mac and Windows if using the wrong Decimal lib. I guesstimate it around the selection of method (or a lack of)? used by linker
By
Gordon Eldest
·
#50576
·
|
Re: TWS API Linux - Segmentation fault - __bid64_to_string
Ok, I just managed to recreate this problem and (I think this may have been mentioned) but it seems to be a platform issue. The library provided by IB is built for x86_64, not i686. You can determine
By
buddy
·
#50575
·
|
Re: TWS API Linux - Segmentation fault - __bid64_to_string
Hopefully it doesn't hurt them either though... because I just built the Cpp sample from api ver. 1019.01 and 1020.01 on... * bare metal running Ubuntu 16.04.7 LTS * kvm running Debian 11 bullseye *
By
buddy
·
#50574
·
|
Re: TWS API Linux - Segmentation fault - __bid64_to_string
also works on WSL ubuntu.
By
Andrew Bannerman
·
#50573
·
|
Re: TWS API Linux - Segmentation fault - __bid64_to_string
Ok finally got it working by locating where the intel floating point math library was located, named:?libintelrdfpmath-dev : root@Ubuntu-22:/bin# dpkg -L libintelrdfpmath-dev /. /usr /usr/include
By
Andrew Bannerman
·
#50572
·
|
Re: TWS API Linux - Segmentation fault - __bid64_to_string
well virtulbox and ubuntu lare9x@Ubuntu-22:~/IBJts/ samples/Cpp/TestCppClient$ make g++ -pthread -Wall -Wno-switch -Wpedantic -Wno-unused-function -std=c++11 -I../../../source/cppclient/ client
By
Andrew Bannerman
·
#50571
·
|
Re: TWS API Linux - Segmentation fault - __bid64_to_string
I strongly recommend to use a containerized setup for tws/ib-gateway in wsl. If you chose ubuntu as host for wsl, then lxd (sudo snap install lxd) should do it. There is an automated setup for a
By
Hartmut Bischoff
·
#50570
·
|
Re: TWS API Linux - Segmentation fault - __bid64_to_string
Only reason really have windows installed on this machine is the wife and kids use it - however - running a few strategies on python / c++ - cpu usuage was about 8%. So using linux here on VM maybe
By
Andrew Bannerman
·
#50569
·
|
Re: How is auction price calculated?
Just thought it worth adding that different exchanges will employ different methods for calculating the auction price given the state of the order book. If you want to know the exact method you will
By
Colin Bowers
·
#50568
·
|
Re: TWS API Linux - Segmentation fault - __bid64_to_string
Thanks for looking into this with me. root@flare9x:~/IBJts/source/cppclient/client/lib# g++ -dumpmachine x86_64-linux-gnu I just recently installed WLS as per instruction from ubuntu - they have you
By
Andrew Bannerman
·
#50567
·
|