{"id":50496031,"url":"https://github.com/0xfnzero/sol-trade-sdk-python","last_synced_at":"2026-06-02T07:03:05.169Z","repository":{"id":349373098,"uuid":"1201727263","full_name":"0xfnzero/sol-trade-sdk-python","owner":"0xfnzero","description":"A comprehensive, high-performance Python SDK for Solana DEX trading with support for multiple protocols and MEV providers.","archived":false,"fork":false,"pushed_at":"2026-06-01T07:00:35.000Z","size":494,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-01T08:26:04.260Z","etag":null,"topics":["arbitrage","copy-trading","copy-trading-polymarket","fnzero","jito-bundle","meteora-bot","pumpdotfun","pumpfun-sdk","pumpfun-sniper-go","pumpswap","python","raydium-bot","snipe-bot","swqos"],"latest_commit_sha":null,"homepage":"https://fnzero.dev","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xfnzero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-05T04:24:56.000Z","updated_at":"2026-06-01T06:58:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/0xfnzero/sol-trade-sdk-python","commit_stats":null,"previous_names":["0xfnzero/sol-trade-sdk-python"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/0xfnzero/sol-trade-sdk-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xfnzero%2Fsol-trade-sdk-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xfnzero%2Fsol-trade-sdk-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xfnzero%2Fsol-trade-sdk-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xfnzero%2Fsol-trade-sdk-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xfnzero","download_url":"https://codeload.github.com/0xfnzero/sol-trade-sdk-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xfnzero%2Fsol-trade-sdk-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33810343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arbitrage","copy-trading","copy-trading-polymarket","fnzero","jito-bundle","meteora-bot","pumpdotfun","pumpfun-sdk","pumpfun-sniper-go","pumpswap","python","raydium-bot","snipe-bot","swqos"],"created_at":"2026-06-02T07:03:03.681Z","updated_at":"2026-06-02T07:03:05.164Z","avatar_url":"https://github.com/0xfnzero.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003e🚀 Sol Trade SDK for Python\u003c/h1\u003e\n    \u003ch3\u003e\u003cem\u003eA comprehensive Python SDK for seamless Solana DEX trading\u003c/em\u003e\u003c/h3\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cstrong\u003eA high-performance Python SDK for low-latency Solana DEX trading bots. Built for speed and efficiency, it enables seamless, high-throughput interaction with PumpFun, Pump AMM (PumpSwap), Bonk, Meteora DAMM v2, Raydium AMM v4, and Raydium CPMM for latency-critical trading strategies.\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://pypi.org/project/sol-trade-sdk\"\u003e\n        \u003cimg src=\"https://img.shields.io/pypi/v/sol-trade-sdk.svg\" alt=\"PyPI\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/sol-trade-sdk\"\u003e\n        \u003cimg src=\"https://img.shields.io/pypi/pyversions/sol-trade-sdk.svg\" alt=\"Python Versions\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"License\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Python-3776AB?style=for-the-badge\u0026logo=python\u0026logoColor=white\" alt=\"Python\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Solana-9945FF?style=for-the-badge\u0026logo=solana\u0026logoColor=white\" alt=\"Solana\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/DEX-4B8BBE?style=for-the-badge\u0026logo=bitcoin\u0026logoColor=white\" alt=\"DEX Trading\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/README_CN.md\"\u003e中文\u003c/a\u003e |\n    \u003ca href=\"https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/README.md\"\u003eEnglish\u003c/a\u003e |\n    \u003ca href=\"https://fnzero.dev/\"\u003eWebsite\u003c/a\u003e |\n    \u003ca href=\"https://t.me/fnzero_group\"\u003eTelegram\u003c/a\u003e |\n    \u003ca href=\"https://discord.gg/vuazbGkqQE\"\u003eDiscord\u003c/a\u003e\n\u003c/p\u003e\n\n\u003e ☕ **Support This Project**\n\u003e\n\u003e This SDK is completely free and open source. However, maintaining and continuously updating it requires significant AI computing resources and token consumption. If this SDK helps with your development, consider making a monthly SOL donation — any amount is appreciated and helps keep this project alive!\n\u003e\n\u003e **Donation Wallet:** `6oW7AXz1yRb57pYSxysuXnMs2aR1ha5rzGzReZ1MjPV8`\n\n## 📋 Table of Contents\n\n- [✨ Features](#-features)\n- [📦 Installation](#-installation)\n- [🛠️ Usage Examples](#️-usage-examples)\n  - [📋 Example Usage](#-example-usage)\n  - [⚡ Trading Parameters](#-trading-parameters)\n  - [📊 Usage Examples Summary Table](#-usage-examples-summary-table)\n  - [⚙️ SWQoS Service Configuration](#️-swqos-service-configuration)\n  - [🔧 Middleware System](#-middleware-system)\n  - [🔍 Address Lookup Tables](#-address-lookup-tables)\n  - [🔍 Nonce Cache](#-nonce-cache)\n- [💰 Cashback Support (PumpFun / PumpSwap)](#-cashback-support-pumpfun--pumpswap)\n- [🛡️ MEV Protection Services](#️-mev-protection-services)\n- [📁 Project Structure](#-project-structure)\n- [📄 License](#-license)\n- [💬 Contact](#-contact)\n- [⚠️ Important Notes](#️-important-notes)\n\n---\n\n## 📦 SDK Versions\n\nThis SDK is available in multiple languages:\n\n| Language | Repository | Description |\n|----------|------------|-------------|\n| **Rust** | [sol-trade-sdk](https://github.com/0xfnzero/sol-trade-sdk) | Ultra-low latency with zero-copy optimization |\n| **Node.js** | [sol-trade-sdk-nodejs](https://github.com/0xfnzero/sol-trade-sdk-nodejs) | TypeScript/JavaScript for Node.js |\n| **Python** | [sol-trade-sdk-python](https://github.com/0xfnzero/sol-trade-sdk-python) | Async/await native support |\n| **Go** | [sol-trade-sdk-golang](https://github.com/0xfnzero/sol-trade-sdk-golang) | Concurrent-safe with goroutine support |\n\n## 🔖 Current Release\n\n**PyPI package:** `sol-trade-sdk==0.1.2`\n\nThis release refreshes PumpFun V2 and USDC quote-pool handling, keeps the default RPC submit lane active alongside SWQoS lanes, and aligns Raydium CPMM fixed-output swaps with the on-chain `swap_base_out` instruction. Trade execution requires a caller-supplied `recent_blockhash` or durable nonce; hot-path execution does not query RPC for blockhash, account, or balance data.\n\n## ✨ Features\n\n1. **PumpFun Trading**: Unified `buy`, `sell`, and `buy_exact_quote_in` flow with automatic legacy or V2 instruction selection for SOL and USDC quote pools\n2. **PumpSwap Trading**: Support for PumpSwap pool trading operations\n3. **Bonk Trading**: Support for Bonk trading operations\n4. **Raydium CPMM Trading**: Support for Raydium CPMM (Concentrated Pool Market Maker) trading operations\n5. **Raydium AMM V4 Trading**: Support for Raydium AMM V4 (Automated Market Maker) trading operations\n6. **Meteora DAMM V2 Trading**: Support for Meteora DAMM V2 (Dynamic AMM) trading operations\n7. **Multiple MEV Protection**: Support for Jito, Nextblock, ZeroSlot, Temporal, Bloxroute, FlashBlock, BlockRazor, Node1, Astralane and other services\n8. **Concurrent Trading**: Submit through every configured SWQoS provider plus the default RPC lane; the first accepted result can return early while slower routes continue submitting\n9. **Unified Trading Interface**: Use unified trading protocol types for trading operations\n10. **Middleware System**: Support for custom instruction middleware to modify, add, or remove instructions before transaction execution\n11. **Shared Infrastructure**: Share expensive RPC and SWQoS clients across multiple wallets for reduced resource usage\n12. **Hot-Path RPC Boundary**: Trade execution uses caller-supplied blockhash or durable nonce and never queries RPC for blockhash, account, or balance data\n\n## 📦 Installation\n\n### Direct Clone (Recommended)\n\nClone this project to your project directory:\n\n```bash\ncd your_project_root_directory\ngit clone https://github.com/0xfnzero/sol-trade-sdk-python\n```\n\nInstall dependencies:\n\n```bash\ncd sol-trade-sdk-python\npip install -e .\n```\n\nOr add to your `requirements.txt`:\n\n```\nsol-trade-sdk @ ./sol-trade-sdk-python\n```\n\nOr add to your `pyproject.toml`:\n\n```toml\n[project]\ndependencies = [\n    \"sol-trade-sdk @ ./sol-trade-sdk-python\",\n]\n```\n\n### Use PyPI\n\n```bash\npip install sol-trade-sdk==0.1.2\n```\n\n## 🛠️ Usage Examples\n\n### 📋 Example Usage\n\n#### 1. Create TradingClient Instance\n\nYou can refer to [Example: Create TradingClient Instance](examples/trading_client.py).\n\n**Method 1: Simple (single wallet)**\n```python\nimport asyncio\nfrom sol_trade_sdk import TradingClient, TradeConfig, SwqosConfig, SwqosRegion\n\nasync def main():\n    # Wallet\n    payer = Keypair.from_secret_key(/* your keypair */)\n    \n    # RPC URL\n    rpc_url = \"https://mainnet.helius-rpc.com/?api-key=xxxxxx\"\n    \n    # Multiple SWQoS services can be configured\n    swqos_configs = [\n        SwqosConfig(type=\"Default\", rpc_url=rpc_url),\n        SwqosConfig(type=\"Jito\", uuid=\"your_uuid\", region=SwqosRegion.FRANKFURT),\n        SwqosConfig(type=\"Bloxroute\", api_token=\"your_api_token\", region=SwqosRegion.FRANKFURT),\n        SwqosConfig(type=\"Astralane\", api_key=\"your_api_key\", region=SwqosRegion.FRANKFURT),\n    ]\n    \n    # Create TradeConfig instance\n    trade_config = TradeConfig(rpc_url, swqos_configs)\n    \n    # Create TradingClient\n    client = TradingClient(payer, trade_config)\n\nasyncio.run(main())\n```\n\n**Method 2: Shared infrastructure (multiple wallets)**\n\nFor multi-wallet scenarios, create the infrastructure once and share it across wallets.\nSee [Example: Shared Infrastructure](examples/shared_infrastructure.py).\n\n```python\nfrom sol_trade_sdk import TradingInfrastructure, InfrastructureConfig\n\n# Create infrastructure once (expensive)\ninfra_config = InfrastructureConfig(rpc_url, swqos_configs)\ninfrastructure = TradingInfrastructure(infra_config)\n\n# Create multiple clients sharing the same infrastructure (fast)\nclient1 = TradingClient.from_infrastructure(payer1, infrastructure)\nclient2 = TradingClient.from_infrastructure(payer2, infrastructure)\n```\n\n#### 2. Configure Gas Fee Strategy\n\n```python\nfrom sol_trade_sdk import GasFeeStrategy\n\n# Create GasFeeStrategy instance\ngas_fee_strategy = GasFeeStrategy()\n# Set global strategy\ngas_fee_strategy.set_global_fee_strategy(150000, 150000, 500000, 500000, 0.001, 0.001)\n```\n\n#### 3. Build Trading Parameters\n\n```python\nfrom sol_trade_sdk import TradeBuyParams, DexType, TradeTokenType\n\nbuy_params = TradeBuyParams(\n    dex_type=DexType.PUMPSWAP,\n    input_token_type=TradeTokenType.WSOL,\n    mint=mint_pubkey,\n    input_token_amount=buy_sol_amount,\n    slippage_basis_points=500,\n    recent_blockhash=recent_blockhash,\n    # Use extension_params for protocol-specific parameters\n    extension_params={\"type\": \"PumpSwap\", \"params\": pumpswap_params},\n    address_lookup_table_account=None,\n    wait_transaction_confirmed=True,\n    create_input_token_ata=True,\n    close_input_token_ata=True,\n    create_mint_ata=True,\n    durable_nonce=None,\n    fixed_output_token_amount=None,\n    gas_fee_strategy=gas_fee_strategy,\n    simulate=False,\n)\n```\n\n#### 4. Execute Trading\n\n```python\nresult = await client.buy(buy_params)\nprint(f\"Transaction signature: {result.signature}\")\n```\n\n### ⚡ Trading Parameters\n\nFor comprehensive information about all trading parameters including `TradeBuyParams` and `TradeSellParams`, see the Trading Parameters documentation.\n\n#### About ShredStream\n\nWhen using shred to subscribe to events, due to the nature of shreds, you cannot get complete information about transaction events.\nPlease ensure that the parameters your trading logic depends on are available in shreds when using them.\n\n### 📊 Usage Examples Summary Table\n\n| Description | Run Command | Source Code |\n|-------------|-------------|-------------|\n| Create and configure TradingClient instance | `python examples/trading_client.py` | [examples/trading_client.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/trading_client.py) |\n| Share infrastructure across multiple wallets | `python examples/shared_infrastructure.py` | [examples/shared_infrastructure.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/shared_infrastructure.py) |\n| PumpFun token sniping trading | `python examples/pumpfun_sniper_trading.py` | [examples/pumpfun_sniper_trading.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/pumpfun_sniper_trading.py) |\n| PumpFun token copy trading | `python examples/pumpfun_copy_trading.py` | [examples/pumpfun_copy_trading.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/pumpfun_copy_trading.py) |\n| PumpSwap trading operations | `python examples/pumpswap_trading.py` | [examples/pumpswap_trading.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/pumpswap_trading.py) |\n| PumpSwap direct trading (via RPC) | `python examples/pumpswap_direct_trading.py` | [examples/pumpswap_direct_trading.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/pumpswap_direct_trading.py) |\n| Raydium CPMM trading operations | `python examples/raydium_cpmm_trading.py` | [examples/raydium_cpmm_trading.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/raydium_cpmm_trading.py) |\n| Raydium AMM V4 trading operations | `python examples/raydium_amm_v4_trading.py` | [examples/raydium_amm_v4_trading.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/raydium_amm_v4_trading.py) |\n| Meteora DAMM V2 trading operations | `python examples/meteora_damm_v2_trading.py` | [examples/meteora_damm_v2_trading.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/meteora_damm_v2_trading.py) |\n| Bonk token sniping trading | `python examples/bonk_sniper_trading.py` | [examples/bonk_sniper_trading.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/bonk_sniper_trading.py) |\n| Bonk token copy trading | `python examples/bonk_copy_trading.py` | [examples/bonk_copy_trading.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/bonk_copy_trading.py) |\n| Custom instruction middleware example | `python examples/middleware_system.py` | [examples/middleware_system.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/middleware_system.py) |\n| Address lookup table example | `python examples/address_lookup.py` | [examples/address_lookup.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/address_lookup.py) |\n| Nonce cache (durable nonce) example | `python examples/nonce_cache.py` | [examples/nonce_cache.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/nonce_cache.py) |\n| Wrap/unwrap SOL to/from WSOL example | `python examples/wsol_wrapper.py` | [examples/wsol_wrapper.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/wsol_wrapper.py) |\n| Seed trading example | `python examples/seed_trading.py` | [examples/seed_trading.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/seed_trading.py) |\n| Gas fee strategy example | `python examples/gas_fee_strategy.py` | [examples/gas_fee_strategy.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/gas_fee_strategy.py) |\n| Hot path trading (zero-RPC) | `python examples/hot_path_trading.py` | [examples/hot_path_trading.py](https://github.com/0xfnzero/sol-trade-sdk-python/blob/main/examples/hot_path_trading.py) |\n\n### ⚙️ SWQoS Service Configuration\n\nWhen configuring SWQoS services, note the different parameter requirements for each service:\n\n- **Jito**: The first parameter is UUID (if no UUID, pass an empty string `\"\"`)\n- **Other MEV services**: The first parameter is the API Token\n\n#### Custom URL Support\n\nEach SWQoS service supports an optional custom URL parameter:\n\n```python\n# Using custom URL\njito_config = SwqosConfig(\n    type=\"Jito\",\n    uuid=\"your_uuid\",\n    region=SwqosRegion.FRANKFURT,\n    custom_url=\"https://custom-jito-endpoint.com\"\n)\n\n# Using default regional endpoint\nbloxroute_config = SwqosConfig(\n    type=\"Bloxroute\",\n    api_token=\"your_api_token\",\n    region=SwqosRegion.NEW_YORK\n)\n```\n\n**URL Priority Logic**:\n- If a custom URL is provided, it will be used instead of the regional endpoint\n- If no custom URL is provided, the system will use the default endpoint for the specified region\n- This allows for maximum flexibility while maintaining backward compatibility\n\nWhen using multiple MEV services, you need to use `Durable Nonce`. You need to use the `fetch_nonce_info` function to get the latest `nonce` value, and use it as the `durable_nonce` when trading.\n\n---\n\n### 🔧 Middleware System\n\nThe SDK provides a powerful middleware system that allows you to modify, add, or remove instructions before transaction execution. Middleware executes in the order they are added:\n\n```python\nfrom sol_trade_sdk import MiddlewareManager\n\nmanager = MiddlewareManager() \\\n    .add_middleware(FirstMiddleware()) \\\n    .add_middleware(SecondMiddleware()) \\\n    .add_middleware(ThirdMiddleware())\n```\n\n### 🔍 Address Lookup Tables\n\nAddress Lookup Tables (ALT) allow you to optimize transaction size and reduce fees by storing frequently used addresses in a compact table format.\n\n```python\nfrom sol_trade_sdk import fetch_address_lookup_table_account, AddressLookupTableCache\n\n# Fetch ALT from chain\nalt = await fetch_address_lookup_table_account(rpc, alt_address)\nprint(f\"ALT contains {len(alt.addresses)} addresses\")\n\n# Use cache for performance\ncache = AddressLookupTableCache(rpc)\nawait cache.prefetch([alt_address1, alt_address2, alt_address3])\ncached = cache.get(alt_address1)\n```\n\n### 🔍 Durable Nonce\n\nUse Durable Nonce to implement transaction replay protection and optimize transaction processing.\n\n```python\nfrom sol_trade_sdk import fetch_nonce_info, NonceCache\n\n# Fetch nonce info\nnonce_info = await fetch_nonce_info(rpc, nonce_account)\n```\n\n## 💰 Cashback Support (PumpFun / PumpSwap)\n\nPumpFun and PumpSwap support **cashback** for eligible tokens: part of the trading fee can be returned to the user. The SDK **must know** whether the token has cashback enabled so that buy/sell instructions include the correct accounts.\n\n- **When params come from RPC**: If you use `PumpFunParams.from_mint_by_rpc` or `PumpSwapParams.from_pool_address_by_rpc`, the SDK reads `is_cashback_coin` from chain—no extra step.\n- **When params come from event/parser**: If you build params from trade events (e.g. [sol-parser-sdk](https://github.com/0xfnzero/sol-parser-sdk)), you **must** pass the cashback flag into the SDK:\n  - **PumpFun**: Set `is_cashback_coin` when building params from parsed events.\n  - **PumpSwap**: Set `is_cashback_coin` field when constructing params manually.\n\n## 🛡️ MEV Protection Services\n\nYou can apply for a key through the official website: [Community Website](https://fnzero.dev/swqos)\n\n- **Jito**: High-performance block space\n- **ZeroSlot**: Zero-latency transactions\n- **Temporal**: Time-sensitive transactions\n- **Bloxroute**: Blockchain network acceleration\n- **FlashBlock**: High-speed transaction execution with API key authentication\n- **BlockRazor**: High-speed transaction execution with API key authentication\n- **Node1**: High-speed transaction execution with API key authentication\n- **Astralane**: Blockchain network acceleration\n\n## 📁 Project Structure\n\n```\nsrc/\n├── common/           # Common functionality and tools\n├── constants/        # Constant definitions\n├── instruction/      # Instruction building\n│   └── utils/        # Instruction utilities\n├── swqos/            # MEV service clients\n├── trading/          # Unified trading engine\n│   ├── common/       # Common trading tools\n│   ├── core/         # Core trading engine\n│   ├── middleware/   # Middleware system\n│   └── factory.py    # Trading factory\n├── utils/            # Utility functions\n│   ├── calc/         # Amount calculation utilities\n│   └── price/        # Price calculation utilities\n└── __init__.py       # Main library file\n```\n\n## 📄 License\n\nMIT License\n\n## 💬 Contact\n\n- Official Website: https://fnzero.dev/\n- Project Repository: https://github.com/0xfnzero/sol-trade-sdk-python\n- Telegram Group: https://t.me/fnzero_group\n- Discord: https://discord.gg/vuazbGkqQE\n\n## ⚠️ Important Notes\n\n1. Test thoroughly before using on mainnet\n2. Properly configure private keys and API tokens\n3. Pay attention to slippage settings to avoid transaction failures\n4. Monitor balances and transaction fees\n5. Comply with relevant laws and regulations\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xfnzero%2Fsol-trade-sdk-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xfnzero%2Fsol-trade-sdk-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xfnzero%2Fsol-trade-sdk-python/lists"}