A TypeScript application for tracking Meteora DLMM positions, built using the official DLMM SDK. This fork includes an enhanced position checker with advanced features.
- 📊 Real-time position monitoring with automatic updates
- 💰 PnL tracking with initial deposit information
- 📈 RSI calculations for tokens
- 💵 Detailed fee tracking (claimed and unclaimed)
- 📍 Visual range indicators for position status
- ⚡ Dynamic fee information
- 🔄 Configurable update intervals
- 🎯 Improved error handling and retries
-
Clone the repository:
git clone https://github.com/fciaf420/DLMM.git cd DLMM -
Switch to the enhanced position checker branch:
git checkout feature/enhanced-position-checker
-
Install dependencies:
npm install
-
Copy the example environment file:
cp .env.example .env
-
Configure your environment variables in
.env:# Required SOLANA_RPC_ENDPOINT=https://your-rpc-endpoint.com WALLET_PUBLIC_KEY=your_wallet_public_key_here # Optional UPDATE_INTERVAL=60000 # Update frequency in ms (default: 60000) ERROR_RETRY_DELAY=5000 # Retry delay in ms (default: 5000) RANGE_BAR_WIDTH=20 # Visual range width (default: 20) -
Run the enhanced position checker:
npx ts-node examples/check-position.ts
The enhanced position checker provides detailed information for each position:
- Position ID and pool address
- Token pair information with current prices
- Position range status with visual indicator
- Current bin location and range
- Liquidity value in USD
- Claimed and unclaimed fees
- PnL calculations
- Initial deposit information
- RSI indicators
- Dynamic fee rates
All configuration options can be set via environment variables:
| Variable | Required | Default | Description |
|---|---|---|---|
| SOLANA_RPC_ENDPOINT | Yes | - | Your Solana RPC endpoint |
| WALLET_PUBLIC_KEY | Yes | - | Your wallet's public key |
| UPDATE_INTERVAL | No | 60000 | Update frequency in milliseconds |
| ERROR_RETRY_DELAY | No | 5000 | Error retry delay in milliseconds |
| RANGE_BAR_WIDTH | No | 20 | Width of position range visualization |
- @meteora-ag/dlmm
- @solana/web3.js
- @coral-xyz/anchor
- dotenv
- bn.js
This is a fork of the official DLMM SDK. For the original version, visit Meteora DLMM SDK.
Private repository - All rights reserved