mt5-sdk
Version:
A Node.js SDK for interacting with the MetaTrader 5 Web API, enabling seamless integration of MetaTrader 5 trading features into your applications.
26 lines (22 loc) • 698 B
JavaScript
const https = require("https");
const crypto = require("crypto");
const Auth = require("./lib/auth");
const Http = require("./lib/http");
const Users = require("./lib/users");
const Clients = require("./lib/client");
const Trade = require("./lib/trade");
class Metatrader {
constructor(server, port, authOption) {
this.server = server;
this.port = port;
this.authOption = authOption;
this.https = new https.Agent();
this.https.maxSockets = 1;
this.auth = new Auth(this);
this.http = new Http(this);
this.users = new Users(this);
this.clients = new Clients(this);
this.trade = new Trade(this);
}
}
module.exports = Metatrader;