Giter Site home page Giter Site logo

warscape / finrl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ai4finance-foundation/finrl

0.0 1.0 0.0 50.19 MB

Deep Reinforcement Learning Framework to Automate Trading in Quantitative Finance. NeurIPS 2020 & ICAIF 2021. 🔥

License: MIT License

Python 2.67% Jupyter Notebook 97.32% Dockerfile 0.01% Shell 0.01%

finrl's Introduction

FinRL: Deep Reinforcement Learning for Quantitative Finance twitter facebook google+ linkedin

Downloads Downloads Python 3.6 PyPI

Disclaimer: Nothing herein is financial advice, and NOT a recommendation to trade real money. Please use common sense and always first consult a professional before trading or investing.

AI4Finance's Mission: efficiently automate trading. We continuously share tools/codes for finance.

AI4Finance' Vision: The AI community has accumulated an open source ocean of powerful codes over the past decade. We believe the proper usage of such intellectual and engineering properties will initiate a paradigm shift from the conventional trading routine, to a machine learning approach, even RLOps in finance.

FinRL is the first open-source framework to demonstrate the great potential of applying deep reinforcement learning in quantitative finance. We help practitioners establish the development pipeline of trading strategies using deep reinforcement learning (DRL). A DRL agent learns by continuously interacting with an environment in a trial-and-error manner, making sequential decisions under uncertainty, and achieving a balance between exploration and exploitation.

News: we plan to release codes for both paper trading and live trading. Please let us know your coding needs.

Join or discuss FinRL: AI4Finance mailing list, AI4Finance Slack channel:

Follow us on WeChat:

Ecosystem of FinRL:

FinRL 1.0: entry-level for beginners, with a demonstrative and educational purpose.

FinRL 2.0: intermediate-level for full-stack developers and professionals, ElegantRL.

FinRL 3.0: advanced-level for investment banks and hedge funds, a cloud-native solution FinRL-podracer.

FinRL 0.0: hundreds of training/testing/trading environments in NeoFinRL.

FinRL provides a unified DRL framework for various markets, SOTA DRL algorithms, finance tasks (portfolio allocation, cryptocurrency trading, high-frequency trading), live trading support, etc.

Outline

Tutorials

News

Overview

A video about FinRL library. The AI4Finance Youtube Channel for quantative finance.

DRL Algorithms

ElegantRL implements Deep Q Learning (DQN), Double DQN, DDPG, A2C, SAC, PPO, TD3, GAE, MADDPG, etc. using PyTorch.

Status Update

Version History [click to expand]
  • 2021-08-25 0.3.1: pytorch version with a three-layer architecture, apps (financial tasks), drl_agents (drl algorithms), neo_finrl (gym env)
  • 2020-12-14 Upgraded to Pytorch with stable-baselines3; Remove tensorflow 1.0 at this moment, under development to support tensorflow 2.0
  • 2020-11-27 0.1: Beta version with tensorflow 1.5

Installation

Contributions

  • FinRL is the first open source framework that demonstrate the great potential of applying DRL algorithms in quantitative finance. We build an ecosystem around the FinRL framework, which seeds the rapidly growing AI4Finance community.
  • The application layer provides interfaces for users to customize FinRL to their own trading tasks. Automated backtesting module and performance metrics are provided to help quantitative traders iterate trading strategies at a high turnover rate. Profitable trading strategies are reproducible and hands-on-tutorials are provided in a beginner-friendly fashion. Adjusting the trained models to the rapid changing markets is also possible.
  • The agent layer provides state-of-the-art DRL algorithms that are adapted to finance with fine-tuned hyperparameters. Users can add new DRL algorithms.
  • The environment layer includes not only a collection of historical data APIs, but also live trading APIs. They are reconfigured into standard OpenAI gym-style environments. Moreover, it incorporates market frictions and allows users to customize the trading time granularity.

Publications

We published papers in FinTech at Google Scholar and now arrive at this project:

  • FinRL-Podracer: High performance and scalable deep reinforcement learning for quantitative finance. ACM International Conference on AI in Finance, ICAIF 2021.
  • Explainable deep reinforcement learning for portfolio management: An empirical approach, ACM International Conference on AI in Finance, ICAIF 2021.
  • FinRL: Deep reinforcement learning framework to automate trading in quantitative finance, ACM International Conference on AI in Finance, ICAIF 2021.
  • FinRL: A deep reinforcement learning library for automated stock trading in quantitative finance, Deep RL Workshop, NeurIPS 2020.
  • Deep reinforcement learning for automated stock trading: An ensemble strategy, paper and codes, ACM International Conference on AI in Finance, ICAIF 2020.
  • Multi-agent reinforcement learning for liquidation strategy analysis, paper and codes. Workshop on Applications and Infrastructure for Multi-Agent Learning, ICML 2019.
  • Practical deep reinforcement learning approach for stock rrading, paper and codes, Workshop on Challenges and Opportunities for AI in Financial Services, NeurIPS 2018.

Citing FinRL

@article{finrl2020,
    author  = {Liu, Xiao-Yang and Yang, Hongyang and Chen, Qian and Zhang, Runjia and Yang, Liuqing and Xiao, Bowen and Wang, Christina Dan},
    title   = {{FinRL}: A deep reinforcement learning library for automated stock trading in quantitative finance},
    journal = {Deep RL Workshop, NeurIPS 2020},
    year    = {2020}
}
@article{liu2021finrl,
    author  = {Liu, Xiao-Yang and Yang, Hongyang and Gao, Jiechao and Wang, Christina Dan},
    title   = {{FinRL}: Deep reinforcement learning framework to automate trading in quantitative finance},
    journal = {ACM International Conference on AI in Finance (ICAIF)},
    year    = {2021}
}

To Contribute

AI4Finance Foundation community will maintain FinRL and welcome you to join us!

Please check Contributing Guidances.

Contributors

Thanks to our contributors!

LICENSE

MIT License

Disclaimer: Nothing herein is financial advice, and NOT a recommendation to trade real money. Please use common sense and always first consult a professional before trading or investing.

finrl's People

Contributors

bruceyanghy avatar yangletliu avatar rayrui312 avatar louisowen6 avatar xiao000l avatar spencerr1992 avatar youbadawy avatar athe-kunal avatar everssun avatar 16gmcn avatar zhumingpassional avatar yonv1943 avatar csbobby avatar carlogrisetti avatar tekprexyz avatar mariko-sawada avatar wac81 avatar fredericcheminel avatar zyzhang1130 avatar hyqus avatar szho42 avatar m-colley avatar jackwboynton avatar creedgao avatar bonobo791 avatar alanlihy avatar roher1727 avatar chuckmng avatar xaviruvpadhiyar98 avatar mahesha999 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.