AI4Finance-Foundation / FinRL-Meta

FinRL­-Meta: Dynamic datasets and market environments for FinRL.
https://ai4finance.org
MIT License
1.18k stars 555 forks source link

How to connect one of FinRL algorithm to the real market ? (and execute trades) #249

Open aymeric75 opened 1 year ago

aymeric75 commented 1 year ago

Hello,

Thanks for this wonderful library.

I would like to connect one of the RL algos (say the Stock_NeurIPS2018_SB3) to a real broker.

Do you recommend any Python Library to do so ? Or any other way ?

I was thinking of using the metatrader 5 Python module.

YangletLiu commented 1 year ago

Many community members have succeeded using this one to trade in real-time: https://github.com/AI4Finance-Foundation/FinRL/blob/master/tutorials/3-Practical/FinRL_PaperTrading_Demo.ipynb

It would be possible to follow a similar workflow for the metatrader 5.