Skip to content

SolCycle is an automated trading system for Solana (SOL) that helps users optimize their trading strategy through intelligent market cycle management.

Notifications You must be signed in to change notification settings

pratik-codes/sol-cycle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SolCycle

Table of Contents

  1. Overview
  2. Key Features
  3. Technology Stack
  4. Setup and Installation
  5. Usage
  6. Configuration Options
  7. How It Works
  8. Current Challenges
  9. Contributing
  10. License
  11. Disclaimer

Overview

SolCycle is an automated trading system for Solana (SOL) that helps users optimize their trading strategy through intelligent market cycle management. The system automatically converts between SOL and stablecoins based on market conditions, implementing dynamic stop-loss mechanisms to preserve capital during downturns and capitalize on upswings.

Key Features

Dynamic Stop Loss Adjustment

SolCycle features an intelligent dynamic stop loss that automatically adjusts based on market conditions:

  • Continuously tracks the current price of SOL
  • When current price exceeds stopLoss + stopLossAdjustment, the system updates
  • The stopLoss becomes currentPrice - stopLossAdjustment
  • This ensures your stop loss is always dynamically trailing the highest price, maximizing profits

How SolCycle Saves You Money

  • Preserves capital during market downturns by converting to stablecoins
  • Automates buy-back at better prices, improving your overall cost basis
  • Eliminates emotional trading decisions, preventing costly panic sells or FOMO buys
  • Runs 24/7, capturing opportunities while you sleep or focus on other activities

Technology Stack

  • Language: Go
  • Blockchain: Solana
  • DEX Integration: Jupiter (for optimal swap routing and execution)
  • RPC Provider: Helius

Setup and Installation

Prerequisites

  • Go 1.18 or higher
  • Solana CLI tools (optional but recommended)
  • A Solana wallet with SOL and some USDC/USDT for transactions

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/sol-cycle.git
  2. Navigate to the project directory:
    cd sol-cycle
  3. Install the dependencies:
    go mod download

Configuration

  1. Create a .env file in the root directory with the following variables:

    # Solana Configuration
    PRIVATE_KEY=your_private_key_here
    RPC_ENDPOINT=your_rpc_endpoint_here
    

    Note: Never commit your .env file to version control. It's already added to .gitignore.

  2. Customize your trading parameters in the configuration file (details in the Configuration section).

Usage

  1. Run the main script:

    go run main.go
  2. Monitor the logs to see the trading activity and performance.

Configuration Options

SolCycle offers several configuration options to customize your trading strategy:

  • stopLossPercentage: Initial stop loss percentage from entry price
  • stopLossAdjustment: Amount to trail the highest price by
  • tradingPair: The trading pair to monitor (default: SOL/USDC)
  • swapAmount: Amount of SOL to swap on each trigger
  • checkInterval: How often to check prices (in seconds)

How It Works

  1. SolCycle continuously monitors the price of SOL using the Helius RPC endpoint
  2. When the price drops below your dynamic stop loss, it automatically swaps SOL to stablecoins using Jupiter for optimal routing
  3. When market conditions improve, it can automatically buy back SOL at better prices
  4. The dynamic stop loss continuously adjusts to protect your gains while allowing for upside potential

Current Challenges

While SolCycle's core functionality works effectively, we're actively addressing the following challenges:

Transaction Cost Optimization

The primary challenge we're currently facing is optimizing transaction costs:

  • Gas Fees: Each swap operation incurs gas fees on the Solana network
  • DEX Fees: Jupiter routing includes fees for liquidity providers
  • Long-term Economics: For extended operation, these fees can accumulate and impact overall profitability

We're actively working on solutions to reduce these costs:

  • Implementing batched transactions where possible
  • Optimizing transaction timing to target lower network congestion periods
  • Exploring fee-efficient routing strategies
  • Investigating minimum viable swap amounts to balance transaction costs against potential gains

These optimizations are critical for making SolCycle more economical for long-term operation, especially for users with smaller portfolios or during periods of high network activity.

Contributing

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-branch)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin feature-branch)
  5. Open a Pull Request

License

This project is licensed under the MIT License.

Disclaimer

Trading cryptocurrencies involves risk. This software is provided as-is with no guarantees. Always do your own research and use at your own risk.

About

SolCycle is an automated trading system for Solana (SOL) that helps users optimize their trading strategy through intelligent market cycle management.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages