Re-exports§
pub use crate::swqos::SwqosTransport;
Modules§
- common
- constants
- instruction
- perf
- Performance: SIMD, cache prefetch, branch hints, zero-copy I/O, syscall bypass, compiler hints. 性能优化:SIMD、缓存预取、分支提示、零拷贝 I/O、系统调用绕过、编译器提示。
- swqos
- trading
- utils
Macros§
- bypass_
syscall - 🚀 系统调用绕过宏
- compile_
time_ optimize - 🚀 编译时优化宏
Structs§
- Trade
BuyParams - Parameters for executing buy orders across different DEX protocols
- Trade
Sell Params - Parameters for executing sell orders across different DEX protocols
- Trading
Client - Main trading client for Solana DeFi protocols
- Trading
Infrastructure - Shared infrastructure components that can be reused across multiple wallets
Enums§
- Trade
Token Type - Type of the token to buy
Functions§
- find_
pool_ by_ mint - 按 mint 查找池地址(通用入口,根据 DEX 类型分发,仅 PumpSwap 等已实现的类型会走优化路径)。
- recommended_
sender_ thread_ core_ indices - When using
TradeConfig::with_swqos_cores_from_end(true), returns the same “last N” core indices that the infrastructure uses. Pass the result toTradingClient::with_dedicated_sender_threadsfor 方式 C (组合使用): SWQOS on last N cores and dedicated sender threads pinned to those cores.
Type Aliases§
- Solana
Trade - 🔄 向后兼容:SolanaTrade 别名