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 for SESSION_USER and SESSION_CUSTOMER.

  • SESSION_USER: the server takes login from the JWT session.
  • SESSION_CUSTOMER: pass login in the request query/body. The server verifies that the login is linked to the authenticated customer.

Request

Content-Type: application/json

Parameters

Field Type Required Description
login int Only for SESSION_CUSTOMER Trading account login linked to the authenticated customer

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 Login is missing or invalid
401 PERMISSION_DENIED Access denied or login is not linked to the customer session

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