raydium-io / raydium-sdk-V2

Open-source Typescript SDK for Raydium
GNU General Public License v3.0
79 stars 47 forks source link

Can I use ApiPoolInfoV4? #44

Closed ucbarton closed 3 weeks ago

ucbarton commented 3 weeks ago

I want to keep track of the newly created pools on Raydium, to do this there is a getPoolList() method that returns ApiV3PoolInfoItem data. There is also an ApiPoolInfoV4 interface in the API, but I can't use it, even though it contains more appropriate data. Are you going to add this interface for use when retrieving pool data?

ParzifaL-03 commented 3 weeks ago

i have the same problem too

ParzifaL-03 commented 3 weeks ago

@ucbarton are you already find it?

cruzshia commented 3 weeks ago

There's no PoolInfoV4, and our api "doesn't support provide realtime new pool" data, it needs sometime to sync, also sdk doesn't watch for newly created pool too. maybe you can try loop fetching all pool data or watch program by AMM/CLMM/CPMM to check whether there's a new pool (just a concept for you)

ucbarton commented 3 weeks ago

@ucbarton are you already find it?

I realized that this interface is not used and reconsidered the approach, I decided to do through solana web3 library. What are you doing? It would be interesting to communicate and share experience.