Does anyone out there have an example of an options order that will successfully fire through the sterling API?
I am building my order like this...
The odd thing is that this order works if I use a route that exists for equities, but if I use a route that only exits on the options window, I get an error "invalid route".
I am building my order like this...
Code:
stiOrder.Symbol = "SPY 190111C259000";
stiOrder.StrikePrice = 259;
stiOrder.Account = "DEMODS1649";
stiOrder.Side = "B";
stiOrder.Quantity = 1;
stiOrder.LmtPrice = .3;
stiOrder.Destination = "C2";
stiOrder.Tif = "D";
stiOrder.PriceType = SterlingLib.STIPriceTypes.ptSTILmt;
stiOrder.ClOrderID = "DEMODS1649_2019111184112436";
stiOrder.StrikePrice = 259;
stiOrder.Maturity = "20190111";
stiOrder.PutCall = "C";
stiOrder.Underlying = "SPY";
The odd thing is that this order works if I use a route that exists for equities, but if I use a route that only exits on the options window, I get an error "invalid route".