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.
-
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.
-
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
- Node.js
- pnpm
- A Solana wallet
-
Clone the repository:
git clone https://github.com/vasemkin/jupjup
-
Navigate to the project directory:
cd jupjup
-
Install dependencies:
pnpm install
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.
Start the bot using:
pnpm start
The bot will automatically execute trades based on the configured strategies.
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.
Contributions, issues, and feature requests are welcome. Feel free to check issues page if you want to contribute.