Skip to main content

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.

MetaStats API features

Features supported:

  • support for MetaTrader 4 and MetaTrader 5 platforms

  • metrics calculation for MetaTrader accounts added to MetaApi

  • optionally include open positions in metrics calculation

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.

Pricing

MetaStats is available to all MetaApi users without extra charges at this point.

You pay only an affordable fee for MetaApi MetaTrader terminal hosting. See https://metaapi.cloud/#pricing for more details.

MetaApi provides a free tier so that you can test our APIs without any charges.

Frequently asked questions (FAQ)

FAQ is located here: http://metaapi.cloud/docs/metastats/faq

REST API documentation

MetaStats SDK is built on top of MetaStats REST API.

MetaStats REST API docs are available at https://metaapi.cloud/docs/metastats/

Code examples

We published some code examples in our github repository, namely:

Installation

pip install metaapi-cloud-sdk

Retrieving API token

Please visit https://app.metaapi.cloud/token web UI to obtain your API token.

Configuring trading statistics

from metaapi_cloud_sdk import MetaStats

token = '...'
api = MetaStats(token=token)

See in-code documentation for full definition of possible configuration options.

Retrieving trading statistics

account_id = '...'  #  MetaApi account id

# retrieve MetaApi MetaTrader account statistics
print(await metaStats.get_metrics(account_id=account_id))

# retrieve MetaApi MetaTrader account statistics including open positions
print(await metaStats.get_metrics(account_id=account_id, include_open_positions=True))

Release files for metaapi-cloud-metastats-sdk 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for metaapi-cloud-metastats-sdk 1.0.0
File Size Uploaded
metaapi_cloud_metastats_sdk-1.0.0.tar.gz 14.3 kB Details

Release files / metaapi_cloud_metastats_sdk-1.0.0.tar.gz

Download URL metaapi_cloud_metastats_sdk-1.0.0.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
dae7b9a490125e9a4d52b039234af7c47ead5f766aa479f9d8660270e7eb229f
BLAKE2b-256 checksum
How to use checksums
f3b4c8e041267d19aaf1844cf34202a7e2e86d47efbd96ff51a10b10127b4360
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

Release history Release notifications | RSS feed

6.0.0

2 release files

5.1.0

2 release files

5.0.2

2 release files

5.0.0

1 release file

4.0.1

1 release file

3.3.1

1 release file

3.3.0

1 release file

3.2.2

1 release file

3.2.1

1 release file

3.2.0

1 release file

3.1.2

1 release file

3.1.1

1 release file

3.1.0

1 release file

2.0.0

1 release file

1.0.4

1 release file

1.0.3

1 release file

This release

1.0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page