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:
volumemode - if buy and sell speed differ:
market-makermode
- if buy and sell speed are equal:
- multi-wallet generation and loading
- fund gathering into one destination wallet
- optional token creation call on startup (adapter support required)
Use this software only in compliance with applicable exchange rules and law.
Do not use it for wash trading, fake volume, or market manipulation.
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.tssrc/adapters/damm-v1.adapter.tssrc/adapters/damm-v2.adapter.tssrc/adapters/dlmm.adapter.ts
Add Meteora SDK/API transaction builders in those files for live trading.
- Install dependencies:
npm install- Create env file:
copy .env.example .env-
Edit
.envvalues (RPC, mints, protocols, wallet count, intervals, amounts). -
Generate wallets:
npm run wallet:generate- Run bot:
npm run runnpm run run- start trading enginenpm run wallet:generate- generate wallets inWALLETS_DIRnpm run funds:gather- gather funds from managed wallets to destinationnpm run build- TypeScript compile check
See .env.example.
Most important vars:
BUY_AMOUNT_SOL,SELL_AMOUNT_SOLBUY_INTERVAL_MS,SELL_INTERVAL_MSPROTOCOLS(DBC,DAMM_V1,DAMM_V2,DLMM)WALLET_COUNT,WALLETS_DIR,WALLET_FILE_PREFIXGATHER_DESTINATION,GATHER_RESERVE_SOLCREATE_TOKEN_ON_STARTUP,NEW_TOKEN_*
BUY_INTERVAL_MS === SELL_INTERVAL_MS-> bot reportsvolumemodeBUY_INTERVAL_MS !== SELL_INTERVAL_MS-> bot reportsmarket-makermode
- Wallet files are private key material. Keep
wallets/secure. - Never commit
.envor wallet files. - Start with
DRY_RUN=truebefore using live execution.