Calculate margin
CalculateMargin
Description: Calculates the required margin for a trade based on the symbol, volume, and user account configuration.
Request Parameters
| Name |
Type |
Required |
Description |
| login |
int |
Yes |
User login ID |
| open_price |
double |
Yes |
Opening price of the trade |
| volume |
int |
Yes |
Trade volume in minimal lots |
| symbol |
string |
Yes |
Trading symbol (e.g., "EURUSD") |
Request Example
{
"login": 123456,
"open_price": 1.1050,
"volume": 1000,
"symbol": "EURUSD"
}
Response Parameters
| Name |
Type |
Description |
| margin |
double |
Calculated required margin for the trade |
Response Example