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.1.1.tar.gz (13.6 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.1.1-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mt5_grpc_server-0.1.1.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.6

File hashes

Hashes for mt5_grpc_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1526cfa1941be55846c8014eddd7261f49b2ca2ab30c6dba8534004644640299
MD5 f7440d6f65a3c6ec3be477193457464e
BLAKE2b-256 01bf86648910e589441955155ec0834a889bfbf23fea98fd0cebff352428113d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mt5_grpc_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 96c48f1d8bb6f1763b56d24a8980dee44488dfefc446d14ca8473664309b6753
MD5 e999ff3ff71f369c7fe6ee3ffec555e4
BLAKE2b-256 32fe77da5890ae3c9670d966d0f1f55ca0f3e3e9bd93c9e56f924c943404a5db

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