hello i need your assistance i need to setup a webhook for helius and i need to…
- User
hello i need your assistance i need to setup a webhook for helius and i need to integrade it into this script here use anyhow::{anyhow, Result}; use bs58; use config::Config; use futures_util::{SinkExt, StreamExt}; use reqwest::Client; use serde::{Deserialize, Serialize}; use serde_json::json; use solana_client::rpc_client::RpcClient; use solana_sdk::signer::keypair::Keypair; use solana_sdk::signer::Signer; use solana_sdk::transaction::Transaction; use solana_sdk::hash::Hash; use std::collections::HashMap; use std::fs::{File, OpenOptions}; use std::io::Write; use std::sync::Arc; use std::sync::atomic::{AtomicBool, Ordering}; use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH}; use tokio::sync::Mutex; use tokio::time::interval; use tokio_tungstenite::{connect_async, tungstenite::protocol::Message as WsMessage}; use tracing::{debug, error, info, warn}; use tracing_subscriber::{self, fmt::format::FmtSpan, EnvFilter}; use tracing_appender; use ctrlc;
const CONFIG_PATH: &str = "C:\solana_rust_bot\config.toml"; const WSOL_MINT: &str = "So11111111111111111111111111111111111111112"; const RAYDIUM_AMM_PROGRAM_ID: &str = "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"; const MAX_BUY_ATTEMPTS: u32 = 3; const BUY_ATTEMPT_DELAY: Duration = Duration::from_millis(200); const STATE_FILE: &str = "bot_state.json"; const MIN_LIQUIDITY: f64 = 10000000000.0; const MAX_LIQUIDITY: f64 = 45000000000.0; const MAX_ACTIVE_TRADES: usize = 5;
#[derive(Clone, Serialize, Deserialize)] struct Trade { token_address: String, amount: u64, buy_price: f64, take_profit_price: f64, stop_loss_price: f64, timestamp: u64, }
#[derive(Serialize, Deserialize)] struct BotState { active_trades: HashMap<String, Trade>, last_save_time: SystemTime, }
struct PriceCache { prices: HashMap<String, (f64, Instant)>, ttl: Duration, }
impl PriceCache { fn new(ttl: u64) -> Self { Self { prices: HashMap::new(), ttl: Duration::from_secs(ttl), } }
fn get(&self, token_address: &str) -> Option<f64> { self.prices.get(token_address).and_then(|(price, timestamp)| { if timestamp.elapsed() < self.ttl { Some(*price) } else { None } }) } fn set(&mut self, token_address: String, price: f64) { self.prices.insert(token_address.clone(), (price, Instant::now())); debug!("Price for {} set to {}.", token_address, price); }}
struct Bot { config: Config, rpc_client: RpcClient, keypair: Keypair, price_cache: Arc<Mutex>, active_trades: Arc<Mutex<HashMap<String, Trade>>>, last_blockhash: Arc<Mutex<(Hash, Instant)>>, metadata_limiter: Arc<Mutex<()>>, swap_limiter: Arc<Mutex<()>>, http_client: Client, is_tracking_prices: Arc, shutdown_signal: Arc, }
impl Bot { async fn new() -> Result { let config = Config::builder() .add_source(config::File::with_name(CONFIG_PATH)) .build()?;
info!("Loading configuration from {}", CONFIG_PATH); let rpc_url = config.get_string("rpc_url")?; let rpc_client = RpcClient::new(rpc_url.clone()); info!("Connected to RPC URL: {}", rpc_url); let keypair = Self::load_keypair(&config)?; info!("Loaded keypair: {:?}", keypair.pubkey()); let mut bot = Self { config, rpc_client, keypair, price_cache: Arc::new(Mutex::new(PriceCache::new(60))), active_trades: Arc::new(Mutex::new(HashMap::new())), last_blockhash: Arc::new(Mutex::new((Hash::default(), Instant::now()))), metadata_limiter: Arc::new(Mutex::new(())), swap_limiter: Arc::new(Mutex::new(())), http_client: Client::new(), is_tracking_prices: Arc::new(AtomicBool::new(false)), shutdown_signal: Arc::new(AtomicBool::new(false)), }; bot.load_state().await?; info!("Bot initialized successfully."); Ok(bot) } fn load_keypair(config: &Config) -> Result<Keypair> { if let Ok(keypair_58) = config.get_string("keypair_58") { let bytes = bs58::decode(keypair_58) .into_vec() .map_err(|e| anyhow!("Base58 decode error: {}", e))?; Keypair::from_bytes(&bytes) .map_err(|e| anyhow!("Invalid keypair bytes: {}", e)) } else if let Ok(keypair_json_path) = config.get_string("keypair_json") { let json_content = std::fs::read_to_string(keypair_json_path)?; let secret_key: Vec<u8> = serde_json::from_str(&json_content)?; Keypair::from_bytes(&secret_key) .map_err(|e| anyhow!("Invalid JSON keypair bytes: {}", e)) } else if let Ok(keypair_64) = config.get_string("keypair_64") { let bytes: Vec<u8> = keypair_64 .split(',') .map(|s| s.trim().parse::<u8>().map_err(|e| anyhow!("Failed to parse byte '{}': {}", s.trim(), e))) .collect::<Result<Vec<u8>>>()?; let bytes_array: [u8; 64] = bytes[..].try_into().map_err(|_| { anyhow!("Keypair must be exactly 64 bytes long, but got {}", bytes.len()) })?; Keypair::from_bytes(&bytes_array).map_err(|e| anyhow!("Invalid 64-byte keypair: {}", e)) } else { Err(anyhow!("No valid keypair found in config")) } } async fn fetch_and_cache_token_price(&self, token_address: &str) -> Result<f64> { if let Some(price) = self.price_cache.lock().await.get(token_address) { return Ok(price); } let _guard = self.metadata_limiter.lock().await; let price = self.fetch_token_price(token_address).await?; self.price_cache.lock().await.set(token_address.to_string(), price); Ok(price) } async fn fetch_token_price(&self, token_address: &str) -> Result<f64> { let metadata = self.fetch_metadata(token_address).await?; metadata .get("price") .and_then(serde_json::Value::as_f64) .ok_or_else(|| anyhow!("No price found for token {}", token_address)) } async fn fetch_metadata(&self, token_address: &str) -> Result<serde_json::Value> { let url = format!( "https://api.helius.xyz/v0/token-metadata?api-key={}", self.config.get_string("helius_api_key")? ); let response = self .http_client .post(&url) .json(&json!({ "mintAccounts": [token_address], "includeOffChain": true, "disableCache": false })) .send() .await? .json::<Vec<serde_json::Value>>() .await?; response .into_iter() .next() .ok_or_else(|| anyhow!("No metadata found for token {}", token_address)) } pub async fn run(&mut self, shutdown_signal: Arc<AtomicBool>) -> Result<()> { self.load_state().await?; let mut save_state_interval = interval(Duration::from_secs(60)); let mut status_report_interval = interval(Duration::from_secs(300)); info!("Entering main bot loop. Listening for events..."); while !shutdown_signal.load(Ordering::SeqCst) { tokio::select! { result = self.connect_and_listen() => { if let Err(ref e) = result { error!("WebSocket connection error: {}", e); } }, _ = save_state_interval.tick() => { if let Err(ref e) = self.save_state().await { error!("Failed to save bot state: {}", e); } }, _ = status_report_interval.tick() => { if let Err(ref e) = self.print_status_report().await { error!("Failed to print status report: {}", e); } }, _ = tokio::time::sleep(Duration::from_millis(500)), if self.is_tracking_prices.load(Ordering::SeqCst) => { if let Err(ref e) = self.check_active_trades().await { error!("Error checking active trades: {}", e); } if self.active_trades.lock().await.is_empty() { self.is_tracking_prices.store(false, Ordering::SeqCst); info!("All trades completed. Stopping price tracking."); } } } } info!("Shutdown signal received. Performing graceful shutdown..."); self.save_state().await?; info!("Bot state saved. Shutdown complete."); Ok(()) } async fn connect_and_listen(&self) -> Result<()> { info!("Establishing WebSocket connection..."); let (ws_stream, _) = connect_async(&self.config.get_string("helius_websocket_url")?).await?; let (mut write, mut read) = ws_stream.split(); write .send(WsMessage::Text( json!({ "jsonrpc": "2.0", "id": 1, "method": "subscribePoolCreations", "params": [] }) .to_string(), )) .await?; info!("Connected to Helius WebSocket. Subscribed to pool creations."); while let Some(msg) = read.next().await { if self.shutdown_signal.load(Ordering::SeqCst) { break; } match msg { Ok(WsMessage::Text(text)) => { if let Err(ref e) = self.handle_event(&text).await { error!("Error handling event: {}", e); } } Ok(WsMessage::Close(_)) => { info!("WebSocket connection closed by server"); break; } Err(ref e) => { error!("WebSocket error: {}", e); break; } _ => {} } } Ok(()) } async fn handle_event(&self, text: &str) -> Result<()> { debug!("Received WebSocket event: {}", text); let event: serde_json::Value = serde_json::from_str(text)?; if let Some(params) = event.get("params") { if let Some(token_address) = params.get("tokenAddress").and_then(serde_json::Value::as_str) { info!("Token {} detected from WebSocket event.", token_address); if self.is_valid_pool(token_address).await? { self.attempt_buy(token_address).await?; } else { info!("Token {} failed validation checks. Skipping.", token_address); } } } Ok(()) } async fn is_valid_pool(&self, token_address: &str) -> Result<bool> { debug!("Validating pool for token: {}", token_address); let metadata = self.fetch_metadata(token_address).await?; let is_raydium_pool = metadata .get("updateAuthority") .and_then(serde_json::Value::as_str) .map_or(false, |auth| auth == RAYDIUM_AMM_PROGRAM_ID); if !is_raydium_pool { return Ok(false); } let is_spl_token = metadata.get("tokenStandard").and_then(serde_json::Value::as_str) == Some("SPL"); if !is_spl_token { return Ok(false); } let liquidity = metadata .get("liquidity") .and_then(serde_json::Value::as_f64) .unwrap_or(0.0); if liquidity < MIN_LIQUIDITY || liquidity > MAX_LIQUIDITY { return Ok(false); } Ok(true) } async fn attempt_buy(&self, token_address: &str) -> Result<()> { let active_trade_count = self.active_trades.lock().await.len(); if active_trade_count >= MAX_ACTIVE_TRADES { info!("Maximum number of active trades ({}) reached. Skipping buy for {}.", MAX_ACTIVE_TRADES, token_address); return Ok(()); } self.is_tracking_prices.store(true, Ordering::SeqCst); info!("Attempting to buy token: {}", token_address); for attempt in 0..MAX_BUY_ATTEMPTS { if let Err(ref e) = self.execute_buy(token_address).await { warn!("Failed to buy token {}. Attempt {} of {}. Error: {}", token_address, attempt + 1, MAX_BUY_ATTEMPTS, e); tokio::time::sleep(BUY_ATTEMPT_DELAY).await; } else { info!("Successfully bought token {} on attempt {}.", token_address, attempt + 1); return Ok(()); } } error!("Failed to buy token {} after {} attempts.", token_address, MAX_BUY_ATTEMPTS); if self.active_trades.lock().await.is_empty() { self.is_tracking_prices.store(false, Ordering::SeqCst); } Ok(()) } async fn execute_buy(&self, token_address: &str) -> Result<()> { let _guard = self.swap_limiter.lock().await; let amount = self.config.get_int("snipe_amount")? as u64; let slippage = self.config.get_float("max_slippage")?; let swap_response = self.http_client .post("https://api.raydium.io/v2/main/swap") .json(&json!({ "inToken": WSOL_MINT, "outToken": token_address, "amount": amount, "fixedSide": "in", "slippage": slippage })) .send() .await? .json::<serde_json::Value>() .await?; let transaction_data = base64::decode(swap_response.get("swapTransaction").ok_or_else(|| anyhow!("Missing swap transaction in response"))?.as_str().ok_or_else(|| anyhow!("Swap transaction is not a string"))?)?; let transaction: Transaction = bincode::deserialize(&transaction_data)?; let message = transaction.message.clone(); let mut new_transaction = Transaction::new_unsigned(message); let recent_blockhash = self.get_recent_blockhash().await?; new_transaction.sign(&[&self.keypair], recent_blockhash); let signature = self.rpc_client.send_and_confirm_transaction_with_spinner(&new_transaction)?; info!("Buy transaction sent for token {}. Signature: {}", token_address, signature); let buy_price = self.fetch_and_cache_token_price(token_address).await?; let take_profit_price = buy_price * (1.0 + self.config.get_float("profit_target_percent")? / 100.0); let stop_loss_price = buy_price * (1.0 - self.config.get_float("stop_loss_percent")? / 100.0); let trade = Trade { token_address: token_address.to_string(), amount, buy_price, take_profit_price, stop_loss_price, timestamp: SystemTime::now().duration_since(UNIX_EPOCH)?.as_secs(), }; self.active_trades.lock().await.insert(token_address.to_string(), trade); self.save_state().await?; info!("Trade added for token {}. Buy price: {}, Take profit: {}, Stop loss: {}", token_address, buy_price, take_profit_price, stop_loss_price); Ok(()) } async fn check_active_trades(&self) -> Result<()> { let mut trades_to_remove = Vec::new(); let mut active_trades = self.active_trades.lock().await; for (token_address, trade) in active_trades.iter() { let current_price = self.fetch_and_cache_token_price(token_address).await?; let profit_loss = (current_price - trade.buy_price) / trade.buy_price * 100.0; info!("Trade status for {}: Current price: {}, Buy price: {}, P/L: {:.2}%", token_address, current_price, trade.buy_price, profit_loss); if current_price >= trade.take_profit_price || current_price <= trade.stop_loss_price { info!("Executing sell for {} (Take profit: {}, Stop loss: {})", token_address, trade.take_profit_price, trade.stop_loss_price); if self.execute_sell(token_address, trade.amount).await.is_ok() { trades_to_remove.push(token_address.clone()); info!("Successfully sold token {}", token_address); } } } for token_address in trades_to_remove { active_trades.remove(&token_address); } self.save_state().await?; Ok(()) } async fn execute_sell(&self, token_address: &str, amount: u64) -> Result<()> { let _guard = self.swap_limiter.lock().await; let slippage = self.config.get_float("max_slippage")?; let swap_response = self.http_client .post("https://api.raydium.io/v2/main/swap") .json(&json!({ "inToken": token_address, "outToken": WSOL_MINT, "amount": amount, "fixedSide": "in", "slippage": slippage })) .send() .await? .json::<serde_json::Value>() .await?; let transaction_data = base64::decode(swap_response.get("swapTransaction").ok_or_else(|| anyhow!("Missing swap transaction in response"))?.as_str().ok_or_else(|| anyhow!("Swap transaction is not a string"))?)?; let transaction: Transaction = bincode::deserialize(&transaction_data)?; let message = transaction.message.clone(); let mut new_transaction = Transaction::new_unsigned(message); let recent_blockhash = self.get_recent_blockhash().await?; new_transaction.sign(&[&self.keypair], recent_blockhash); let signature = self.rpc_client.send_and_confirm_transaction_with_spinner(&new_transaction)?; info!("Sell transaction sent for token {}. Signature: {}", token_address, signature); Ok(()) } async fn get_recent_blockhash(&self) -> Result<Hash> { let mut last_blockhash = self.last_blockhash.lock().await; if last_blockhash.1.elapsed() > Duration::from_secs(120) { *last_blockhash = ( self.rpc_client.get_latest_blockhash()?, Instant::now(), ); } Ok(last_blockhash.0) } async fn save_state(&self) -> Result<()> { let active_trades = self.active_trades.lock().await; let state = BotState { active_trades: active_trades.clone(), last_save_time: SystemTime::now(), }; let serialized = serde_json::to_string(&state)?; let mut file = OpenOptions::new() .write(true) .create(true) .truncate(true) .open(STATE_FILE)?; file.write_all(serialized.as_bytes())?; info!("Bot state saved successfully."); Ok(()) } async fn load_state(&mut self) -> Result<()> { match File::open(STATE_FILE) { Ok(file) => { if let Ok(state) = serde_json::from_reader::<_, BotState>(file) { *self.active_trades.lock().await = state.active_trades; info!("State loaded from {}", STATE_FILE); } else { warn!("Failed to parse state file: {}. Starting with empty state.", STATE_FILE); } }, Err(e) if e.kind() == std::io::ErrorKind::NotFound => { info!("No previous state file found. Starting with a clean state."); }, Err(e) => { warn!("Error opening state file: {}. Starting with empty state.", e); } } self.verify_loaded_trades().await?; Ok(()) } async fn verify_loaded_trades(&self) -> Result<()> { let mut trades_to_remove = Vec::new(); let mut active_trades = self.active_trades.lock().await; for (token_address, _) in active_trades.iter() { if self.fetch_and_cache_token_price(token_address).await.is_err() { trades_to_remove.push(token_address.clone()); warn!("Removing unverifiable trade for {}", token_address); } } for token_address in trades_to_remove { active_trades.remove(&token_address); } Ok(()) } async fn print_status_report(&self) -> Result<()> { let active_trades = self.active_trades.lock().await; let total_trades = active_trades.len(); let mut total_investment = 0.0; let mut total_current_value = 0.0; for (token_address, trade) in active_trades.iter() { let current_price = self.fetch_and_cache_token_price(token_address).await?; total_investment += trade.amount as f64 * trade.buy_price; total_current_value += trade.amount as f64 * current_price; } let overall_profit_loss = if total_investment > 0.0 { (total_current_value - total_investment) / total_investment * 100.0 } else { 0.0 }; info!("=== Bot Status Report ==="); info!("Active Trades: {}", total_trades); info!("Total Investment: {:.2} SOL", total_investment); info!("Current Portfolio Value: {:.2} SOL", total_current_value); info!("Overall P&L: {:.2}%", overall_profit_loss); info!("========================"); Ok(()) } - Assistant
- User
Helius Dashboard Endpoints API Keys Webhooks Dedicated Nodes Usage RPC Testing Project Settings System Status Support Documentation About Webhooks
•Webhooks let you listen to events on-chain and trigger certain actions when these events happen.
•Webhook changes may take up to 2 minutes to take effect.
•For support, please contact us on Discord .
•To work with webhooks programmatically and learn more, see our API documentation . 0
Webhook Events
Current Cycle:
Sep 25, 2024 to Oct 25, 2024 My Webhooks ID URL Txn Types Accounts Type Network Actions
0 Configure Webhook Network mainnet devnet Webhook Type
Select the type of webhook you wish to receive. Transaction Status Succeeded Failed Webhook URL *
Enter the URL of your webhook. This could be a lambda, a custom API endpoint, etc. Authentication Header
Enter an authentication header to pass into the post requests to your webhook. Account Addresses
No addresses added
No addresses added
- Assistant
- User
so i use raw or enhanced?
- Assistant
- User
- Assistant
- User
help me with setting up the webhook dont i need that??
- Assistant
- User
i use the websocket one?
- Assistant
- User
so i still setup the webhook or no?
- Assistant
You don't need to set up the webhook if you plan to use the WebSocket for real-time event listening. Both WebSocket and webhook implementations can serve the purpose of receiving real-time updates; however, each has its own use cases:
When to Use WebSocket vs. Webhook
-
WebSocket:
- Real-Time Updates: WebSockets provide a continuous connection, allowing for real-time updates as events occur. This is ideal for applications where you need immediate reactions to on-chain events.
-
- User
okay so my websocket is already setup it just needs to poll the accurate data required then is what ur saying?? so i just to get the proper data to my websocket and have it execute trades and manage them properly and i want all the information so i can see exactly whats going on like say its new spl token created and its got 1 billion token supply and it has other parameters met and its just waiting on like mint authority to be revoked just an example i want the like potential to be bought spl tokens to have a list so its like preparing to buy it when it becomes a spl token that meets requirements u know like it filters out the ones that dont have the 1 billion supply if one user owns more then 10% of the total those can get filtered out early i want it basicly having spl tokens that are just waitng for the burnt lp and the mint authority to be revoked then acting on it quickly with helius priority fee mev protected and front running protected helius pro subscription advanced transaction to be used for the buy , and for the sell im not sure its required to use for the sell also but to make it easier we can just mimick the buy and sell for now might not be bad to use it for the sell aswell and makes it easier to do.
- Assistant
- User
- Assistant
- User
does it cover everything the trade the execution of helius priority fee and calculations and managing multiple trades indivually and tracking price like i said only when buying and only if active trades only then it tracks price every 1 second until FULLY CONFIRMED SOLD OR UNSUCCESSFUL 3 ATTEMPT BUYS AND FOR SELLING ALSO ITS 3 ATTEMPTS THEN WAITS 30 SECONDS TO SELL AGAIN 3 ATTEMPTS IT AND OR STOP LOSS TRIGGER
- Assistant
- User
please fully code it for me in this iteration all code for it please i will build the cargo and well test it out on mainnet with small amount
- Assistant
- User
i always set rust min stack size and build in --release --jobs 7
- Assistant
- User
is this a bad stack size here $rust_MIN_STACK = "16777216"
- Assistant
- User
ill try to build it with your size u reccomended
- Assistant
That's a good approach! Here's a quick recap of the steps to set your Rust project up with the stack size and how to build it properly:
Setting the Stack Size and Building the Project
-
Set the Minimum Stack Size: You can set the
RUST_MIN_STACKenvironment variable to8388608bytes (which is 8 MB) before running or building your Rust application. This is a safe and commonly used value that accommodates most applications without being excessively large.
-
- User
i am using an i9 intel 13900k 2tb ssd 32gb ram 4070ti with really fast good internet 700+ speed
- Assistant
- User
so should i use the stack i mentioned with jobs 7 it seems to work pretty well
- Assistant
Given your powerful hardware configuration and the performance you've experienced with (16 MB) along with building your project using , it seems that you are on the right track. Here’s a summary of the reasoning and recommendations regarding your setup:
- User
yeah these settings ive played with for months this settings good for my pc
- Assistant
That's fantastic to hear! If you've spent considerable time experimenting with different settings and have found that the configuration (
RUST_MIN_STACK = "16777216"with--jobs 7) works well for your powerful setup, then it makes sense to stick with that.Key Takeaways
-
Optimized for Your Hardware: Each system has unique requirements, and since you’ve tailored your setup based on your own testing, you’re likely maximizing the performance of your trading bot.
-
- User
well probably have u rewrite the script a few times until we get the building cargo perfect without any errors and maybe very little warnings so please rewrite the script and incorperate all the nessarary code for logging and validations so i know my bot is actually working as intended maybe adding a preflight into the code to run a test for a few seconds like 30 second preflight to test all the functions are properly working as intended?
- Assistant
- User
- Assistant
- User
so question does this information here help us any i do have this raydium-amm altho i dont know if its something i should use or even how to i just was looking into it today but i can show u the files it has and you can tell me if this will indeed help us or not
- Assistant
Certainly! If you have specific files or information related to the Raydium Automated Market Maker (AMM), sharing those details can provide valuable context for understanding how it might help with your trading bot.
What Information About Raydium AMM Is Relevant?
-
Contract Address: The smart contract address of the Raydium AMM, which you already have as
RAYDIUM_AMM_PROGRAM_ID. This is vital for interacting with the liquidity pools. -
Functionality: The functions available within the Raydium AMM that you can utilize for trading, such as swapping tokens, adding/removing liquidity, or fetching pool data.
-
- User
//! Program entrypoint definitions
#![cfg(all(target_arch = "bpf", not(feature = "no-entrypoint")))]
use crate::{error::AmmError, processor::Processor}; use solana_program::{ account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, program_error::PrintProgramError, pubkey::Pubkey, };
entrypoint!(process_instruction); fn process_instruction<'a>( program_id: &Pubkey, accounts: &'a [AccountInfo<'a>], instruction_data: &[u8], ) -> ProgramResult { if let Err(error) = Processor::process(program_id, accounts, instruction_data) { // catch the error so we can print it error.print::(); return Err(error); } Ok(()) } theres a few more files like 6 more i think i will restart the chat with u so its fresh so we dont reach max for this chat
- Assistant
- User
do u think i should do a fresh chat window?
- Assistant
Creating a fresh chat window can be a good idea if you want to keep the discussion focused and organized, especially when working on a complex project like a trading bot. Starting a new conversation can help avoid confusion and make it easier to track specific questions or code snippets.
Benefits of Starting a New Chat:
- Clarity: A new chat allows you to clearly outline your current objectives or questions without the context of past discussions.
- Focused Topic: You can summarize what you want to achieve or clarify only the points currently relevant to your project.
- Easier Navigation: Reviewing the conversation history becomes simpler when dealing with a smaller context, especially if you're sharing files or code.
What to Include in the New Chat:
- Current Objectives: Briefly describe what you want to achieve with your trading bot.
- Code and Files: If you have specific AMM code or features you want to discuss, share them right away.