Automated position manager for Meteora DeFi on Solana.
- Install Node.js
// RPC and proxy settings
const RPC_CONFIG = {
USE_MULTI_RPC: 1, // 0 - single RPC, 1 - multiple RPCs
USE_MULTI_PROXY: 1, // 0 - no proxy, 1 - with proxy
POOL_SIZE: 5 // Number of concurrent connections (recommended 5-10)
};
// Jupiter swap settings
export const SLIPPAGE_BPS = 5 * 100; // slippage 5%
export const PRIORITY_FEE = 0.002 * 1000000000; // priority fee 0.002 SOL
// Insert your RPC URLs
const RPC_ENDPOINTS = [
"https://your-rpc-1.com",
"https://your-rpc-2.com"
// Add more RPCs
];
// Insert your proxies in the format: "ip:port:username:password"
const PROXY_LIST = [
"11.99.99.99:9999:user:pass",
"55.99.99.99:9999:user:pass"
// Add more proxies
];
export const WALLETS = {
"1": {
privateKey: "Your Private Key",
description: "Your Wallet Address"
},
"2": {
privateKey: "Your Private Key2",
description: "Your Wallet Address2"
},
// Add more wallets as needed
};
export const TOTAL_RANGE_INTERVAL = 68; // Range for positions (maximum value 69)
-
Operating mode settings:
USE_MULTI_RPC: 0
- Use only one RPC (first from the list)USE_MULTI_RPC: 1
- Use all RPCs in sequenceUSE_MULTI_PROXY: 0
- Do not use proxiesUSE_MULTI_PROXY: 1
- Use proxiesPOOL_SIZE
- number of concurrent connections:- 5 - for normal operation
- 10 - for intensive operation
- 3 - for light load
-
Adding RPCs:
const RPC_ENDPOINTS = [ "https://mainnet.helius-rpc.com/?api-key=your-key-1", "https://mainnet.helius-rpc.com/?api-key=your-key-2" ];
-
Adding proxies:
const PROXY_LIST = [ "ip:port:username:password", "ip:port:username:password" ];
- Format: "IP:PORT:LOGIN:PASSWORD"
- Example: "192.168.1.1:8080:user123:pass456"
- It is recommended to use private proxies
-
Configuration examples:
Only one RPC without proxy:
const RPC_CONFIG = { USE_MULTI_RPC: 0, USE_MULTI_PROXY: 0, POOL_SIZE: 3 }; const RPC_ENDPOINTS = ["https://your-rpc-url"]; const PROXY_LIST = [];
Multiple RPCs with proxies:
const RPC_CONFIG = { USE_MULTI_RPC: 1, USE_MULTI_PROXY: 1, POOL_SIZE: 5 }; const RPC_ENDPOINTS = [ "https://rpc1.com/?api-key=key1", "https://rpc2.com/?api-key=key2" ]; const PROXY_LIST = [ "11.22.33.44:8080:user1:pass1", "55.66.77.88:8080:user2:pass2" ];
Run the program from the project directory:
node main
-
Add liquidity
- In tokens (Opens a BidAsk position in tokens)
- In SOL (Opens a BidAsk position in SOL)
-
Remove liquidity
- Closing selected positions
-
Reopen position
- Closing and opening a position in a new range
-
Wallets
- Check positions (Checks all positions in the wallet)
- Check balance (Checks the balance of wallets)
- Consolidation
- Consolidate tokens (to the main wallet)
- Consolidate SOL (to the main wallet)
- Distribute SOL (Distributes SOL to all wallets)
-
Pool checker
- Searches for pools by token contract
-
Auto position checker
- Close positions and sell tokens
- Reopen positions in tokens
-
Swap
- Token exchange via Jupiter
-
Exit
- Exit the program
-
Close and sell
- Closes positions when out of range
- Consolidates tokens to the main wallet
- Sells all tokens
-
Reopen positions
- Closes positions when out of range
- Automatically opens new positions in tokens
- Continues monitoring new positions
It is better to double-check before re-closing/opening positions, as the Meteora API may be slow.
For all questions, please contact:
- Telegram: @sectordot
Telegram channel:
- Telegram: @sectormoves