This is a very rudimentary implementation of a trading algorithm for RIT and uses the RIT Client API documented at https://rit.306w.ca/RIT-REST-API-DEV/1.0.3/.
-
Start Visual Studio Code.
a. Click Clone Git Repository....
b. Use this repository as the URL.
https://github.com/306W/rit-market-maker-python
c. Choose a folder in your user directory as the repository destination (Desktop is fine).
d. Trust the authors of the files in this folder by clicking Yes, I trust the authors.
e. Open a terminal via Terminal > New Terminal.
f. Setup and install the Python environment and dependencies.
uv init uv venv .venv\Scripts\activate uv add -r .\requirements.txt -
Open RIT 2.0 Client and login with your credentials.
-
Update the
settings.pyfile with the Port / API Key found in the API Info window in the RIT client. If the API is showing an error, it means that somebody else is using that port (the VM instances are multi-tenant) so change it to a different random port and ensure the settings file matches.
settings.py:settings = { 'loop_interval': 1, 'api_host': 'http://localhost:10040', 'api_key': '1VNX6TVW' } -
Run the bot by opening the terminal and running
main.py.
python main.py
