A script that trades stock through rocket league performance
Check out this youtube video about it first: https://www.youtube.com/watch?v=K8kG6AiSMGs
The rl_reader.py pings your ballchasing account every 30s (change via line 80),
when it finds a new game played, it takes the average team score (team branch, personal score for main)
and normalizses it to pick 1 out of 1500 possible stock options on the NYSE/NASDAQ that are under $10
Your team(or personal) performance also determines the quantity to buy with better meaning more.
The script then purchases those stocks via the linked alpaca account.
Currently, there is a selling algorithm in sell_strat_basic_.py however it is untested and not a requirement/priority
I recommend using the TEAM Branch as main is out of date and only accounts for individual performance
- First clone the repo and install the following libraries
- alpaca_trade_api
- requests
- pandas
- Create an
api_keys.txton the base layer- Line 1 should be your 20 character alpaca API key
- Line 2 should be your secret alpaca API key
- Line 3 should be your ballchasing.com api key
- https://ballchasing.com/upload (the upload token)
- In
rl_reader.pychange theRL_Usernamevariable to a string of your epic/steam rl username - NOTE: The following steps will begin buying stocks, I reccomend linking to a paper account first, to let the software add all old replays to completed replays without spending real money.
- Make sure you either manually upload replays to ballchasing or automatically upload them via bakkesmod
- Run
rl_reader.pyit will create acompleted_replays.txtif it does not exist - When done playing, terminate the program.
This software is free and able to be used by anyone however should you wish to make content with it or share any part of it, I require you to credit me in at least one of the following ways:
- Reddit: u/TheLegoDude007
- Discord: thoride
- discord.gg/marbles
- Github: Thoride-Dev
I am not a qualified financial advisor and nothing in this project is to be used as financial advice. I am not liable for any gains/losses you make from any of the code/project. It is for entertainment purposes only.