Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MetaTrader 5 Integration #1764

Open
kaustv-datta opened this issue Jul 2, 2024 · 7 comments
Open

MetaTrader 5 Integration #1764

kaustv-datta opened this issue Jul 2, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@kaustv-datta
Copy link

Feature Request

Since a lot of brokers are transitioning to the MetaTrader 5 trading platform, it would be nice to have a MT5 - NautilusTrader integration.

There is an official MT5 python library-

A drawback - as of today, the python package works only on windows OS.

@kaustv-datta kaustv-datta added the enhancement New feature or request label Jul 2, 2024
@NextThread
Copy link
Contributor

Then we have to skip it as for now, as it only works in windows

@gmcaixeta
Copy link

gmcaixeta commented Jul 7, 2024

One suggestion:

It is possible to create a Rest API on top of metatrader. In that case, using Fastapi + Metatrader library for instance, it is possible to create all necessary routes (similar to binance).

For this scenario, it is only required to host a windows machine on cloud to work as a Rest API, and nautilus can stay in other machine (linux /mac/windows) using docker.

@seekersoftec
Copy link

There are metatrader docker containers out there we can use. We could also take the same approach that was done with interactive brokers.

@gmcaixeta
Copy link

There are metatrader docker containers out there we can use. We could also take the same approach that was done with interactive brokers.

I've been using this project, and it works fine in linux:

MetaTrader5-Docker-Image

@seekersoftec
Copy link

seekersoftec commented Sep 19, 2024

There are metatrader docker containers out there we can use. We could also take the same approach that was done with interactive brokers.

I've been using this project, and it works fine in linux:

MetaTrader5-Docker-Image

Thanks, I created something similar, it still needs some work to be fully polished though, it has an auto-login feature where it does the initial login process for you.

metatrader-terminal

@gmcaixeta
Copy link

There are metatrader docker containers out there we can use. We could also take the same approach that was done with interactive brokers.

I've been using this project, and it works fine in linux:
MetaTrader5-Docker-Image

Thanks, I created something similar, it still needs some work to be fully polished though, it has an auto-login feature where it does the initial login process for you.

metatrader-terminal

That's very cool @seekersoftec , congrats!

In order to avoid one metatrader container per bot , I am testing using Fast APi on top of metatrader, to centralize all the order and data request in only one metatrader container. This may lose performance, but it saves space on cloud.

@seekersoftec
Copy link

There are metatrader docker containers out there we can use. We could also take the same approach that was done with interactive brokers.

I've been using this project, and it works fine in linux:
MetaTrader5-Docker-Image

Thanks, I created something similar, it still needs some work to be fully polished though, it has an auto-login feature where it does the initial login process for you.
metatrader-terminal

That's very cool @seekersoftec , congrats!

In order to avoid one metatrader container per bot , I am testing using Fast APi on top of metatrader, to centralize all the order and data request in only one metatrader container. This may lose performance, but it saves space on cloud.

Thanks! Quite an interesting problem, although it was not considered when I first took the Fast API route(thought it was going to be a long road), finally opted for performance instead when I considered a use case for RL.
trade_flow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants