Skip to content

Latest commit

 

History

History
66 lines (41 loc) · 1.97 KB

README.md

File metadata and controls

66 lines (41 loc) · 1.97 KB

JupJup

Description

This trading bot is designed to operate on the Solana blockchain, utilizing two distinct strategies: Ping-Pong and DDCA (Dumb Dollar Cost Averaging). It's built to automate trades based on these strategies, aiming to capitalize on market movements and trends.

Strategies

  1. DDCA (Dumb Dollar Cost Averaging): In this unique strategy, the bot regularly buys and sells a set amount of tokens (in USD equivalent) regardless of the price, aiming to catch significant market spikes or dips.

  2. Ping-Pong: This strategy involves setting predefined buy and sell prices. The bot buys an asset when its price drops to a certain level and sells when the price rises to a predetermined higher level. Currently not implemented.

Here is an example of a transaction the DDCA bot tries to execute: https://solscan.io/tx/3vLorW1jbgoTfpR37i19PjUNVdjAmRGgXYVsbCwipZALKG79w4EjitoTo5CogsYdxgLU8NePGtor6G9AuWYThn6C

Requirements

  • Node.js
  • pnpm
  • A Solana wallet

Installation

  1. Clone the repository:

    git clone https://github.com/vasemkin/jupjup
  2. Navigate to the project directory:

    cd jupjup
  3. Install dependencies:

    pnpm install

Configuration

Create a .env file in the project root and configure the following parameters:

  • NX_SOLANA_PK: Your wallet private key.
  • NX_SOLANA_RPC_ENDPOINT: Solana RPC endpoint URL.
  • NX_TRADING_MODE: Trading strategy: currently only DDCA.
  • NX_USD_BUDGET: Trading budget in USD.

Usage

Start the bot using:

pnpm start

The bot will automatically execute trades based on the configured strategies.

Disclaimer

Trading cryptocurrencies carries a high level of risk, and may not be suitable for all investors. The strategies implemented in this bot are experimental. Please use at your own risk.

Contributing

Contributions, issues, and feature requests are welcome. Feel free to check issues page if you want to contribute.