¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: 321: Error validating request


 

¿ªÔÆÌåÓý

Apologies, for some reason I misread your statement to mean that you had set CashQty to 3000000.

?

Whatever, the fact is that setting TotalQuantity to zero gives exactly the error message you quoted. If it works on a BUY, but not on a SELL, then perhaps you code is just not setting the field properly for a SELL.?

?

Richard

?

From: [email protected] <[email protected]> On Behalf Of A.R.SYD
Sent: Monday, October 16, 2023 1:41 PM
To: [email protected]
Subject: Re: [TWS API] 321: Error validating request

?

Certainly, I am using the quantity field. It's important to note that when I switch the order type to "Buy order," it executes without any issues.

Join [email protected] to automatically receive all group messages.