Skip to content

Price Alert Stream

Price alert events are pushed automatically to all active WebSocket sessions where active_login matches the alert login.

No manual subscription is required. The client must still select the active account with account.switch after WebSocket authorization.

Outgoing Message Format

Sent as a JSON array:

Index Field Type Description
0 "a" string Event marker for alert
1 id int64 Alert identifier
2 login int Account login
3 symbol string Alert symbol
4 indicator_name string Display name / source label
5 message string Custom trigger message
6 side int 0=Bid, 1=Ask
7 condition int Trigger type
8 target_price double Main trigger level
9 channel_low double Lower channel bound
10 channel_high double Upper channel bound
11 move_threshold double Threshold for moving trigger
12 status int Current alert status
13 repeat_mode int 0=once, 1=repeat
14 expires_at int64 Expiration timestamp
15 triggered_price double Price that triggered the alert
16 triggered_at int64 Trigger timestamp
17 code int Event code

Example

[
  "a",
  101,
  100020,
  "EURUSD",
  "Price Alert",
  "EUR breakout",
  0,
  0,
  1.1000,
  0,
  0,
  0,
  1,
  0,
  0,
  1.1002,
  1775401200,
  1
]

Condition Values

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 %

Status Values

Value Meaning
0 Active
1 Triggered
2 Disabled
3 Deleted
4 Expired

Repeat Mode Values

Value Meaning
0 Trigger once
1 Repeating trigger