metaapi.cloud-sdk
Version:
SDK for MetaApi, a professional cloud forex API which includes MetaTrader REST API and MetaTrader websocket API. Supports both MetaTrader 5 (MT5) and MetaTrader 4 (MT4). CopyFactory copy trading API included. (https://metaapi.cloud)
19 lines (15 loc) • 376 B
text/typescript
;
/**
* Error which indicates that MetaTrader terminal did not start yet. You need to wait until account is connected and
* retry.
*/
export default class NotConnectedError extends Error {
/**
* Constructs the error
* @param {String} message error message
*/
constructor(message) {
super(message);
this.name = 'NotConnectedError';
}
}