#!/bin/bash echo "๐๏ธ Resetting Hyperliquid Trading Bot Data" echo "=========================================" # Confirm with user read -p "โ ๏ธ This will delete ALL trading data, stats, and logs. Are you sure? (yes/no): " confirm if [ "$confirm" != "yes" ]; then echo "โ Reset cancelled." exit 1 fi echo "๐งน Clearing data files..." # Remove trading statistics if [ -f "trading_stats.json" ]; then rm trading_stats.json echo "โ Removed trading_stats.json" fi # Remove backup stats rm -f trading_stats.json.backup* echo "โ Removed stats backups" # Remove alarm data rm -f alarms.json alarms.db echo "โ Removed alarm data" # Remove log files rm -f *.log trading_bot.log* rm -rf logs/ echo "โ Removed log files" # Remove any temporary files rm -f *.tmp *.temp echo "โ Removed temporary files" # Remove any Python cache rm -rf __pycache__/ rm -rf src/__pycache__/ rm -rf tests/__pycache__/ echo "โ Removed Python cache" echo "" echo "๐ Data reset complete!" echo "" echo "๐ What was cleared:" echo " โข Trading statistics and P&L history" echo " โข All completed trade records" echo " โข Daily/weekly/monthly performance data" echo " โข Price alarms and notifications" echo " โข Log files and debugging data" echo " โข Enhanced position tracking data" echo "" echo "๐ Your bot is now ready for a fresh start!" echo " โข Initial balance will be reset" echo " โข All stats will start from zero" echo " โข Position tracking will reinitialize" echo "" echo "๐ก Next steps:" echo " 1. Run your bot: python src/telegram_bot.py" echo " 2. Check /balance to set initial balance" echo " 3. Start trading to build new statistics"