Delete Price Alert¶
Deletes an existing price alert for the current user.
DELETE
https://{some_domain}/price_alert/{id}
Authorization¶
All requests must include a JWT token:
Authorization: <JWT_TOKEN>
This endpoint is available for SESSION_USER and SESSION_CUSTOMER.
SESSION_USER: the server takesloginfrom the JWT session.SESSION_CUSTOMER: passloginin the request query/body. The server verifies that the login is linked to the authenticated customer.
Request¶
| Field | Type | Required | Description |
|---|---|---|---|
login |
int | Only for SESSION_CUSTOMER |
Trading account login linked to the authenticated customer |
Response¶
Success (200)¶
{
"structure": ["id"],
"rows": [
[101]
]
}
Error Responses¶
| Code | Error | Description |
|---|---|---|
| 400 | INVALID_DATA |
Validation failed |
| 400 | INVALID_LOGIN |
Login is missing or invalid |
| 403 | PERMISSION_DENIED |
Alert belongs to another user or login is not linked to the customer session |
| 404 | NOT_FOUND |
Alert not found |