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.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.2.1
File Size Uploaded Provenance Actions
xt_manager-0.2.1.tar.gz 26.0 kB Without provenance Details for xt_manager-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 57.5 kB

Release files / xt_manager-0.2.1.tar.gz

Download URL xt_manager-0.2.1.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0c3f9de16403541062d448cb1f7739337e1ed6b57cdf99dbc7c8a4ac3a93f718
BLAKE2b-256 checksum
How to use checksums
faba691be93304901883cf6e5927fe12750ee885898644f8a3cf39e7837fea8c
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.1-py3-none-any.whl

Download URL xt_manager-0.2.1-py3-none-any.whl
Size 31.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf8df92c992ccc75054e2dfe5b281a17493931dfba7055dd653c94888ed9292b
BLAKE2b-256 checksum
How to use checksums
5d2e2b26ddb2f2d1390248d4a71d73dcf56013967b7ca5e06d97ae89d0622983
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.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