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.3.1

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.3.1
File Size Uploaded Provenance Actions
xt_manager-0.3.1.tar.gz 29.2 kB Without provenance Details for xt_manager-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 64.4 kB

Release files / xt_manager-0.3.1.tar.gz

Download URL xt_manager-0.3.1.tar.gz
Size 29.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7b322a6e25cf56050e553b83b151fc6719d81d13c3c3637cac366cd75bb36c36
BLAKE2b-256 checksum
How to use checksums
b515a853daffbb6822e33ab955848af2bc88525bc49b689d7992f155ecb13941
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.3.1-py3-none-any.whl

Download URL xt_manager-0.3.1-py3-none-any.whl
Size 35.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a6c1fc98214c3324bd600e6e4ad4b963a7876f2a39d64d58c7c0a046dc0feda
BLAKE2b-256 checksum
How to use checksums
3db488151450d2b26ad538eb8b6386d6f1919c2188ec997b98d5bada2a2b8b39
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.3.1

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