Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
metaapi-cloud-metastats-sdk
Advanced tools
Python 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 forex metrics API ########################### 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 <https://metaapi.cloud>
_), a powerful cloud forex
trading API which supports both MetaTrader 4 and MetaTrader 5 platforms.
This SDK requires a 3.8+ version of Python to run.
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 <https://metaapi.cloud/#pricing>
_ for more details.
MetaApi provides a free tier so that you can test our APIs without any charges.
FAQ is located here: http://metaapi.cloud/docs/metastats/faq/ <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/ <https://metaapi.cloud/docs/metastats/>
_
We published some code examples in our github repository, namely:
https://github.com/metaapi/metaapi-metastats-python-sdk/tree/master/examples <https://github.com/metaapi/metaapi-metastats-python-sdk/tree/master/>
_.. code-block:: bash
pip install metaapi-cloud-sdk
Please visit https://app.metaapi.cloud/token <https://app.metaapi.cloud/token>
_ web UI to obtain your API token.
.. code-block:: python
from metaapi_cloud_sdk import MetaStats
token = '...'
api = MetaStats(token=token)
See in-code documentation for full definition of possible configuration options.
.. code-block:: python
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))
# retrieve MetaApi MetaTrader account trades
print(await metaStats.get_account_trades(account_id=account_id, start_time='2020-01-01 00:00:00.000',
end_time='2021-01-01 00:00:00.000'))
# retrieve MetaApi MetaTrader account open trades
print(await metaStats.get_account_open_trades(account_id=account_id))
API calls you make are subject to rate limits. See https://metaapi.cloud/docs/metastats/rateLimiting/ <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 <https://metaapi.cloud/#features>
_
Some of the APIs you might decide to use together with this module:
https://metaapi.cloud/docs/client/ <https://metaapi.cloud/docs/client/>
_https://metaapi.cloud/docs/copyfactory/ <https://metaapi.cloud/docs/copyfactory/>
_https://metaapi.cloud/docs/provisioning/ <https://metaapi.cloud/docs/provisioning/>
_https://metaapi.cloud/docs/manager/ <https://metaapi.cloud/docs/manager/>
_https://metaapi.cloud/docs/risk-management/ <https://metaapi.cloud/docs/risk-management/>
_FAQs
Python 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 1 open source maintainer 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.