> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quader864.ir/llms.txt
> Use this file to discover all available pages before exploring further.

# Update account

> Update MT5 account information

## Request body

<ParamField body="accountNumber" type="string" required>
  MT5 account number
</ParamField>

<ParamField body="balance" type="number">
  Account balance
</ParamField>

<ParamField body="equity" type="number">
  Account equity
</ParamField>

<ParamField body="margin" type="number">
  Used margin
</ParamField>

<ParamField body="freeMargin" type="number">
  Available free margin
</ParamField>

<ParamField body="leverage" type="number">
  Account leverage
</ParamField>

## Response

<ResponseField name="status" type="string">
  Operation status ("ok" or "error")
</ResponseField>

<ResponseField name="message" type="string">
  Status message
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api-verifier-2.onrender.com/mt5/update/account \
    -H "Content-Type: application/json" \
    -d '{
      "accountNumber": "12345678",
      "balance": 10000.00,
      "equity": 10500.00,
      "margin": 500.00,
      "freeMargin": 10000.00,
      "leverage": 100
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "status": "ok",
    "message": "Account updated"
  }
  ```

  ```json 500 theme={null}
  {
    "status": "error"
  }
  ```
</ResponseExample>
