We are trying to implement order submission in C#.
We were able to get limit order working in C#. Everything else equal, if we change PriceType to "Market" and remove price, it retuns false but it doesn't hydrate the error object that gets passed in to the submit method.
(as a side note, if I have the montage opened using the code, it shows me that it's defaulting to limit without price filled in. Simialrly, we are not able to use vwap because it defaults to nightowl without any error msg)
Why is the error var not getting hydrated?
To see the error on submit, please try
bool good = true; object objErr = null; good = hOrder.Submit(ref objErr); Console.WriteLine("Submitted"); if (!good) Console.WriteLine(objErr);
To test "Market", to see it submitted, please try:
.Exchange = "*ticket"
Are you running C# example "SendOrder"? if yes, please try Destination="*ticket" with no price. Ticket should be seen on Message Monitor.
I believe DEMO destinations require Price to be populated. So if you like to test DEMO destimation, please enter a price.
After submit, SendOrder example writes out objErr, which contains the possible error message?