Skip to content

🌟🌟🌟🌟🌟The SOL Price Loss-Free Bot is a useful tool that helps protect against losses caused by SOL price fluctuations and make profit with sol price change.

Notifications You must be signed in to change notification settings

eriksol116/Sol-price-loss-free-bot-Public-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Sol-Price-Loss-Free-Bot

The SOL Price Loss-Free Bot is a useful tool that helps protect against losses caused by SOL price fluctuations and make profit with sol price change. The bot automatically swaps all SOL in your wallet to USDC when the SOL price drops below a set limit. Conversely, when the SOL price rises above the limit, it swaps all USDC back to SOL. This ensures that you avoid losses during volatile market conditions.

🎯 Key Features

  • πŸ›°οΈ Automatic SOL to USDC Swap: Converts all SOL to USDC if the price falls below the defined limit.

  • πŸ›°οΈ Automatic USDC to SOL Swap: Converts all USDC to SOL if the price exceeds the defined limit.

  • πŸ” Customizable Parameters: Users can configure fetch intervals, price limits, and balance thresholds.

  • πŸ“Š Loss Protection: Prevents losses due to SOL price fluctuations.

  • ⚑ JITO Support: Enables Jito fee configuration for optimized transactions.


πŸ“ž Stay Connected

Gmail: [email protected]

Telegram: @erikerik116

Discord: @erikerik116

Twitter: @erikerikerik116

πŸ§‘β€πŸ’» Environment Variables

Create a .env file and add the following configuration:

PRIVATE_KEY=

RPC_ENDPOINT=

RPC_WEBSOCKET_ENDPOINT=

QUOTE_MINT=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v

MAIN_MINT=So11111111111111111111111111111111111111112

COMMITMENT_LEVEL=confirmed

IS_JITO=true

JITO_FEE=0.00001

FETCH_SOL_PRICE_TIME=60000 # Fetch SOL price every 60 seconds

LIMIT_SOL_PRICE=180 # Threshold price for swapping SOL/USDC

MIN_SOL_BALANCE=0.01 # Minimum SOL balance to keep in wallet

πŸ§‘β€πŸ’» Setup and Usage

LIMIT_SOL_PRICE = 181.5

swap Sol to Usdc : https://solscan.io/tx/127YoP3VKVqJqRoamMMSMAf7ECisCNm2S19Fa9KZtm1Kuvp14a6jPDuXqd1Wfa8k87T5hkt6eS8m9EDUkiofDoNJ

image (10)

swap Usdc to Sol : https://solscan.io/tx/52fd1F5mF5BtJPdUmeXxGofLExeawpMpAzfSRZmt9ynBHgnfUUL3tv1DDA9cKgi4ETyNvmMf5Sxz398mkjEP6Qa9

image (9)

πŸš€ Getting Started

Follow these steps to get your Sol-Price-Loss-Free-Bot up and running!

Installation

  1. Clone the Repository:

    git clone https://github.com/eriksol116/sol-price-loss-free-bot.git
  2. Install Dependencies:

    Navigate to the project directory and run the following command:

    cd sol-price-loss-free-bot
    npm install
  3. Configure API Token:

    Replace the API token in the ENDPOINT variable:

    const ENDPOINT = 

    And set other variables in env file.

  4. Run the Bot:

    Start the bot by running:

    npm run start

πŸ§‘β€πŸ’» Notes

The bot requires a valid Solana RPC provider.

Ensure that your wallet has enough SOL for transaction fees.

JITO fee can be adjusted if needed.

About

🌟🌟🌟🌟🌟The SOL Price Loss-Free Bot is a useful tool that helps protect against losses caused by SOL price fluctuations and make profit with sol price change.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published