Closed Despair2000 closed 3 years ago
@softwarespartan When you look at reqSecDefOptParam could you maybe also have a look at this one? Would be highly appreciated.
OK, will do. Thanks for bumping this
Do you have example for how you're placing the whatif
order?
The OrderState
object comes in from the OpenOrder
events
case 'com.tws.Handler$OpenOrderEvent'
notify( ...
TWS.Events.getInstance() , ...
TWS.Events.OPENORDER , ...
TWS.EventData.OpenOrder(event) ...
);
which contains an OpenOrder with
public class OpenOrder {
public final int orderId ;
public final Contract contract ;
public final Order order ;
public final OrderState orderState;
OrderStatus callback is also implemented.
I don't. I will try it today during the afternoon. Maybe it's working and the results end up as OpenOrder event.
I tested it and it works perfectly.
I just didn't understand that the data would generate an openOrder event (although it said so in the documentation). Thanks for pointing this out.
I close the issue.
Excellent
I want to find the margin requirement for different option spreads and want to do this by placing a WHATIF orders.
The API-documentation says the results of such a query is returned as IBApi.OrderState object but I'm wondering where do I find this object? I checked for open order, order status and exec details events but all buffers remain empty.
@softwarespartan can you maybe tell me where the result ends up?