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.12345curl -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"}'
"readOnly": true: reads work, and every order returns read_only_credentials before MT5 is contacted. Link with the trading password to place orders.| Firm | Programs |
| FTMO | 2-Step, 1-Step |
| FundedNext | Stellar 2-Step, Stellar 1-Step |
| The5ers | High Stakes |
409 prop_program_not_set from prop-status, and its orders are not checked by the guard.12curl https://api.fivesocket.com/v1/accounts/acc_.../prop-status \ -H "Authorization: Bearer $FIVESOCKET_KEY"
12345678910111213{ "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": [] } }
state is ok, near_breach once 80% of a limit is used, or breached. calculated.notes marks any value that is an estimate.123456789101112import 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"])
PUT /v1/accounts/{accountId}/execution and a symbol allowlist. Then every order needs a stopLoss:12345curl -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"}'
reason | When |
breached | The account already touched a floor |
unprotected_exposure | An open position or pending order has no stop loss |
no_stop_loss | The order has no stop loss |
exceeds_room | The loss at the stop, plus the loss at the stops of everything already open, would use up the room left |
200 command with outcome: "rejected", errorCode: "prop_rule_would_breach" and a propRefusal that says why:123456789101112131415{ "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.errorCode: "prop_guard_unavailable".prop_status tool.