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.
// RETRY SETTINGS
input int MaxRetries = 3; // Number of send attempts
input int InitialDelayMs = 1000; // First retry delay (milliseconds)
// API SETTINGS
input string ApiBaseUrl = "http://market-price.insightbull.io";
input string ApiKey = "";
Start Node.js server:
node src/server.js
Start Nginx proxy (run as administrator):
powershell -ExecutionPolicy Bypass -Command "cd nginx-1.24.0; .\nginx.exe"
# OR: Right-click nginx.exe → "Run as administrator"
Configure MT5 EA:
ApiBaseUrl: Use http://market-price.insightbull.io (nginx proxy)Stop services: ```bash
taskkill /f /im nginx.exe
# Stop Node.js (Ctrl+C in terminal or) taskkill /f /im node.exe
### Alternative Using Batch Files
```bash
# Start everything (run as administrator)
start_proxy.bat
# Stop everything
stop_proxy.bat
If not using Nginx proxy:
ApiBaseUrl: Use http://localhost:3001ApiBaseUrl: Use http://127.0.0.1:3001Retry Sequence
Permanent Failures
After exhausting retries:
Print("Permanent failure: ", result, " - ", error);
// TODO: Implement dead letter queue storage
Critical Errors
All numeric values use MT5's double type (15-digit precision) mapped to:
```javascript
// API expects DECIMAL(18,15)
Joi.number().precision(15)