Production Ready Python 3.8+ Real-time

Professional Python SDK for Solana Trading

Build advanced trading bots, monitor portfolios, and automate Solana DeFi strategies with enterprise-grade reliability and sub-millisecond WebSocket updates.

< 10ms
WebSocket Latency
99.9%
Uptime
1000+
Batch Operations
pip install axiomtradeapi

Powerful Features for Professional Trading

Everything you need to build sophisticated Solana trading applications

Real-time WebSocket

Sub-millisecond token updates with automatic reconnection and heartbeat monitoring

< 10ms latency

Portfolio Tracking

Multi-wallet balance monitoring with batch operations for up to 1000 addresses

1000+ wallets/request

Trading Automation

Advanced bot frameworks with built-in risk management and position sizing

Enterprise-grade

Enterprise Security

Production-grade authentication with automatic token refresh and validation

JWT authentication

Market Data

Comprehensive Solana market information with price feeds and volume analysis

Real-time data

Batch Operations

Efficient bulk operations with automatic batching and connection pooling

High performance

Get Started in Minutes

From installation to your first trading bot in just a few steps

Installation
pip install axiomtradeapi

System Requirements

  • Python 3.8 or higher
  • Windows 10+, macOS 10.15+, or Linux (Ubuntu 18.04+)
  • At least 4GB RAM
  • Stable internet connection
Basic Balance Query
from axiomtradeapi import AxiomTradeClient

# Initialize client
client = AxiomTradeClient()

# Get wallet balance
balance = client.GetBalance("BJBgjyDZx5FSsyJf6bFKVXuJV7DZY9PCSMSi5d9tcEVh")
print(f"Balance: {balance['sol']} SOL")

Response Format

{
  "sol": 1.234567890,
  "lamports": 1234567890,
  "slot": 344031778
}
Real-time Token Monitoring
import asyncio

async def handle_new_tokens(tokens):
    for token in tokens:
        print(f"New token: {token['tokenName']}")

async def monitor():
    client = AxiomTradeClient(auth_token="your-token")
    await client.subscribe_new_tokens(handle_new_tokens)
    await client.ws.start()

asyncio.run(monitor())

Authentication Required

WebSocket features require authentication tokens. Get them from your browser after logging into axiom.trade.

Simple Trading Bot
class TokenSniperBot:
    def __init__(self):
        self.client = AxiomTradeClient(auth_token="...")
        self.min_liquidity = 10.0  # SOL
        
    async def analyze_token(self, token_data):
        if token_data['liquiditySol'] > self.min_liquidity:
            print(f"🎯 Opportunity: {token_data['tokenName']}")
            return await self.execute_trade(token_data)
    
    async def execute_trade(self, token):
        # Your trading logic here
        pass

Bot Features

  • Real-time token analysis
  • Risk management
  • Position sizing
  • Automated execution

Complete Documentation

Comprehensive guides and tutorials for every skill level

API Reference

Complete documentation for all classes, methods, and functions

AxiomTradeClient

The main client class for interacting with the Axiom Trade API.

GetBalance(wallet_address)

Method

Retrieve the SOL balance for a specific wallet address.

Example
balance = client.GetBalance("BJBgjyDZx5FSsyJf6bFKVXuJV7DZY9PCSMSi5d9tcEVh")
Parameters
wallet_address str Valid Solana wallet address (44 characters)
Returns
{
  "sol": 1.234567890,
  "lamports": 1234567890,
  "slot": 344031778
}

GetBatchedBalance(wallet_addresses)

Method

Retrieve balances for multiple wallet addresses in a single request.

Example
addresses = ["wallet1", "wallet2"]
balances = client.GetBatchedBalance(addresses)
Parameters
wallet_addresses List[str] List of wallet addresses (max 1000)

WebSocket Client

Dedicated WebSocket client for real-time data streaming.

subscribe_new_tokens(callback)

Async Method

Subscribe to real-time new token launches via WebSocket.

Example
async def handle_tokens(tokens):
    print(f"New tokens: {len(tokens)}")

await client.subscribe_new_tokens(handle_tokens)

Authentication

Authentication helper class for managing API tokens.

refresh_tokens(refresh_token)

Async Method

Refresh authentication tokens using refresh token.

Exceptions

Exception classes for error handling.

APIError

Base exception class for API-related errors.

NetworkError

Exception raised for network connectivity issues.

AuthenticationError

Exception raised for authentication failures.

Code Examples

Real-world examples and use cases for different trading scenarios

Portfolio Tracker

Beginner

Monitor multiple wallets and track portfolio performance with real-time balance updates.

Multi-wallet Real-time Analytics
Download

Token Sniper Bot

Intermediate

Detect new token launches and analyze them for trading opportunities with customizable filters.

WebSocket Filters Automation
Download

Arbitrage Scanner

Advanced

Scan for arbitrage opportunities across different DEXs with profit calculation and execution.

Multi-DEX Profit calc Risk mgmt
Download

Join Our Community

Connect with developers, share strategies, and get support

Discord Server

Join our active Discord community for real-time help, strategy discussions, and announcements.

1,500+ Members 24/7 Support
Join Discord

GitHub Repository

Contribute to the project, report issues, and access the latest source code and examples.

500+ Stars Open Source
View on GitHub

Professional Services

Need custom trading solutions? Our expert team can build tailored bots and integrations.

Expert Team Fast Delivery
Get Help