Skip to main content

xt-manager

Python client for XT Manager, used the same way as MetaQuotes mt5manager:

import XTManager

manager = XTManager.ManagerAPI()
manager.Connect("127.0.0.1:8443", 2504, "password", 0, 30000)
pip install xt-manager

From this repo during development:

pip install -e apps/xt-manager

Connect uses the manager id and the trading-account master password. Callers connect to the Access Server. Access forwards /xt-manager/ to broker-api-go, which is the process started with pnpm nx run broker-api-go:serve. There is no separate manager API process.

Order

  1. Start broker-api-go and the Access Server.
  2. Connect with the manager login, that account's master password, and the Access address (127.0.0.1:8443 in local development).

The Python package remains the client library. Account, order, deal, and position records are stored by broker-api-go. The password stays out of the repository.

While a session is open, broker-api-go logs the manager login and caller address. A connected manager can call OnlineTotal, OnlineNext, and OnlineGet. Type is 34 for a manager connection.

User calls use the Manager API names and the user record field names: UserRequest, UserGet, UserRequestByGroup, UserRequestByLogins, UserRequestArray, UserTotal, UserGroup, UserLogins, UserUpdate, UserUpdateBatch, UserAdd, UserDelete, UserPasswordCheck, UserPasswordChange, and UserBalanceCheck. UserPasswordCheck and UserPasswordChange take (type, login, password). Type 0 is the main password. The password is not returned. UserAdd creates the next trading login under the connected manager id.

Trading calls use the same names: orders (OrderAdd, OrderUpdate, OrderCancel, OrderRequest, OrderRequestOpen, and the by-group, by-logins, and by-tickets forms), closed orders (HistoryRequest and the same filters), positions (PositionRequest, PositionGet, PositionUpdate, PositionDelete), and deals (DealAdd, DealPerform, DealRequest, DealUpdate, DealDelete). DealRequest(login, start, end) and PositionRequest(login) return lists. DealPerform with entry 0 opens a position and entry 1 closes it and adds profit to the balance.

DealerBalance(login, amount, type, comment) writes a balance deal when type is 2 and a credit deal when type is 3, and returns the deal ticket. GroupUpdate, GroupRequest, GroupTotal, SymbolUpdate, SymbolRequest, SymbolExist, UserAccountRequest, and TimeServer read and write the matching records. Prices, volumes, and money fields are decimal strings.

Metadata

Release files for xt-manager 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xt-manager 0.2.0
File Size Uploaded Provenance Actions
xt_manager-0.2.0.tar.gz 25.8 kB Without provenance Details for xt_manager-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xt-manager 0.2.0
File Interpreter ABI Platform Actions
xt_manager-0.2.0-py3-none-any.whl Python 3 none any Details for xt_manager-0.2.0-py3-none-any.whl

Total release size: 57.2 kB

Release files / xt_manager-0.2.0.tar.gz

Download URL xt_manager-0.2.0.tar.gz
Size 25.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e34f13515415629ab230a7882a13863bcb945b995ca6e6f6ecf6dcaa56ccb5d8
BLAKE2b-256 checksum
How to use checksums
a0f2fd78979c98bf7eed0fa13676f21dc6252b7512002c9f0e340bb4b79f8fab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / xt_manager-0.2.0-py3-none-any.whl

Download URL xt_manager-0.2.0-py3-none-any.whl
Size 31.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e4ced75918508c5e68772fc784a559740ca7610e28ad6b077e3a83676f0f4e4
BLAKE2b-256 checksum
How to use checksums
cf318f076f0815db1430e910d7465e5ec8b841f9caa1d6e5eb34523877f5a2fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for xt-manager 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page