Skip to content

A high-performance, automated trading bot for Solana tokens using the Solana Tracker API. Supports Raydium (V4/CPMM), Pumpfun, Moonshot, Orca and Jupiter. Includes two examples, one using HTTP requests and one using the more efficient and faster Data Streams (Websockets) from Solana Tracker.

Notifications You must be signed in to change notification settings

axioris/SolanaTradingBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solana Trade Bot

An advanced, automated trading bot designed for Solana tokens, leveraging the Solana Tracker API.

This bot supports various platforms, including Raydium (V4/CPMM), Pumpfun, Moonshot, Orca, and Jupiter, offering versatile trading opportunities.

It comes with two examples: one demonstrating HTTP request usage and another showcasing the speed and efficiency of Solana Tracker's Data Streams via Websockets.

Features

  • Enables automated trading of Solana tokens.
  • Supports multiple tokens seamlessly.
  • Offers customizable trading parameters, including liquidity, market cap, and risk score.
  • Provides real-time monitoring and management of trading positions.
  • Executes buy and sell operations concurrently for enhanced efficiency.
  • Features detailed, timestamped logs with color-coded action highlights.
  • Ensures persistent storage for tracking positions and transaction history.

Prerequisites

  • Node.js (v14 or later recommended)
  • npm (comes with Node.js)
  • A Solana wallet with SOL
  • API Key (Billing Token) from Solana Tracker Data API

Installation

  1. Clone the repository:
git clone https://github.com/axioris/SolanaTradingBot.git
cd SolanaTradingBot
  1. Install dependencies:
npm install
  1. Rename the .env.example and configure the bot.

Usage

Run the bot with:

node index.js 

Or

node websocket.js

Configuration

To tailor the bot's functionality, update the .env file with the following settings:

  • AMOUNT: Specify the SOL amount to swap per transaction.
  • DELAY: Define the delay between buying cycles (in milliseconds).
  • MONITOR_INTERVAL: Set the frequency for position monitoring (in milliseconds).
  • SLIPPAGE: Determine the maximum acceptable slippage percentage.
  • PRIORITY_FEE: Adjust the priority fee for transactions.
  • JITO: Toggle "true" to enable Jito for transaction optimization.
  • RPC_URL: Provide your Solana RPC endpoint URL.
  • API_KEY: Input your Solana Tracker Data API Key.
  • PRIVATE_KEY: Enter your wallet's private key securely.
  • MIN_LIQUIDITY / MAX_LIQUIDITY: Define the liquidity range for token selection.
  • MIN_MARKET_CAP / MAX_MARKET_CAP: Specify the market cap range for eligible tokens.
  • MIN_RISK_SCORE / MAX_RISK_SCORE: Set the acceptable risk score range for tokens.
  • REQUIRE_SOCIAL_DATA: Use "true" to limit trading to tokens with social data availability.
  • MAX_NEGATIVE_PNL / MAX_POSITIVE_PNL: Establish PnL thresholds for triggering sales.
  • MARKETS: List the targeted markets as a comma-separated value (e.g., Raydium, Orca, Jupiter).

API Usage and Fees

This bot uses the Solana Tracker API. Please refer to Solana Tracker's documentation for information about API usage and associated fees.

Disclaimer

This bot is intended strictly for educational purposes. Use it at your own risk, and ensure you fully understand the code you are running as well as the financial implications of engaging in automated trading.

The primary objective of this project is to demonstrate the potential applications of the Solana Tracker API in creating automated trading solutions.

License

MIT License

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

Support

If you find this project helpful, please consider giving it a ⭐️ on GitHub! If you have any further questions or need assistance, feel free to reach out to me anytime!

Email LinkedIn X Telegram Discord

About

A high-performance, automated trading bot for Solana tokens using the Solana Tracker API. Supports Raydium (V4/CPMM), Pumpfun, Moonshot, Orca and Jupiter. Includes two examples, one using HTTP requests and one using the more efficient and faster Data Streams (Websockets) from Solana Tracker.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published