Skip to main content

Crate sol_trade_sdk

Crate sol_trade_sdk 

Source

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§

TradeBuyParams
Parameters for executing buy orders across different DEX protocols
TradeSellParams
Parameters for executing sell orders across different DEX protocols
TradingClient
Main trading client for Solana DeFi protocols
TradingInfrastructure
Shared infrastructure components that can be reused across multiple wallets

Enums§

TradeTokenType
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 to TradingClient::with_dedicated_sender_threads for 方式 C (组合使用): SWQOS on last N cores and dedicated sender threads pinned to those cores.

Type Aliases§

SolanaTrade
🔄 向后兼容:SolanaTrade 别名