First, clone the repository from GitHub to your local computer.
-
Open a terminal (Command Prompt or PowerShell on Windows).
-
Run the command:
git clone https://github.com/gradinazz/CSFloat-Auto-Trade.git -
Go to the project directory:
cd CSFloat-Auto-Trade
Install the required packages listed in requirements.txt.
-
Make sure you are in the project directory and the Python virtual environment is activated.
-
Run the command:
pip install -r requirements.txt
Before running the script, you need to configure the configuration file steam.json.
-
Edit the
steam.jsonfile in the root of the project. -
Add the following parameters to it:
csfloat_api_key: Your CSFloat API key.steam_api_key: Your Steam API key.steam_id64: Your Steam ID64(example:76561198034388123).steam_login: Your Steam username.steam_password: Your Steam password.shared_secretandidentity_secret: Secrets needed to confirm trade offers. Can be obtained from maFile.client_proxy: Optional: Set the proxy(example:http://127.0.0.1:7890).user_agent: Optional: Set the user agent. The default value is "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0".steam_use_proxy: Optional: Apply proxy for steam cilent if setted to "true".check_interval_seconds: Optional: Set the interval in seconds bewteen checks.check_interval_seconds_random: Optional: Enable randomizing the interval bewteen checks if setted to "true".check_interval_seconds_random_min: Optional: Set the minimum randomized interval in seconds bewteen checks.check_interval_seconds_random_max: Optional: Set the maximum randomized interval in seconds bewteen checks.
Important: Never share these keys and secrets. Keep them in a safe place.
Now you are ready to run the script.
-
Run the command:
python CSFloat-Auto-Trade.py -
The script will start executing and will check for new trade offers every 10 minutes (by default).