Complete setup instructions for AxiomTradeAPI-py
# Install the latest stable version
pip install axiomtradeapi
# Verify installation
python -c "from axiomtradeapi import AxiomTradeClient; print('✅ Installation successful!')"# For developers who want to contribute
pip install axiomtradeapi[dev]
# This includes additional tools for:
# - Testing frameworks (pytest)
# - Code formatting (black, isort)
# - Documentation generation (sphinx)Virtual environments isolate your project dependencies, preventing conflicts between different projects and keeping your system Python clean.
# Create project directory
mkdir my-solana-bot
cd my-solana-bot
# Create virtual environment
python -m venv venv
# Activate virtual environment
venv\Scripts\activate
# Install AxiomTradeAPI-py
pip install axiomtradeapi
# Verify installation
python -c "from axiomtradeapi import AxiomTradeClient; print('🎉 Ready to build!')"# Create project directory
mkdir my-solana-bot
cd my-solana-bot
# Create virtual environment
python3 -m venv venv
# Activate virtual environment
source venv/bin/activate
# Install AxiomTradeAPI-py
pip install axiomtradeapi
# Verify installation
python -c "from axiomtradeapi import AxiomTradeClient; print('🎉 Ready to build!')"Perfect for production deployments and containerized trading systems.
# Dockerfile for Solana trading bot
FROM python:3.11-slim
WORKDIR /app
# Install AxiomTradeAPI-py
RUN pip install --no-cache-dir axiomtradeapi
# Copy your trading bot code
COPY . .
# Run your trading bot
CMD ["python", "your_trading_bot.py"]# Build Docker image
docker build -t my-solana-bot .
# Run container
docker run -d --name solana-bot my-solana-bot
# View logs
docker logs -f solana-bot
# Stop container
docker stop solana-botversion: '3.8'
services:
trading-bot:
build: .
environment:
- AXIOM_AUTH_TOKEN=${AXIOM_AUTH_TOKEN}
- AXIOM_REFRESH_TOKEN=${AXIOM_REFRESH_TOKEN}
restart: unless-stopped
volumes:
- ./logs:/app/logs
networks:
- solana-network
networks:
solana-network:
driver: bridgeSolution: Install or upgrade pip
# Download get-pip.py
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
# Install pip
python get-pip.pySolution: Use --user flag or virtual environment
# Install for current user only
pip install --user axiomtradeapi
# OR: Use virtual environment (recommended)
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install axiomtradeapiSolution: Ensure you're using the correct Python interpreter
# Check which Python is being used
which python # macOS/Linux
where python # Windows
# Install using the specific Python version
python3.11 -m pip install axiomtradeapiSolution: Update certificates or use trusted host
# Update certificates (macOS)
/Applications/Python\ 3.x/Install\ Certificates.command
# Use trusted host (temporary workaround)
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org axiomtradeapi• Join our Discord community for installation support
• Check the troubleshooting guide for more solutions
• Report issues on GitHub