Invalid Trade Request when I call OrderSend(request,result) even though I have all properties included
Matt E:
What is the error code?
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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?