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.1.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.1-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mt5_grpc_server-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6815d50be50b0571a0e6df8c94706ff9eda4bbba7f579fb820f6c35f1d456cf7
MD5 ac44cc3261060f916f1b9f6916adf7f7
BLAKE2b-256 9b67ca0925f40529a85fb2f3124a67e8f9d1f04298bed511dd2ffc6ea4f56e32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mt5_grpc_server-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 78384a7fadfa70d1a59fd2af7c987cbbd5b21628a67d35e92dc37331a385e6b4
MD5 7f98682a83712ea2ae86df79f05bc8cb
BLAKE2b-256 fcc4981e04df7319ca612309c596f14bf898b1c14562372706c53d8f60813658

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