■発注内容
Contract contract = new Contract();
contract.symbol("XAUUSD");
contract.secType("CMDTY");
contract.exchange("SMART");
contract.currency("USD");
Order order = new Order();
order.action("BUY");
order.totalQuantity(Decimal.ONE);
order.orderType("MKT");
order.tif(TimeInForce.IOC);
■レスポンス
nextValidId :4
openOrder
[order status] orderId:4 status:Submitted filled:0 remaining:1 avgFillPrice:0.0 permId:948095673 parentId:0 lastFillPrice:0.0 clientId:999 whyHeld:null mktCapPrice:0.0
[exec details]OrderId=4,ClientId=999,ExecId=000132b0.668c5d2f.01.01,Time=20240709 09:23:01 US/Eastern,AccNumber=DU9890949,Exchange=SMART,Side=BOT,Shares=1,Price=2363.61,PermId=948095673,Liquidation=0,CumQty=1,OrderRef=null,EvRule=null,EvMultiplier=0.0,ModelCode=null,LastLiquidity=Removed Liquidity,PendingPriceRevision=false,
openOrder
[order status] orderId:4 status:Filled filled:1 remaining:0 avgFillPrice:2363.61 permId:948095673 parentId:0 lastFillPrice:2363.61 clientId:999 whyHeld:null mktCapPrice:0.0
openOrder
[order status] orderId:4 status:Filled filled:1 remaining:0 avgFillPrice:2363.61 permId:948095673 parentId:0 lastFillPrice:2363.61 clientId:999 whyHeld:null mktCapPrice:0.0
[commission report]000132b0.668c5d2f.01.01,USD,1.7976931348623157E308,2.0