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 (20 loc) • 662 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')
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);
}
}
module.exports = Metatrader