Allen-Taylor / raydium_py

Raydium swap with Python (includes trading bot example).
35 stars 8 forks source link

Can't swap when special tokens #2

Closed winer328 closed 1 month ago

winer328 commented 2 months ago

Hi, Thanks for your full code for swap. I implemented swap in node.js with Raydium sdk and it worked well. I found python swap code in raydium here and I cloned it. But when I want swap with SHDWyBxihqiCj6YekG2GUr7wqKLeLAMK1gHZck9pL6y, No pools keys found... error occurs. When I swap in node.js, it works well. What's the issue in this?

Allen-Taylor commented 2 months ago

Try putting in the pair address directly:

2wbnvtStBTRRGJhCAwpLSWxrUrfRL4H2FTsujseALsm1

You are using the mint address.

This one has multiple pools from Raydium, Orca, etc.

winer328 commented 2 months ago

I'm sorry but I think we should use token mint address, not directly with pair address. It's strange why other tokens work correctly but the token SHDWyBxihqiCj6YekG2GUr7wqKLeLAMK1gHZck9pL6y not working. Could you explain this strange?

winer328 commented 1 month ago

Thanks, @Allen-Taylor You are really good dev.