{"id":20103496,"url":"https://github.com/pythonlessons/finrock","last_synced_at":"2025-05-06T08:31:17.166Z","repository":{"id":203053748,"uuid":"708694811","full_name":"pythonlessons/FinRock","owner":"pythonlessons","description":"Reinforcement Learning package for Finance","archived":false,"fork":false,"pushed_at":"2024-04-08T12:14:30.000Z","size":596,"stargazers_count":117,"open_issues_count":5,"forks_count":29,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-04-09T10:33:46.750Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pythonlessons.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-23T07:44:54.000Z","updated_at":"2025-04-04T16:06:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"13549c56-9e2c-458b-a3f4-17ef0a211e21","html_url":"https://github.com/pythonlessons/FinRock","commit_stats":null,"previous_names":["pythonlessons/finrock"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonlessons%2FFinRock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonlessons%2FFinRock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonlessons%2FFinRock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonlessons%2FFinRock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythonlessons","download_url":"https://codeload.github.com/pythonlessons/FinRock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252648582,"owners_count":21782409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T17:36:13.296Z","updated_at":"2025-05-06T08:31:16.700Z","avatar_url":"https://github.com/pythonlessons.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FinRock\nReinforcement Learning package for Finance\n\n# Environment Structure:\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Tutorials\\Documents\\04_FinRock.jpg\"\u003e\n\u003c/p\u003e\n\n### Install requirements:\n```\npip install -r requirements.txt\npip install pygame\npip install .\n```\n\n### Create sinusoid data:\n```\npython bin/create_sinusoid_data.py\n```\n\n### Train RL (PPO) agent on discrete actions:\n```\nexperiments/training_ppo_sinusoid.py\n```\n\n### Test trained agent (Change path to the saved model):\n```\nexperiments/testing_ppo_sinusoid.py\n```\n\n### Environment Render:\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Tutorials\\Documents\\04_FinRock_render.png\"\u003e\n\u003c/p\u003e\n\n## Links to YouTube videos:\n- [Introduction to FinRock package](https://youtu.be/xU_YJB7vilA)\n- [Complete Trading Simulation Backbone](https://youtu.be/1z5geob8Yho)\n- [Training RL agent on Sinusoid data](https://youtu.be/JkA4BuYvWyE)\n- [Included metrics and indicators into environment](https://youtu.be/bGpBEnKzIdo)\n\n# TODO:\n- [ ] Train model on `continuous` actions (control allocation percentage)\n- [ ] Add more indicators\n- [ ] Add more metrics\n- [ ] Add more reward functions\n- [ ] Add more scalers\n- [ ] Train RL agent on real data\n- [ ] Add more RL algorithms\n- [ ] Refactor rendering, maybe move to browser?","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonlessons%2Ffinrock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythonlessons%2Ffinrock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonlessons%2Ffinrock/lists"}