OpenBB-finance / OpenBB

Investment Research for Everyone, Everywhere.
https://openbb.co
Other
31.86k stars 2.91k forks source link

[IMPROVE] Connection between OpenBB and MetaTrader #4970

Open michelmetran opened 1 year ago

michelmetran commented 1 year ago

It is suggested to add parameters for login in MetaTrader on the OpenBB platform (account number, password, server).

The platform's purpose of being an "API hub" could be expanded if it were possible to consume data by MetaTrader.

Studying the platform I saw that data providers have a big focus on US data. Data from other countries (I live in Brazil) are more fundamentalist and/or delayed.

If OpenBB could connect with MetaTrader (MT5), it would be possible to consume real-time data of shares traded on B3 (name of the Brazilian stock exchange).

The main brokerage houses in Brazil provide credentials for accessing B3 data via MT5. In this way, I see OpenBB connecting with Metatrader which, in turn, has updated data from B3, guaranteed by a broker.

I believe that with the integration API between python and Metatrader this would be facilitated: https://www.mql5.com/en/docs/python_metatrader5

This could make OpenBB more widespread around here...

AdamBenAlaya commented 1 year ago

Will this require you to install the MetaTrader platform? I know that you can use some external libraries to connect but do you think this will create conflicts with other market data API ?

viniciusparede commented 1 year ago

The idea of integrating MetaTrader and OpenBB would be excellent for Brazilian stocks, as mentioned by @michelmetran.

Just like him, I live in Brazil and have encountered some difficulties in using the service due to the data obtained via Yahoo Finance. This solution could bring benefits to the financial market community in Brazil and encourage them to engage more with OpenBB.

@AdamBenAlaya, as you mentioned, for this integration to take place, the user needs to have MetaTrader installed as a requirement. I believe this wouldn't be a hindrance for Brazilian users, for example.

Again, in my opinion, the integration with MetaTrader is quite straightforward for obtaining real-time quotes, and it won't create conflicts with other market data services that have already been implemented.