¿ªÔÆÌåÓý

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

Re: Cannot transmit order (main order and stop loss orders)


 

¿ªÔÆÌåÓý

thank YOU ´³¨¹°ù²µ±ð²Ô !

On 1/10/23 13:42, ´³¨¹°ù²µ±ð²Ô Reinold via groups.io wrote:

Just a quick reminder. There are 6,000++ members listening and this post is becoming more like a chat.

The error message (assuming it is related) is pretty clear. Please clean up the order type initialization for both orders:
  • orderType needs to have a lower case "o"
  • "order" has two assignments (one correct one with lower 'o' and one ineffective one with upper case 'o')
  • stopLossOrder is missing the (correct) lower case orderType initialization.

order.OrderType = "LMT";
...
order.orderType = 'LMT'
...
stopLossOrder.OrderType = 'STP'

´³¨¹°ù²µ±ð²Ô

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