Set stop loss and profit target as percentages

Hello,

My name is Bahaa and I am a software developer and trader at the same time.

I recently register on your platform and I need your help in a manner:
I want to buy stocks at market open and at the same time I would like to put a stop loss or a target gain order but as percentages. I am able to set the stop loss and profit target as percentages manually by adding ‘+’ or ‘-’, but how I can implement this idea using HTTP request?

Best Regards,
Bahaa