Skip to content

DeleteCopyTradeMaster

Endpoint

DELETE /copytrade/master/{id}

Authorization

Requires SESSION_CUSTOMER.

Description

Deletes a customer-owned master profile. Deletion is rejected while a related copied order is unsettled. Once those orders settle, related records are cleaned up with the profile.

Response

{
  "deleted": true
}

Errors

HTTP Error Description
403 PERMISSION_DENIED Master is not owned by the customer
409 RET_USR_HAS_TRADES A copied order is still unsettled; no records were changed
404 RET_ERR_NOTFOUND Master was not found