Skip to content

GuillermoEguilaz/Meteora-Volume-Market-Maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meteora Market-Making Bot (Solana)

This repository contains a TypeScript framework for building a Solana trading bot around Meteora protocols:

  • Meteora DBC
  • Meteora DAMM v1
  • Meteora DAMM v2
  • Meteora DLMM

It includes:

  • configurable automated buy/sell loops
  • configurable buy/sell amount and speed (BUY_*, SELL_*)
  • mode behavior:
    • if buy and sell speed are equal: volume mode
    • if buy and sell speed differ: market-maker mode
  • multi-wallet generation and loading
  • fund gathering into one destination wallet
  • optional token creation call on startup (adapter support required)

Important

Use this software only in compliance with applicable exchange rules and law.
Do not use it for wash trading, fake volume, or market manipulation.

Current implementation status

The project provides a production-style architecture and working dry-run flow.

  • Dry-run behavior is fully wired.
  • Live protocol execution points are intentionally marked as integration points:
    • src/adapters/dbc.adapter.ts
    • src/adapters/damm-v1.adapter.ts
    • src/adapters/damm-v2.adapter.ts
    • src/adapters/dlmm.adapter.ts

Add Meteora SDK/API transaction builders in those files for live trading.

Quick Start

  1. Install dependencies:
npm install
  1. Create env file:
copy .env.example .env
  1. Edit .env values (RPC, mints, protocols, wallet count, intervals, amounts).

  2. Generate wallets:

npm run wallet:generate
  1. Run bot:
npm run run

Commands

  • npm run run - start trading engine
  • npm run wallet:generate - generate wallets in WALLETS_DIR
  • npm run funds:gather - gather funds from managed wallets to destination
  • npm run build - TypeScript compile check

Config reference

See .env.example.

Most important vars:

  • BUY_AMOUNT_SOL, SELL_AMOUNT_SOL
  • BUY_INTERVAL_MS, SELL_INTERVAL_MS
  • PROTOCOLS (DBC,DAMM_V1,DAMM_V2,DLMM)
  • WALLET_COUNT, WALLETS_DIR, WALLET_FILE_PREFIX
  • GATHER_DESTINATION, GATHER_RESERVE_SOL
  • CREATE_TOKEN_ON_STARTUP, NEW_TOKEN_*

How mode works

  • BUY_INTERVAL_MS === SELL_INTERVAL_MS -> bot reports volume mode
  • BUY_INTERVAL_MS !== SELL_INTERVAL_MS -> bot reports market-maker mode

Security notes

  • Wallet files are private key material. Keep wallets/ secure.
  • Never commit .env or wallet files.
  • Start with DRY_RUN=true before using live execution.

Releases

No releases published

Packages

 
 
 

Contributors