MetaTrader Sockets API Client
Client SDK of MetaTrader Sockets API
Run
import asyncio
from metatrader import (
TerminalClient,
)
async def main():
client = await TerminalClient.create(verbose=False)
async def fetch_account_info():
account_info = await client.get_account()
if account_info:
print(f"Account Info: {account_info}")
else:
print("Failed to fetch account info.")
async def fetch_exchange_info():
exchange_info = await client.get_exchange_info()
if exchange_info:
print(f"Exchange Info: {exchange_info}")
else:
print("Failed to fetch exchange info.")
await fetch_account_info()
# OR
tasks = [fetch_account_info, fetch_exchange_info]
await client._run(tasks)
if __name__ == "__main__":
loop = asyncio.get_event_loop()
try:
loop.run_until_complete(main())
finally:
loop.close()
Metadata
Release files for metatrader-sockets-client 0.0.4
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 |
|---|---|---|---|---|
| metatrader_sockets_client-0.0.4.tar.gz | 12.7 kB | Without provenance | Details for metatrader_sockets_client-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| metatrader_sockets_client-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for metatrader_sockets_client-0.0.4-py3-none-any.whl |
Total release size: 27.6 kB
Release files / metatrader_sockets_client-0.0.4.tar.gz
| Download URL | metatrader_sockets_client-0.0.4.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5607236d475283b354e53b181b8ba493ce308553836997802bf312b64624907
|
|
BLAKE2b-256 checksum How to use checksums |
f0e2ba454be4e68bbfc292ecac20973abfdf7065aec68b5265f0a69cb288bfc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / metatrader_sockets_client-0.0.4-py3-none-any.whl
| Download URL | metatrader_sockets_client-0.0.4-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1823d104dd20280d2961540dc849ff8e108670f08f4043ce6c32c28419847aec
|
|
BLAKE2b-256 checksum How to use checksums |
3657d79a902918820164061a5b68b62c6d80d9015543cbd1c1928104381e710a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Security for metatrader-sockets-client 0.0.4
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.