Skip to content

twinemma/citadel-QI

Repository files navigation

Sample Trading Algorithm For RIT

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/.

Setup

  1. Start Visual Studio Code.

    a. Click Clone Git Repository....

    image

    b. Use this repository as the URL.

    https://github.com/306W/rit-market-maker-python
    
    image

    c. Choose a folder in your user directory as the repository destination (Desktop is fine).

    image

    d. Trust the authors of the files in this folder by clicking Yes, I trust the authors.

    image

    e. Open a terminal via Terminal > New Terminal.

    image

    f. Setup and install the Python environment and dependencies.

    uv init
    uv venv
    .venv\Scripts\activate
    uv add -r .\requirements.txt
    
  2. Open RIT 2.0 Client and login with your credentials.

  3. Update the settings.py file 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.

    image

    image

    settings.py:

    settings = {
      'loop_interval': 1,
      'api_host': 'http://localhost:10040',
      'api_key': '1VNX6TVW'
    }
    
  4. Run the bot by opening the terminal and running main.py.

    image
    python main.py
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •