Margin State event
Margin State WebSocket Events¶
Margin state events are pushed automatically to active WebSocket sessions where active_login matches the account login.
Compact Format¶
["mc", 10001, 48.25, 965.12, 2000.00, -1034.88, 1]
["so", 10001, 28.10, 562.00, 2000.00, -1438.00, 1]
| Index | Type | Description |
|---|---|---|
0 |
string | mc for margin call, so for stop out |
1 |
int | Account login |
2 |
double | Margin level |
3 |
double | Equity |
4 |
double | Margin |
5 |
double | Free margin |
6 |
int | Event code |
The server also stores a persistent notification for the account, so the event remains visible in notification history.