how to monitor solana token tokens to run solana arbitrage bot #188
-
|
how to monitor solana token tokens to run solana arbitrage bot |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
WHIRLPOOLS_POOL_SIZE=952 METEORA_POOLS_PROGRAM=Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB #[derive(Debug)] #[derive(Debug)] #[derive(Debug)] #[derive(Debug)] #[derive(Debug)] #[derive(Debug)] #[derive(Debug)] let data: &[u8] = /* your account data */; // Account discriminator (8 bytes) // Pubkey fields // u8/bool fields // Protocol fee pubkeys // u64 and padding // PoolFees // PoolType (assuming 0 = Permissionless) // Stake pubkey // total_locked_lp // Bootstrapping // PartnerInfo // Padding // CurveType let pool = LiquidityPool { |
Beta Was this translation helpful? Give feedback.
-
|
RAYDIUM_CLMM_PROGRAM=CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK //token_mint0 = 73 #[derive(Debug)] #[derive(Debug)] let data: &[u8] = /* your account data */; // Account discriminator (8 bytes) // Initial fields // RewardInfos (3 items) // Tick array bitmap (16 u64 values) // Remaining fields // Padding arrays let mut padding2 = [0u64; 32]; let pool = ConcentratedLiquidityPool { |
Beta Was this translation helpful? Give feedback.
-
|
METEORA_DLMM_POOL_SIZE=904 #[derive(Debug)] #[derive(Debug)] #[derive(Debug)] #[derive(Debug)] #[derive(Debug)] //reserve_x = 8+32*2+16=88 match rpc_client.get_program_accounts_with_config( let data: &[u8] = /* your account data */; // Account discriminator (8 bytes) // StaticParameters (32 bytes) // VariableParameters (32 bytes) // Fixed fields // Pubkey fields // ProtocolFee // padding1 // RewardInfos (2 items) // Continue parsing remaining fields... let pool = LiquidityPool { |
Beta Was this translation helpful? Give feedback.
METEORA_DLMM_POOL_SIZE=904
METEORA_DLMM_PROGRAM=LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo
#[derive(Debug)]
pub struct LiquidityPool {
// Account Discriminator (8 bytes)
pub parameters: StaticParameters, // 32 bytes
pub v_parameters: VariableParameters, // 32 bytes
pub bump_seed: u8, // 1 byte
pub bin_step_seed: [u8; 2], // 2 bytes
pub pair_type: u8, // 1 byte
pub active_id: i32, // 4 bytes
pub bin_step: u16, // 2 bytes
pub status: u8, // 1 byte
pub require_base_factor_seed: u8, // 1 byte
pub base_factor_seed: [u8; 2], // 2 bytes
pub activation_type: u8, // 1 byte
pub creator_pool_on_off_control: u8, // 1 byte
pub token_x_mint: Pubkey, // 32 bytes
pub token_y_mint: Pubkey, // 32 bytes
pu…