Invalid Trade Request when I call OrderSend(request,result) even though I have all properties included
Can't figure this out. I am calling a market buy/sell and provide all properties that are required with values, but yet I continually get "Invalid Request" in the error message. When it prints out, all properties have the correct values, but the request still is invalid. Is there something else I need to be doing for this?
Hi
Try adding “ZeroMemory(request);” before updating the request, maybe some old information are “influencing” the request and causing the problem. When you reset the memory, it should be better.
If problem still occurs, write the correct error you get – maybe this would be more helpful to discover the real reason of the problem.
Best Regards
Can't figure this out. I am calling a market buy/sell and provide all properties that are required with values, but yet I continually get "Invalid Request" in the error message. When it prints out, all properties have the correct values, but the request still is invalid. Is there something else I need to be doing for this?