Velocity strategy

This commit is contained in:
2026-08-07 04:09:05 +02:00
parent c39700e4c2
commit 5d85e731d3
8 changed files with 198 additions and 72 deletions
+3 -5
View File
@@ -1,4 +1,4 @@
use std::{collections::HashMap, sync::Arc};
use std::sync::Arc;
use anyhow::Context;
use futures_util::{SinkExt, StreamExt};
@@ -9,7 +9,7 @@ use tokio_tungstenite::{MaybeTlsStream, WebSocketStream, connect_async};
use crate::{
account::AccountManager,
executor::Executor,
strategy::{Strategy, burst::Burst},
strategy::{Strategy, veloc::MomentumVelocityStrategy},
};
pub struct Bot {
@@ -69,9 +69,7 @@ impl Bot {
ws: Mutex::new(connect_async("wss://pumpdev.io/ws").await?.0),
executor: Mutex::new(Box::new(account.executor())),
accounts: Mutex::new(accounts),
strategy: Mutex::new(Box::new(Burst {
tokens: HashMap::new(),
})),
strategy: Mutex::new(Box::new(MomentumVelocityStrategy::new())),
}))
}