Please edit your post and
use the code button (Alt+S) when pasting code
What instrument (stock, futures, etc.) are you trying to buy? And are you able to buy a quantity of 0.01 of it?
John Brown: I've been trying to check my open trade if there is an open trade then dont trade , i only want one trade to be open,
That has nothing to do with your stated problem.
How To Ask Questions The Smart Way. 2004
Be precise and informative about your problem

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
I've been trying to check my open trade if there is an open trade then dont trade , i only want one trade to be open, I also wanna create a buy order
but it doesnt work it gives me i "2020.07.09 18:11:45.128 2020.01.03 17:36:15 CTrade::OrderSend: market buy 0.01 @EP sl: 3017.35 tp: 3023.35 [invalid volume]"