开云体育Ok, I’ll take your word for the ‘whatif’ aspect. ? If I use the contract parameters you specify in my platform, it works fine. If it doesn’t work for you, you must get an error message (assuming your request is actually being actioned by the API). So what is the error message? ? I don’t normally use FDXM but I just pushed an order through on the paper trading system and it executed immediately. For what it’s worth, here’s the log entry that shows the order API message (I have my own API implementation that can log all API messages, similar to the TWS API logfile but rather easier to use). It may not be much use to you in this context: ? 2022-07-29 19:35:37.819 S [IBAPIV100.BufferedWriter:logSocketOutputMessage] OUT: Msg Id (PLACE_ORDER)=3;Version=45;Order id=268445460;ConId=534005999;Symbol=DAX;Sec type=FUT;Expiry=20220916;Strike=0;Multiplier=5;Exchange=EUREX;Currency=EUR;Local Symbol=FDXM SEP 22;Action=BUY;Quantity=1;Order type=MKT;TIF=DAY;OpenClose=O;Origin=0;Transmit=1;Parent id=0;Block Order=0;Sweep to fill=0;Display Size=0;Trigger method=0;Outside RTH=0;Hidden=0;Discretionary amount=0.0; Short Sale Slot=0;Exempt Code=-1;Oca type=0;All or none=0;E-trade only=0;Firm quote only=0;Auction strategy=0;Override percentage constraints=0;Continuous update=0;Opt Out Smart Routing=0;Not held=0;Delta Neutral=0;WhatIf=0;Solicited=0;Randomize size=0;Randomize price=0;Conditions Count=0;AdjustableTrailingUnit=0;DontUseAutoPriceForHedge=0; ? And here’s the resulting execution: ? 2022-07-29 19:35:38.187 S [IBAPIV100.BufferedReader:EndLogMessage] IN: Msg id (EXECUTIONDATA)=11;ReqId=-1;OrderId=268445460;Con Id=534005999;Symbol=DAX;Sec type=FUT;Expiry=20220916;Strike=0.0;Right=;Multiplier=5;Exchange=EUREX;Currency=EUR;Local Symbol=FDXM SEP 22;TradingClass=FDXM;Exec id=0000e9b5.62e36263.01.01;Exec Time=20220729? 19:35:38;Account id=DU5263;Exchange=EUREX;Side=BOT;Shares=1;Price=13508.00;Perm Id=2048695160;Client id=194362192;Liquidation=0;Cum Qty=1;Avg Price=13508.00;OrderRef=;EvRule=;EvMultiplier=;Model Code=;Last Liquidity=1; ? Richard ? From: [email protected] <[email protected]> On Behalf Of Metrodus79
Sent: 29 July 2022 19:29 To: [email protected] Subject: Re: [TWS API] Duplicate Order ID ? Hello Richard, |