Keyboard Shortcuts
Likes
- Twsapi
- Messages
Search
Re: Non-Acknowledgment of Orders.
开云体育From a first test, it looks like it wants a requestId, implying I
have to request it first(?) On the other had, I do see a single
callback, but with the error message the reqId is unknow. Raoul On 21-06-2021 16:51, Nick wrote:
execDetails is always generated, you don't have to request it. Something is missing in your code to receive the execDetails. |
Re: Non-Acknowledgment of Orders.
Nick
execDetails is always generated, you don't have to request it. Something is missing in your code to receive the execDetails.
toggle quoted message
Show quoted text
On 6/21/2021 10:44 AM, Raoul Suurmeijer wrote:
After getting more into the details, I didn't realize that the algo has to call the reqExecutions method first before receiving the callback on execDetails. Initially I thought execDetails was called automatically after executing the last order. |
Re: Non-Acknowledgment of Orders.
开云体育After getting more into the details, I didn't realize that the
algo has to call the reqExecutions method first before receiving
the callback on execDetails. Initially I thought execDetails was
called automatically after executing the last order. But then, what would be the trigger for calling reqExecutions?
What would be the right moment? And then the callback sends all
orders that were executed this current session. Any suggestions?
Regards, Raoul
On 18-06-2021 23:13, Raoul Suurmeijer
wrote:
|
AlgoTrader
Hi All, |
Re: Compiling Python trading program as an executable (.exe)
Ace Could you pls share your setup on how you do this w anaconda and ib in sync so can figure it out w pex?
|
Re: Compiling Python trading program as an executable (.exe)
Thanks guys!
What I have is a day trading Python program that I launch with the Anaconda Powershell prompt. It reads an Excel parameter file and uses several librairies like ib_insync, talib, math, text_to_speech,...it trades through the IB TWS Python API. Can pex really find all of these things by itself and package it in just one file? How will the self-contained executable be launched, and does it need some kind of environment? Or it's just like clicking a regular .exe file from a directory? Thank you! A |
Re: Non-Acknowledgment of Orders.
开云体育Thanks for pointing that out! I never knew. My trades are mkt
orders with the ES E-mini and always saw correct callbacks with
orderstatus though, including all order updates. But it's true,
the manual has a small note near the bottom of this page:
And while I now go through the API mailing archive, I noticed others have pointed this out as well. Ok, that means a little refactoring the code, it's a minor impact. Thanks! Regards, Raoul
On 18-06-2021 21:52, Nick wrote:
|
Re: Non-Acknowledgment of Orders.
Nick
开云体育It is documented that you are not guaranteed to get order status messages. You will always get exec details though. You can request open orders but you also need to monitor
executions since if the order has filled it will no longer be
open. There's no single right way to reconcile orders, everyone finds a method that works for them. On 6/18/2021 3:42 PM, Craig Carr wrote:
For the second time this year, today I sent an order and received no order status messages. |
Non-Acknowledgment of Orders.
Craig Carr
For the second time this year, today I sent an order and received no order status messages.
Does anybody have any strategies for dealing with this situation? Could one send a request open orders and try and reconcile that with my view of the orders? Thanks in advance. |
Re: more IB problems
The problems you experience have origin in your own behaviour/code. My algos have been trading now since beginning of 2020 every day the stock market was open the whole market hours and I didn't experience a single time that a session was ended
prematurely or any other connection related problem. I trade both the UK and the US session. During the weekends it is another story. There are often times when you can not connect to IB (usually because of maintenance) or that you can connect but some API calls return wrong or no data at all. |
Re: more IB problems
I just noticed that a configuration for a Flex Report I created and then edited a few times yesterday on the web site was missing many changes as of today even though I remember saving it after each edit and getting a confirmation. So there could be some hiccups on client portal site indeed. Either way, if you have significant persistent problems the status monitoring link I quoted should be the first thing to check.
|
OCA group + conditional orders + MIDPOINT order
This combination appears to not work. I've conditional exit orders submitted - conditional MIDPOINT "stop" + conditional MIDPOINT "limit". The LMT order stays blue and doesn't execute. As soon as I removed the OCA group, the order started filling. What's so special about conditional MIDPOINT orders in OCA groups?
In previous versions, there was a message that this was not supported. In latest versions that is not present, so I am assuming this should be functional? |
Re: more IB problems
Stuart Cracraft
Thanks for the headsup.
toggle quoted message
Show quoted text
On Jun 18, 2021, at 5:17 AM, ds-avatar <dimsal.public@...> wrote: |