1

I can’t seem to find a solution on how to run MetaTrader 5 on a server like replit.io or etc. The code works on local desktop, but I believe the code on the server can’t initialize mt5. is there a solution for this? running a virtual machine is one expensive solution for this. all I need is to get data and send orders to my metatrader account. 24/7. Thank you in advance!

1 Answers1

2

You can try MetaApi https://metaapi.cloud cloud service which provides REST API and WebSocket API access to both MetaTrader 4 and MetaTrader 5 accounts.

Official REST API documentation: https://metaapi.cloud/docs/client

SDKs: https://metaapi.cloud/sdks (javascript, python and Java SDKs are provided as per November 2021)

It supports reading account information, positions, orders, trade history, receiving quotes, and accessing market data.

The service also provides copy trading API https://metaapi.cloud/docs/copyfactory and API to calculate forex trading metrics on a MetaTrader account https://metaapi.cloud/docs/metastats.

roman
  • 892
  • 9
  • 26
  • thanks! I already tried it before and I used to get errors but I thought about trying it again today and it worked! thanks my man, helped a lot. – heyyyelijah Dec 17 '21 at 20:17
  • does the official library do the same thing as their api? https://pypi.org/project/MetaTrader5/ you are saying use a normal vps service to run your python script and connect to the metaapi or use their Cloud offering ? I'm not sure what their cloud offering is.. it doesnt say if its a linux vps or something else. it just talks about accounts – user1689987 Feb 25 '23 at 20:57