Api double order issue

Sir rejected sell order that you have seen that’s because of there was running my buy legs and those buy legs exit was limit sell order but the api create double sell order issue because of that running legs exit and extra sell order were placed by the api they were not my sell order iam running only buying stretegy via algotest platform