Gathering detailed insights and metrics for metaapi.cloud-sdk
Gathering detailed insights and metrics for metaapi.cloud-sdk
Gathering detailed insights and metrics for metaapi.cloud-sdk
Gathering detailed insights and metrics for metaapi.cloud-sdk
Browser and node.js javascript SDK for MetaApi, a professional cloud forex trading API for MetaTrader platform which supports both MetaTrader MetaTrader 5 and MetaTrader 4. Free usage tier available.
npm install metaapi.cloud-sdk
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
34 Stars
13 Commits
3 Forks
3 Watching
1 Branches
1 Contributors
Updated on 18 Nov 2024
Cumulative downloads
Total Downloads
Last day
32.1%
280
Compared to previous day
Last week
-58.4%
1,415
Compared to previous week
Last month
55.5%
10,044
Compared to previous month
Last year
-13.6%
81,100
Compared to previous year
21
30
MetaApi is a powerful, fast, cost-efficient, easy to use and standards-driven cloud forex trading API for MetaTrader 4 and MetaTrader 5 platform designed for traders, investors and forex application developers to boost forex application development process. MetaApi can be used with any broker and does not require you to be a brokerage.
CopyFactory is a simple yet powerful copy-trading API which is a part of MetaApi. See below for CopyFactory readme section.
MetaApi is a paid service, however we offer a free tier for testing and personal use.
The MetaApi pricing was developed with the intent to make your charges less or equal to what you would have to pay for hosting your own infrastructure. This is possible because over time we managed to heavily optimize our MetaTrader infrastructure. And with MetaApi you can save significantly on application development and maintenance costs and time thanks to high-quality API, open-source SDKs and convenience of a cloud service.
Official REST and websocket API documentation: https://metaapi.cloud/docs/client/
Please note that this SDK provides an abstraction over REST and websocket API to simplify your application logic.
For more information about SDK APIs please check esdoc documentation in source codes located inside lib folder of this npm package.
Please check this short video to see how you can download samples via our web application.
You can also find code examples at examples folder of our github repo or in the examples folder of the npm package.
We have composed a short guide explaining how to use the example code
1npm install --save metaapi.cloud-sdk
1npm install --save metaapi.cloud-sdk
Examples of integration with :
1<script src="unpkg.com/metaapi.cloud-sdk"></script> 2<script> 3 const token = '...'; 4 const api = new MetaApi.default(token); 5</script>
Details of integration into HTML.
1import MetaApi from 'metaapi.cloud-sdk/esm-node'; 2 3const token = '...'; 4const api = new MetaApi(token);
Please use one of these ways:
Supply token to the MetaApi class constructor.
1import MetaApi from 'metaapi.cloud-sdk'; 2 3const token = '...'; 4const api = new MetaApi(token);
Account access token grants access to a single account. You can retrieve account access token via token management API:
1const accountId = '...'; 2const validityInHours = 24; 3const accountAccessToken = await api.tokenManagementApi.narrowDownToken( 4 { 5 applications: ['trading-account-management-api', 'copyfactory-api', 'metaapi-rest-api', 'metaapi-rpc-api', 'metaapi-real-time-streaming-api', 'metastats-api', 'risk-management-api'], 6 roles: ['reader'], 7 resources: [{entity: 'account', id: accountId}] 8 }, 9 validityInHours 10); 11console.log(accountAccessToken);
Alternatively, you can retrieve account access token via web UI. For that go to https://app.metaapi.cloud/accounts page and choose "Account access token" option in the trading account card actions menu.
No vulnerabilities found.
No security vulnerabilities found.