Stream Pool Reserves

This channel provides the reserves information specified by the target tokens. It will tick every time there were updates in the targeted reserve.

Subscribe

Parameters:

ParameterTypeDescription

pools

array

A list of target Raydium pool program addresses that you want to listen to.

Subscribe sample:

wscat --header "Authorization: $AUTH_HEADER" \
-c wss://ny.solana.dex.blxrbdn.com/ws --wait 1000 --execute ' {"jsonrpc": "2.0", "id": 1, "method": "subscribe", "params": ["GetPoolReservesStream", {"pools": ["58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"]}] }]}'

Sample event:

{
    "method":"subscribe",
    "params":{
        "subscription":"d1d9b51d-dc01-46d4-9931-e2720a10cf80",
        "result":{
            "slot":"152667075",
            "reserves":{
                "token1Reserves":"12804117016464",
                "token1Address":"So11111111111111111111111111111111111111112",
                "token2Reserves":"12804117016464",
                "token2Address":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "poolAddress":"58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2",
                "project":"P_RAYDIUM"
            }
        }
    },
    "jsonrpc":"2.0"
}

Last updated