[ts-gen] orders not transmitting

Paul C paulq2o0 at yahoo.co.uk
Mon Jun 1 05:46:43 EDT 2009


On Mon, Jun 01, 2009 at 01:53:08AM -0700, Mike Thornton wrote:
> Hi Bill,
> 
> I am sending orders to TWS via the shim, and the order info shows up in the
> TWS, but in order to send it to IB, I need to click on a "T" button in TWS.  I
> have "Bypass Order Precautions for API Orders" enabled under "Configure > API".
>   Do you know how to automate the transmission, i.e. eliminate the need to
> click on the "T" button?  These are the commands sent (EUR:USD contract):
> 
> bind key:pos-18-50-26-05-31-09 to oid:2;
> create item pos-18-50-26-05-31-09 ibc:12087792 at IDEALPRO pos-18-50-26-05-31-09
> MKT 25000 0 0;
> submit item pos-18-50-26-05-31-09;

Mike,

When I try sending just what you send (above) I get the following message in the ShimText log:
14698|37696|  14232753|3| 4| 2|      3479|2102|Unable to modify this order as its still being processed.|

and as you say, the tws just sits there waiting for a submit ("T").

If this is what happens for you, the solution could be to simply send
the shim a 'wait' command after the 'create' command:

create item pos-X ibc:12087792 at IDEALPRO pos-X MKT 25000 0 0;wait 0.2; 

The "wait 0.2" I've appended seems to work (repeatedly) for me. I hope that helps.

regards

Paul 



More information about the ts-general mailing list