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
- Start broker-api-go and the Access Server.
- Connect with the manager login, that account's master password, and the Access address (
127.0.0.1:8443in 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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xt_manager-0.3.0.tar.gz | 28.5 kB | Without provenance | Details for xt_manager-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xt_manager-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for xt_manager-0.3.0-py3-none-any.whl |
Total release size: 62.8 kB
Release files / xt_manager-0.3.0.tar.gz
| Download URL | xt_manager-0.3.0.tar.gz |
|---|---|
| Size | 28.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ed2b902268bed12f6ea390391ae4152d79b4a6137589ec396433d5f0f153a9c
|
|
BLAKE2b-256 checksum How to use checksums |
ad952ddfce536c9f5611ad1fcebb4cb86845ec98caa89fdfbc252f3482ba647d
|
| 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.0-py3-none-any.whl
| Download URL | xt_manager-0.3.0-py3-none-any.whl |
|---|---|
| Size | 34.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
728ae9c8be942eef01786ac204a8c996189733c6f2b67e1313444b5df71f7ef5
|
|
BLAKE2b-256 checksum How to use checksums |
83b1b2aba5b5ac95313c07a6cba69d4e9bdfa9d5f7e24be1256b7f11ff2520dc
|
| 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.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.