UNPKG

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) 427 B
'use strict'; /** * Error which indicates that MetaApi MetaTrader account was not synchronized yet. See * https://metaapi.cloud/docs/client/websocket/synchronizationMode/ for more details */ export default class NotSynchronizedError extends Error { /** * Constructs the error * @param {String} message error message */ constructor(message) { super(message); this.name = 'NotSynchronizedError'; } }