TradeLock is an open-source project that creates a CS2 Steam market bot. It automates the process of placing buy orders and managing inventory based on trade-up calculations from tradeupspy.com. The bot analyzes trade-up opportunities, places strategic buy orders for items with specific float values, and optimizes inventory by identifying items for resale. This automation allows traders to capitalize on market opportunities efficiently, streamlining the CS2 item trading process.
- Place buy orders based on tradeupspy.com sharing links
- Automatically check for new items in the inventory
- List items with unfavorable float values for resale
- Simulate trades without placing actual orders (configurable)
-
Clone the repository:
git clone https://github.com/yourusername/tradelock.git cd tradelock
-
Install the required dependencies:
pip install -r requirements.txt
-
Copy
config.example.json
toconfig.json
and fill in your details:cp config.example.json config.json
Edit config.json
with your Steam credentials and preferences:
{
"api_key": "YOUR_STEAM_API_KEY",
"username": "YOUR_STEAM_USERNAME",
"password": "YOUR_STEAM_PASSWORD",
"cookies_header": "YOUR_STEAM_COOKIES",
"check_interval": 300,
"tradeup_links": [
"https://www.tradeupspy.com/calculator/share/..."
],
"cache_expiry": 3600,
"enable_orders": false
}
Set enable_orders
to true
to place actual orders, or keep it false
for simulation mode.
Run the bot with:
python main.py
The bot will start placing buy orders based on the provided trade-up links and periodically check your inventory for new items to list.
├── config.example.json
├── config.py
├── exceptions.py
├── inventory_manager.py
├── main.py
├── market_operations.py
├── models.py
├── steam_client.py
├── steam_trade_bot.py
├── tradeup_api.py
└── utils.py
Contributions are welcome! Please feel free to submit a Pull Request.
This project is for educational purposes only. Use at your own risk. The developers are not responsible for any losses incurred through the use of this bot.
This project is licensed under the MIT License - see the LICENSE file for details.