Installation Guide
Complete step-by-step installation guide for AxiomTradeAPI-py, the leading Python SDK for Solana trading bot development.
System Requirements
Python Version
Python 3.8 or higher
Operating System
Windows 10+, macOS 10.15+, or Linux (Ubuntu 18.04+)
Memory
At least 4GB RAM
Internet Connection
Stable connection required
Quick Installation
Virtual Environment Setup (Best Practice)
Virtual environments isolate your project dependencies, preventing conflicts between different projects and ensuring reproducible deployments.
Create Virtual Environment
python -m venv axiom_trading_env
Activate Environment
axiom_trading_env\Scripts\activate
source axiom_trading_env/bin/activate
source axiom_trading_env/bin/activate
Install AxiomTradeAPI-py
pip install axiomtradeapi
Docker Installation
Perfect for production deployments, cloud environments, and containerized trading systems.
Simple Dockerfile
FROM python:3.11-slim
WORKDIR /app
# Install AxiomTradeAPI-py
RUN pip install axiomtradeapi
# Copy your trading bot code
COPY . .
# Run your trading bot
CMD ["python", "your_trading_bot.py"]
Build and Run
# Build your container
docker build -t my-solana-bot .
# Run your trading bot
docker run -d --name solana-bot my-solana-bot
# View logs
docker logs solana-bot
Installation Verification
Quick Test
python -c "from axiomtradeapi import AxiomTradeClient; print('✅ Installation successful!')"
Complete Test Script
import sys
def test_installation():
try:
from axiomtradeapi import AxiomTradeClient
print("✅ AxiomTradeAPI-py imported successfully")
client = AxiomTradeClient()
print("✅ Client created successfully")
print(f"✅ Python version: {sys.version}")
print("🎉 Installation verification complete!")
except ImportError as e:
print(f"❌ Import error: {e}")
print("Please check your installation")
except Exception as e:
print(f"❌ Unexpected error: {e}")
if __name__ == "__main__":
test_installation()
Common Issues & Solutions
"No module named 'axiomtradeapi'"
Problem: Python cannot find the installed package.
Solution 1: Verify Installation
pip list | grep axiomtradeapi
Solution 2: Reinstall Package
pip uninstall axiomtradeapi
pip install axiomtradeapi
Permission Denied Error
Problem: Insufficient permissions to install packages.
Solution: User Installation
pip install --user axiomtradeapi
Python Version Not Supported
Problem: Using Python version older than 3.8.
Solution: Update Python
Download and install Python 3.8+ from python.org