Skip to content

Get Price Alert Logs

Returns the current user's trigger history for price alerts.

GET

https://{some_domain}/price_alert/logs

Authorization

All requests must include a JWT token:

Authorization: <JWT_TOKEN>

This endpoint is available only for a client user session. The server takes login from the JWT session.

Request

Content-Type: application/json

No body parameters are required.

Response

Success (200)

Response uses the standard structure + rows format.

{
  "structure": [
    "id", "alert_id", "login", "symbol", "indicator_name", "message",
    "side", "condition", "target_price", "triggered_price", "triggered_at", "comment"
  ],
  "rows": [
    [
      1,
      101,
      100020,
      "EURUSD",
      "Price Alert",
      "EUR breakout",
      0,
      12,
      1.1000,
      1.1002,
      1775401000,
      "My alert"
    ]
  ]
}

Error Responses

Code Error Description
400 INVALID_DATA Invalid request payload
400 INVALID_LOGIN Session login is missing or invalid
401 PERMISSION_DENIED Access denied

Notes

condition

Value Meaning
0 Crossing Up
1 Crossing Down
2 Greater Than
3 Less Than
4 Entering Channel
5 Exiting Channel
6 Inside Channel
7 Outside Channel
8 Moving Up
9 Moving Down
10 Moving Up %
11 Moving Down %
12 Crossing Either