Skip to content

Backoffice migration tool

The migration tool is available at Backoffice → Data migration and is restricted to SuperAdmins. It supports account creation and closed position history imports from CSV, XLSX, and JSON files up to 8 MiB and 1000 rows. The normalized TCP preview payload is limited to 4 MiB. It does not overwrite existing accounts or import account balances/funding.

Import workflow

  1. Open Migrations and select Accounts or Closed trades.
  2. Select the source file. CSV accepts comma, semicolon, or tab separators, quoted multiline fields, and escaped quotes. XLSX reads only the first worksheet and displays that worksheet name. JSON must be an array of scalar-valued objects.
  3. Map each canonical field to a source column or a shared default value. Unmapped fields are omitted. Exact aliases include Ticket, Deal, and external_id for source_id. Downloadable CSV and JSON templates are available. Dates may be Unix epoch seconds or ISO 8601 with an explicit timezone; volume must be an integer in engine units.
  4. Create a preview. The server validates every row and reports row number, field, and error for invalid data. Preview submission clears the local raw file rows and password values after the request. An invalid preview cannot be applied.
  5. For a ready preview, review the row counts and (for closed trades) the per-account balance preservation summary, including currency and money precision.
  6. Select the explicit confirmation checkbox and apply. The job is queued in RAM and runs in the background. Keep the migration ID and use the history list to monitor its status and results. A completed status means the underlying account or trade batch committed; job status persistence can follow shortly afterward. Jobs can be monitored after closing the page. Ready jobs can be applied; failed or interrupted jobs can be explicitly retried with the same ID. The client never retries automatically. If the apply result is ambiguous, the UI blocks a new apply until the job is refreshed.

SuperAdmin authorization is required. The preview snapshot is the data that will be applied; changing the source file after preview does not change the job. A closed-history apply uses a brief platform-wide restore barrier. A conflict with an in-flight restore/reconciliation may prevent application, so inspect the final job status before retrying.

Account import

Account imports create new accounts only. Required fields are group, name, and email. Optional login and registration time can preserve source identifiers. If a password is omitted, the platform generates one and does not reveal it in preview or results; use the normal password-reset process to provide credentials to the account holder. Account balance, credit, bonus, and group default deposits are not imported.

Closed history import

Closed trades require an existing target account and symbol. Only BUY and SELL history is supported. The platform assigns new order numbers and returns the source reference alongside the created order. Existing balance is preserved by a closed correction included atomically with the imported history; inspect the preview summary carefully.

Job privacy and retention

The job history shows validation errors and safe import results, but never exposes raw file rows or password hashes. The BackOffice history includes an explicit delete-record confirmation for non-active jobs; the same operation is available through the manager TCP API. Deleting a completed job removes its migration record and does not reverse imported data.

For wire-level fields and command examples, see Migration Tool TCP API.