Skip to main content
POST
/
api
/
accounts
Create account
curl --request POST \
  --url https://api.easierprop.com/api/accounts \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "label": "ICMarkets Demo",
  "mt5_login": 51234567,
  "password": "MyP@ssw0rd",
  "broker_host": "mt5-demo.icmarkets.com",
  "broker_port": 443,
  "server_name": "ICMarketsSC-Demo",
  "auto_connect": false,
  "hardware_id": "<string>",
  "proxy_host": "<string>",
  "proxy_port": 123,
  "proxy_user": "<string>",
  "proxy_password": "<string>"
}
'
{
  "ok": true,
  "data": {
    "id": "70f60784-20f1-45ba-9a04-8e01c0b810c3",
    "label": "ICMarkets Demo",
    "broker_host": "mt5-demo.icmarkets.com",
    "broker_port": 443,
    "server_name": "ICMarketsSC-Demo",
    "mt5_login": 51234567,
    "is_enabled": true,
    "auto_connect": false,
    "hardware_id": "<string>",
    "has_proxy": false,
    "session_status": "disconnected",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

X-API-Key
string
header
required

Client API key (prefixed with sk_)

Body

application/json
label
string
required

Friendly name

Example:

"ICMarkets Demo"

mt5_login
integer<int64>
required

MT5 account number

Example:

51234567

password
string
required

MT5 account password (stored encrypted with AES-256-GCM)

Example:

"MyP@ssw0rd"

broker_host
string

MT5 broker server hostname or IP

Example:

"mt5-demo.icmarkets.com"

broker_port
integer
default:443

Broker port

Example:

443

server_name
string

MT5 server name (alternative to host/port)

Example:

"ICMarketsSC-Demo"

auto_connect
boolean
default:false

Auto-connect on gateway start

hardware_id
string

Optional hardware ID for the MT5 terminal

proxy_host
string

SOCKS5 proxy hostname

proxy_port
integer

SOCKS5 proxy port

proxy_user
string

Proxy username

proxy_password
string

Proxy password

Response

Account created

ok
boolean
Example:

true

data
object