Skip to main content
POST
/
api
/
accounts
/
{id}
/
lot-calculator
Lot calculator
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
  }
}

Authorizations

X-API-Key
string
header
required

Client API key (prefixed with sk_)

Path Parameters

id
string<uuid>
required

Account ID

Body

application/json
symbol
string
required
Example:

"EURUSD"

side
enum<string>
required
Available options:
buy,
sell
Example:

"buy"

risk_dollars
number
required

Maximum risk amount in account currency

Example:

100

sl_points
number
required

Stop loss distance in points

Example:

100

Response

200 - application/json

Lot calculation result

ok
boolean
Example:

true

data
object