Skip to main content
POST
Lot calculator

Authorizations

X-API-Key
string
header
required

Client API key (prefixed with sk_). On /api/* endpoints the key is scoped to its own MT5 accounts. On /admin/* endpoints the key identifies its owning admin and grants access to all of that admin's keys — so any of your sk_ works to manage any of your other keys (cross-admin operations are rejected as 400 Key not found).

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