GET
/
copy-trades
/
pre-delete
/
{id}
curl --request GET \
  --url https://api.copin.io/copy-trades/pre-delete/{id} \
  --header 'Authorization: <authorization>'
{
  "totalOpeningPositions": 123
}

Authentication

This endpoint requires authentication using a JWT token in the Authorization header.

Authorization
string
required

JWT token in the format: Authorization {token}

Request

id
string
required

The unique identifier of the copy trade

Request Example

curl --request GET \
--url "https://api.copin.io/copy-trades/pre-delete/67fe13a16c6729db9c4b8f3c" \
--header 'Content-Type: application/json' \
--header 'Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IjB4MTUzNTQ4NGMxRWVjMUQyMDNmRTFBNTNFQTExYTYyMWE4ODRBRTA2NyIsInRpbWUiOjE3NDQ2MjYxNjIzODksImFjY2VzcyI6IlVmTkNiTWhMVVMxNzQ0NjI2MTYyMzkwIiwiaWF0IjoxNzQ0NjI2MTYyLCJleHAiOjE3NDUyMzA5NjJ9.LpvhBdxyfehzom-v5tKumAqCptSMkVk7HVKKVtjSpk8'

Response

totalOpeningPositions
number

Total opening positions. Only allow delete copy trade when totalOpeningPositions = 0

Response Example

{
  "totalOpeningPositions":0
}