
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
metaapi.cloud-metastats-sdk
Advanced tools
Javascript SDK for MetaStats forex trading statistics API. Can calculate metrics for MetaTrader accounts added to MetaApi. Supports both MetaTrader 5 (MT5) and MetaTrader 4 (MT4). (https://metaapi.cloud)
MetaStats is a fast, cost-efficient, easy to use and standards-driven cloud forex trading statistics API supporting both MetaTrader 4 and MetaTrader 5 platforms designed to boost forex application development process.
Using MetaStats API you can develop applications similar to Myfxbook or MetriX extremely fast, saving time you otherwise spend for coding, optimizing and testing your own trading metrics calculation engine, since we already did it for you.
MetaStats API is a member of MetaApi project (https://metaapi.cloud), a powerful cloud forex trading API which supports both MetaTrader 4 and MetaTrader 5 platforms.
Features supported:
The features described above are available for use via a professional, fast, easy to use, standards-driven REST API which can be easily consumed from any programming language.
The primary intended use of MetaStats API is creating trade monitoring applications.
MetaStats is available to all MetaApi users without extra charges at this point.
You pay a fee executing MetaTrader terminal on MetaApi cloud. See https://metaapi.cloud/#pricing for more details. In some cases a free tier access can be available.
FAQ is located here: http://metaapi.cloud/docs/metastats/faq/
MetaStats SDK is built on top of MetaStats REST API.
MetaStats REST API docs are available at https://metaapi.cloud/docs/metastats/
We published some code examples in our github repository, namely:
npm install --save metaapi.cloud-sdk
npm install --save metaapi.cloud-sdk
<script src="unpkg.com/metaapi.cloud-sdk"></script>
<script>
const token = '...';
const metaStats = new MetaStats(token);
</script>
Please visit https://app.metaapi.cloud/token web UI to obtain your API token.
import {MetaStats} from 'metaapi.cloud-sdk';
const token = '...';
const metaStats = new MetaStats(token);
See esdoc in-code documentation for full definition of possible configuration options.
let accountId = '...'; // MetaApi account id
// retrieve MetaApi MetaTrader account statistics
console.log(await metaStats.getMetrics(accountId));
// retrieve MetaApi MetaTrader account statistics including open positions
console.log(await metaStats.getMetrics(accountId, true));
// retrieve MetaApi MetaTrader account trades
console.log(await metaStats.getAccountTrades(accountId, '2020-01-01 00:00:00.000', '2021-01-01 00:00:00.000'));
// retrieve MetaApi MetaTrader account open trades
console.log(await metaStats.getAccountOpenTrades(accountId));
// reset MetaApi MetaTrader account metrics
console.log(await metaStats.resetMetrics(accountId));
API calls you make are subject to rate limits. See https://metaapi.cloud/docs/metastats/rateLimiting/ for more details.
See our website for the full list of APIs and features supported https://metaapi.cloud/#features
Some of the APIs you might decide to use together with this module:
FAQs
Javascript SDK for MetaStats forex trading statistics API. Can calculate metrics for MetaTrader accounts added to MetaApi. Supports both MetaTrader 5 (MT5) and MetaTrader 4 (MT4). (https://metaapi.cloud)
We found that metaapi.cloud-metastats-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.