Ranger Finance
Ranger Finance is a DeFi protocol built on Solana that aggregates liquidity across multiple DEXs using a Smart Order Router, minimizing slippage and ensuring the best trade execution. It serves as a unified trading hub supporting both spot and perpetual trading, with a Ranger Points reward system and an upcoming $RNGR token launch.
Requirements
Install Python version 3.12
Use git for updates — no need to manually download the archive each time.
Install SQlite (to view statistics)
Proxy (optional)
Functionality
Withdraw SOL from okx
Swap SOL with stables
Swap USDC/USDT
Withdraw additional SOL to wallets
Swap all SOL to UDST/USDC
Update wallet statistics from app.ranger.finance
Installation
Clone the repository:
Install dependencies:
Activate virtual environment
For Windows
For Linux/Mac
Run script
Configuration
After running the script, a folder named files will be created. Inside this folder, you will find text files that must be filled line by line (one value per line).
private_keys.txt: Private keys Solanaproxy.txt: One proxy per line (format:http://user:pass@ip:port)
Main configurations
Usage
For your security, you can enable private key encryption by setting private_key_encryption: true in the settings.yaml. If set to false, encryption will be skipped.
On first use, you need to fill in the private_keys.txt file once. After launching the program, go to DB Actions → Import wallets to Database.

If encryption is enabled, you will be prompted to enter and confirm a password. Once completed, your private keys will be deleted from the private_keys.txt file and securely moved to a local database, which is created in the files folder.

If you want to update proxy/twitter/discord/email you need to make synchronize with DB. After you made changes in these files, please choose this option.

Once the database is created, you can start the project by selecting Ranger Finance → Start SPOT Activity (swaps).

Start SPOT Activity (swaps)- If your wallet has no assets on first run, the script will withdraw SOL from OKX and swap SOL to stablecoins, leaving a small amount of SOL (sol_balance_for_commissions) reserved for transaction fees. Then it will perform swaps between USDT and USDC. If your wallet already has stablecoins and SOL, the script will only perform swaps using the existing stablecoins.Withdraw additional SOL to wallets- The script withdraws SOL from OKX to your wallet.Swap all SOL to UDST/USDC- The script swaps all available SOL in your wallet to stablecoins, leaving only the amount needed for fees (sol_balance_for_commissions).Update wallet statistics from app.ranger.finance- The script retrieves and updates your wallet statistics from the Ranger Finance leaderboard in your database.
Last updated
