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
}
'import requests
url = "https://api.easierprop.com/api/accounts/{id}/lot-calculator"
payload = {
"symbol": "EURUSD",
"side": "buy",
"risk_dollars": 100,
"sl_points": 100
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({symbol: 'EURUSD', side: 'buy', risk_dollars: 100, sl_points: 100})
};
fetch('https://api.easierprop.com/api/accounts/{id}/lot-calculator', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.easierprop.com/api/accounts/{id}/lot-calculator",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'symbol' => 'EURUSD',
'side' => 'buy',
'risk_dollars' => 100,
'sl_points' => 100
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.easierprop.com/api/accounts/{id}/lot-calculator"
payload := strings.NewReader("{\n \"symbol\": \"EURUSD\",\n \"side\": \"buy\",\n \"risk_dollars\": 100,\n \"sl_points\": 100\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.easierprop.com/api/accounts/{id}/lot-calculator")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"symbol\": \"EURUSD\",\n \"side\": \"buy\",\n \"risk_dollars\": 100,\n \"sl_points\": 100\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.easierprop.com/api/accounts/{id}/lot-calculator")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbol\": \"EURUSD\",\n \"side\": \"buy\",\n \"risk_dollars\": 100,\n \"sl_points\": 100\n}"
response = http.request(request)
puts response.read_body{
"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
}
}Enhanced
Lot calculator
Calculate the appropriate lot size based on risk in dollars and stop loss distance in points.
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
}
'import requests
url = "https://api.easierprop.com/api/accounts/{id}/lot-calculator"
payload = {
"symbol": "EURUSD",
"side": "buy",
"risk_dollars": 100,
"sl_points": 100
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({symbol: 'EURUSD', side: 'buy', risk_dollars: 100, sl_points: 100})
};
fetch('https://api.easierprop.com/api/accounts/{id}/lot-calculator', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.easierprop.com/api/accounts/{id}/lot-calculator",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'symbol' => 'EURUSD',
'side' => 'buy',
'risk_dollars' => 100,
'sl_points' => 100
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.easierprop.com/api/accounts/{id}/lot-calculator"
payload := strings.NewReader("{\n \"symbol\": \"EURUSD\",\n \"side\": \"buy\",\n \"risk_dollars\": 100,\n \"sl_points\": 100\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.easierprop.com/api/accounts/{id}/lot-calculator")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"symbol\": \"EURUSD\",\n \"side\": \"buy\",\n \"risk_dollars\": 100,\n \"sl_points\": 100\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.easierprop.com/api/accounts/{id}/lot-calculator")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbol\": \"EURUSD\",\n \"side\": \"buy\",\n \"risk_dollars\": 100,\n \"sl_points\": 100\n}"
response = http.request(request)
puts response.read_body{
"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
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
Account ID
Body
application/json
⌘I