pub struct PoolUpdate {
pub sequence: u64,
pub slot: u64,
pub write_version: u64,
pub protocol_name: String,
pub pool_address: String,
pub token_mints: Vec<String>,
pub token_balances: Vec<u64>,
pub token_decimals: Vec<i32>,
pub best_bid: Option<OrderLevel>,
pub best_ask: Option<OrderLevel>,
pub serialized_state: Vec<u8>,
}Expand description
Real-time pool state update from K256 WebSocket.
Fields§
§sequence: u64Global sequence number for ordering
slot: u64Solana slot number
write_version: u64Write version within slot
protocol_name: StringDEX protocol name (e.g., “RaydiumClmm”, “Whirlpool”)
pool_address: StringBase58-encoded pool address
token_mints: Vec<String>List of token mint addresses
token_balances: Vec<u64>List of token balances (same order as mints)
token_decimals: Vec<i32>List of token decimals (same order as mints)
best_bid: Option<OrderLevel>Best bid order level, if available
best_ask: Option<OrderLevel>Best ask order level, if available
serialized_state: Vec<u8>Opaque pool state bytes
Trait Implementations§
Source§impl Clone for PoolUpdate
impl Clone for PoolUpdate
Source§fn clone(&self) -> PoolUpdate
fn clone(&self) -> PoolUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PoolUpdate
impl Debug for PoolUpdate
Source§impl<'de> Deserialize<'de> for PoolUpdate
impl<'de> Deserialize<'de> for PoolUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PoolUpdate
impl PartialEq for PoolUpdate
Source§impl Serialize for PoolUpdate
impl Serialize for PoolUpdate
impl Eq for PoolUpdate
impl StructuralPartialEq for PoolUpdate
Auto Trait Implementations§
impl Freeze for PoolUpdate
impl RefUnwindSafe for PoolUpdate
impl Send for PoolUpdate
impl Sync for PoolUpdate
impl Unpin for PoolUpdate
impl UnwindSafe for PoolUpdate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more