mtapi | MetaTrader API | REST library

 by   vdemydiuk C# Version: MT4-v1.0.43 License: MIT

kandi X-RAY | mtapi Summary

kandi X-RAY | mtapi Summary

mtapi is a C# library typically used in Web Services, REST, Nodejs applications. mtapi has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

MtApi provides a .NET API for working with famous trading platfrom MetaTrader(MetaQuotes). It is not API for connection to MT servers directly. MtApi is just a bridge between MT terminal and .NET applications designed by developers. MtApi executes MQL commands and functions by MtApi's expert linked to chart of MetaTrader. Most of the API's functions duplicates MQL interface. The project was designed using WCF framework with the intention of using flexibility to setup connections.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              mtapi has a low active ecosystem.
              It has 447 star(s) with 262 fork(s). There are 61 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 82 open issues and 155 have been closed. On average issues are closed in 82 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of mtapi is MT4-v1.0.43

            kandi-Quality Quality

              mtapi has 0 bugs and 0 code smells.

            kandi-Security Security

              mtapi has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              mtapi code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              mtapi is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              mtapi releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mtapi
            Get all kandi verified functions for this library.

            mtapi Key Features

            No Key Features are available at this moment for mtapi.

            mtapi Examples and Code Snippets

            No Code Snippets are available at this moment for mtapi.

            Community Discussions

            QUESTION

            How to subscribe to a .NET event in a python listener using pythonnet?
            Asked 2020-Dec-13 at 19:26

            I'm trying to make an event listener to subscribe to a tick (price) event from a FX trading application, using Python. The original application is a native 32-bit Windows app called MetaTrader4. This does not have any API, so the mtapi bridge has been designed in .NET to allow other programming languages to interact with it. The application has some events defined, two of which are: QuoteUpdate and QuoteUpdated.

            So I would like to write a listener (delegate?) using python.net to subscribe to this event. But since I am not able to understand how the .NET code is producing these events, and neither how to properly use pythonnet, I have not been able to get this to work. I also keep running into the error:

            TypeError: 'EventBinding' object is not callable

            Googling this doesn't return anything useful, apart this "FIXME" comment.

            Here's is my code:

            ...

            ANSWER

            Answered 2020-Nov-25 at 20:04

            According to the mtapi documentation you linked, the code should be:

            Source https://stackoverflow.com/questions/64848373

            QUESTION

            How to convert a OHLCV named data array into a numpy dataframe?
            Asked 2020-Dec-09 at 09:32

            My data consist of a particular OHLCV object that is a bit weird in that it can only be accessed by the name, like this:

            ...

            ANSWER

            Answered 2020-Dec-09 at 09:07

            One idea is use list comprehension for extract values to list of tuples:

            Source https://stackoverflow.com/questions/65213561

            QUESTION

            How do I convert a VB delegate into a python event handler?
            Asked 2020-Nov-23 at 22:23

            I have to rewrite the following VB code that is subscribing to a delegate (event), into python, using python.net.

            ...

            ANSWER

            Answered 2020-Nov-23 at 22:19

            As closely related to this answer in a similar question, the issue was in over-complicating the delegate code. We simply don't need the OnTick class and also realizing that the QuoteUpdatedHandler() need 4 arguments, so we replace the printTick(...) with that.

            (Of course if you do want to make somethng a little more complicated or elegant, you do want to create this in a class.)

            Then the equivalent Python code to for the VB delegate, become:

            Source https://stackoverflow.com/questions/64851726

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install mtapi

            The project is supported by Visual Studio 2017. It requires WIX Tools for preparing project's installers (http://wixtoolset.org/).
            Make sure you install one of the latest (3.14+) development releases of the wixtoolset. (If you use an older installer you will have to install the ancient .NET 3.5 framework, and that I am sure you will regret, if you do!).
            Run the installer and wait for completion or for asking to also install the VS extensions.
            Install the WiX Toolset Visual Studio Extension depending on your VS version. For example, if you use VS 2017, go here or download from their GitHub, releases.
            To build the solution for MT4, you need to choose the configuration to build for x86 and start with building the MtApiInstaller. This will build all projects related to MT4:.
            MtApi
            MTApiService
            MTConnector
            MtApi5
            MTApiService
            MT5Connector
            ..\mql4\
            ..\mql5\
            hash.mqh
            json.mqh
            Use the installers to setup all libraries automatically. MtApiBootstrapper and MtApi5Bootstrapper are installation package bundles that contain the installers and vc_redist Windows libraries. The installers place the MTApiService.dll into the Windows GAC (Global Assembly Cache) and copies MTConnector.dll and MT5Connector.dll into the Windows's system folder, whose location depend on your Windows OS. After installation, the MtApi.ex4 (or MtApi5.ex5) EA, must be copied into your Terminal data folder for Expert Advisors, which is normally located in: ../MQL5/Experts/. To quickly navigate to the trading platform data folder, click: File >> "Open data folder" in your MetaTrader Terminal.
            For MT4, use: MtApiInstaller_setup.exe
            For MT5, use: MtApi5Installer setup.exe

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries