OpenViSTAI · Agents · Blockchain · Crypto
Menu
Exchanges & Trading

Raydium Py

Raydium Py is an open-source Python library for trading SOL pairs on Raydium AMM v4 and CPMM pools. It requires a pool ID (pair address) for swaps and includes RPC methods for fetching pool IDs.

Independent OpenViST project profile, based on linked sources.

Raydium Py — OpenViST project profile in Exchanges & Trading.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when building a Python workflow for SOL-pair swaps on Raydium AMM v4 or CPMM pools and you can supply a pool ID, private key and RPC endpoint.

Who it is for

  • Python developers building tools or services for SOL-pair swaps on Raydium.
  • Bot builders who can configure an RPC endpoint and Base58-format private key.

Documented uses

  • Submit swaps through Raydium AMM v4 or CPMM pools.
  • Fetch pool IDs through included RPC methods.
  • Use the library as a component in a command-line utility, Python service or trading bot.
Before you choose

Requirements & limits

  • A pool ID, not a token mint address, is required for each swap.
  • Only SOL pairs are supported; USDC pairs are identified as unsupported.
  • CLMM pools and devnet are unsupported.
  • Some free-tier RPCs block GET_PROGRAM_ACCOUNTS(), which may prevent pool-key retrieval.
  • The README specifies solana==0.35.0 and solders==0.21.0.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Prepare Raydium Py configuration

Install the documented Python dependencies and add the required credentials and RPC endpoint to the project configuration.

Before you start

  • Python environment
  • Base58-format private key
  • RPC endpoint

Steps

  1. Clone the repository.

  2. Install solana==0.35.0 and solders==0.21.0 with pip.

  3. Add the Base58 private key and RPC endpoint to config.py.

Expected outcome

The repository has its documented dependencies installed and the required configuration values added.

Guide limitations

  • These setup steps do not describe executing a swap.
  • The library does not support devnet or CLMM pools.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
17 October 2026
Original website title
AL-THE-BOT-FATHER/raydium_py · Official homepage title · retained in its source language