Official JavaScript SDK for MetaApi.cloud, a cloud-based forex trading API supporting MetaTrader 4 (MT4) and MetaTrader 5 (MT5). Current stable version is 29.3.3, with active releases. Key differentiators: provides both REST and WebSocket APIs, includes CopyFactory copy trading support, works in Node.js and browser environments, and ships TypeScript types. It abstracts away MetaTrader infrastructure complexity, offering a paid service with pricing comparable to self-hosting.
npm install metaapi.cloud-sdkNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes MetaApi client with API token and retrieves all MetaTrader accounts associated with the token.
Use 'import MetaApi from "metaapi.cloud-sdk/esm-node";' in ESM Node.js projects.
Use 'new MetaApi.default(token)' instead of 'new MetaApi(token)'.
Prefer ES module imports: import MetaApi from 'metaapi.cloud-sdk/esm-node'.
Ensure your account has sufficient quota and API key is correct.
Run 'npm install --save metaapi.cloud-sdk' and ensure import statement is correct: 'import MetaApi from "metaapi.cloud-sdk";'
Use the correct import path: 'import MetaApi from "metaapi.cloud-sdk/esm-node";'
Use 'new MetaApi.default(token)' when using the UMD bundle via script tag.
No dependency data recorded yet.