curl --request POST \
--url https://api.easierprop.com/api/accounts/{id}/lot-calculator \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"symbol": "EURUSD",
"side": "buy",
"risk_dollars": 100,
"sl_points": 100
}
'{
"ok": true,
"data": {
"symbol": "EURUSD",
"lots": 0.1,
"risk_dollars": 100,
"sl_points": 100,
"contract_size": 100000,
"tick_value": 1,
"tick_size": 0.00001,
"digits": 5,
"current_price": 1.08542,
"value_per_point": 1
}
}Calculate the appropriate lot size based on risk in dollars and stop loss distance in points.
curl --request POST \
--url https://api.easierprop.com/api/accounts/{id}/lot-calculator \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"symbol": "EURUSD",
"side": "buy",
"risk_dollars": 100,
"sl_points": 100
}
'{
"ok": true,
"data": {
"symbol": "EURUSD",
"lots": 0.1,
"risk_dollars": 100,
"sl_points": 100,
"contract_size": 100000,
"tick_value": 1,
"tick_size": 0.00001,
"digits": 5,
"current_price": 1.08542,
"value_per_point": 1
}
}Client API key (prefixed with sk_)
Account ID