Market Data Service is a high-performance financial data API that provides comprehensive Symbol prices of different markets through both RESTful endpoints and real-time WebSocket connections.

MT5_OPERATION.md 986B

MT5 Expert Advisor Operation Guide

Configuration Settings

// RETRY SETTINGS
input int    MaxRetries = 3;       // Number of send attempts
input int    InitialDelayMs = 1000; // First retry delay (milliseconds)

// API SETTINGS
input string ApiBaseUrl = "http://localhost:3000";
input string ApiKey = ""; 

Failure Recovery Behavior

  1. Retry Sequence

    • Attempt 1: Immediate send
    • Attempt 2: 1 second delay
    • Attempt 3: 2 second delay
    • Attempt 4: 4 second delay
  2. Permanent Failures
    After exhausting retries:

    Print("Permanent failure: ", result, " - ", error);
    // TODO: Implement dead letter queue storage
    
  3. Critical Errors

    • Network failures: Retried
    • 4xx Client errors: Not retried
    • 5xx Server errors: Retried

Data Precision

All numeric values use MT5's double type (15-digit precision) mapped to: ```javascript // API expects DECIMAL(18,15) Joi.number().precision(15)