Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Prop firm accounts

A prop firm MT5 account links like any other MT5 account: with its login, password and exact server name. Once you set the firm's program on it, two things change. GET /v1/accounts/{accountId}/prop-status reports the room left before the daily loss and maximum loss limits, and every order placed or changed through FiveSocket is checked against those limits before it reaches the broker.
For the overview, see the prop firm risk guard.
Prop firms set their own rules on third-party tools, automated trading and login locations. FiveSocket logs in from its own hosting addresses, which can change, and has no dedicated IP address per customer. Read your firm's current terms before you link an account. The firm's own dashboard is authoritative for every figure on this page.
curl -X POST https://api.fivesocket.com/v1/accounts \ -H "Authorization: Bearer $FIVESOCKET_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: link-prop-1" \ -d '{"login":"12345678","password":"your-password","server":"FTMO-Server"}'
Use the server name exactly as your MT5 login window shows it. Link with the investor (read-only) password and the response carries "readOnly": true: reads work, and every order returns read_only_credentials before MT5 is contacted. Link with the trading password to place orders.

2. Set the program

Set the firm, the program and the account size the firm gave you on the Accounts page of the control app. The API cannot set or change it. Programs exist for:
FirmPrograms
FTMO2-Step, 1-Step
FundedNextStellar 2-Step, Stellar 1-Step
The5ersHigh Stakes
An account with no program returns 409 prop_program_not_set from prop-status, and its orders are not checked by the guard.

3. Read the room left

curl https://api.fivesocket.com/v1/accounts/acc_.../prop-status \ -H "Authorization: Bearer $FIVESOCKET_KEY"
The response keeps the stored program, the live MT5 figures and FiveSocket's calculation apart:
{ "accountId": "acc_...", "program": { "initialBalance": "100000", "preset": { "firmName": "FTMO", "programName": "FTMO 2-Step" } }, "source": { "balance": "96840.00", "equity": "96840.00", "currency": "USD" }, "calculated": { "state": "ok", "roomLeftToday": 1840, "bindingRule": "daily_loss", "dailyLoss": { "roomLeft": 1840, "nextResetAt": "2026-11-28T23:00:00.000Z" }, "maxLoss": { "roomLeft": 6840 }, "notes": [] } }
The example is trimmed; the API Reference tab lists every field. state is ok, near_breach once 80% of a limit is used, or breached. calculated.notes marks any value that is an estimate.
In Python:
import os import requests BASE = "https://api.fivesocket.com/v1" ACCOUNT = os.environ["FIVESOCKET_ACCOUNT_ID"] auth = {"Authorization": f"Bearer {os.environ['FIVESOCKET_KEY']}"} status = requests.get(f"{BASE}/accounts/{ACCOUNT}/prop-status", headers=auth, timeout=60) status.raise_for_status() calculated = status.json()["calculated"] print(calculated["state"], calculated["roomLeftToday"], calculated["bindingRule"])

4. Place an order with a stop loss

Turn trading on for the account first with PUT /v1/accounts/{accountId}/execution and a symbol allowlist. Then every order needs a stopLoss:
curl -X POST https://api.fivesocket.com/v1/accounts/acc_.../execution/orders \ -H "Authorization: Bearer $FIVESOCKET_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-1" \ -d '{"clientOrderId":"order-1","symbol":"EURUSD","side":"buy","type":"market","volume":"0.50","stopLoss":"1.08100"}'
The guard refuses an order, in this order, when:
reasonWhen
breachedThe account already touched a floor
unprotected_exposureAn open position or pending order has no stop loss
no_stop_lossThe order has no stop loss
exceeds_roomThe loss at the stop, plus the loss at the stops of everything already open, would use up the room left
A refusal is not an HTTP error. It is a 200 command with outcome: "rejected", errorCode: "prop_rule_would_breach" and a propRefusal that says why:
{ "outcome": "rejected", "retcode": null, "errorCode": "prop_rule_would_breach", "propRefusal": { "reason": "no_stop_loss", "rule": "daily_loss", "roomLeft": 1000, "committedRisk": 0, "worstCaseLoss": null, "currency": "USD", "suggestedStopLoss": "1.09120", "hint": "FiveSocket did not send this order: on a prop-firm account every order needs a stop loss. With 1000.00 USD left before the daily loss limit, a stop at or inside 1.09120 keeps the worst case within the limit, with 10% spare for costs. The estimate leaves out commission, swap, spread widening and gaps." } }
suggestedStopLoss appears when a stop fits at the requested volume. Retry with a new Idempotency-Key and clientOrderId; an identical retry replays the stored refusal.
If the guard cannot read the account, its history, its positions or a symbol, it sends nothing and the command carries errorCode: "prop_guard_unavailable".

What the guard does not cover

  • Trades placed directly in MT5. They are counted at the next check but cannot be blocked.
  • Gaps, slippage, commission, swap and spread widening, which can still take an account past a limit.
  • News windows, minimum trading days, consistency rules and any rule a firm judges across accounts or devices.
  • Closing a position and cancelling an order are never blocked.

Next