Skip to main content

MetaTrader 5 gRPC Server for remote trading operations

Project description

MT5 gRPC Server

A high-performance gRPC server implementation for MetaTrader 5, enabling remote trading operations and market data access.

Overview

This module provides a gRPC server that interfaces with MetaTrader 5 terminal, allowing remote access to trading operations, market data, and account management through a standardized gRPC API.

Installation

pip install mt5-grpc-server

Features

  • Account Operations

    • Account info retrieval
    • Balance and equity monitoring
    • Trading history access
  • Trading Operations

    • Order placement and modification
    • Position management
    • Order validation and calculations
  • Market Data

    • Real-time price data
    • Symbol information
    • Market depth (DOM)

Usage

Starting the Server

Example with secure connection:

mt5-grpc-server --host 127.0.0.1 --port 50052 --secure --cert-file server.crt --private-key-file server.key

Or without secure connection:

# Default port is 50051 and host is 0.0.0.0
mt5-grpc-server 

Command-line Options

The server supports the following command-line options:

  • --host HOST: Host address to bind the server to (default: "0.0.0.0")
  • --port PORT: Port number to listen on (default: 50051)
  • --secure: Enable secure connection with SSL/TLS
  • --cert-file FILE: Path to the SSL certificate file (required if --secure is used)
  • --private-key-file FILE: Path to the private key file (required if --secure is used)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mt5_grpc_server-0.2.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mt5_grpc_server-0.2.0-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file mt5_grpc_server-0.2.0.tar.gz.

File metadata

  • Download URL: mt5_grpc_server-0.2.0.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.12

File hashes

Hashes for mt5_grpc_server-0.2.0.tar.gz
Algorithm Hash digest
SHA256 805aebd41298c7bdfb5c435deda13cb0253ce29242f31d57ceca22af7835301c
MD5 8abfea57158e2c8b4ebfbcca0bf28582
BLAKE2b-256 e80bde555073b821f0beabf778b1cc3a4a49454c8a1933d99e818425cb730238

See more details on using hashes here.

File details

Details for the file mt5_grpc_server-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mt5_grpc_server-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf9bdfae9ecd388a2a0e87cf77b9bc5a6f8a92771a5a3a126e4040e699052f23
MD5 faacaccfc84304bc2462e19c25b70961
BLAKE2b-256 8452c805bb984033ffec0b60ace9d68bae228300e93bc39a0c3bd91b895a4c0a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page