AxiomTradeAPI

AxiomTradeAPI-py

A Python SDK for Solana trading on Axiom Trade — wallet balance queries, real-time token monitoring over WebSocket, and automated trading (buy/sell) built on the PumpPortal trading API.

Quick Start

pip install axiomtradeapi
from axiomtradeapi import AxiomTradeClient

client = AxiomTradeClient()

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

async def monitor_tokens():
    client = AxiomTradeClient(auth_token="your-token")

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

    await client.subscribe_new_tokens(handle_new_tokens)
    await client.ws.start()

asyncio.run(monitor_tokens())

Where to Go Next

  • Getting Started — a full 30-minute tutorial from install to a working trading bot.
  • Installation — detailed setup, Docker, and troubleshooting.
  • Authentication — token-based login, automatic refresh, and secure token storage.
  • Guides — balance queries, holder/transaction/position data, buying and selling tokens, building trading bots, WebSocket streaming, trending tokens, and performance tuning.
  • API Reference — the full SDK class/method reference and the endpoints attribute used to build request URLs.
  • Project Notes — changelog, security guidance, troubleshooting, and error-handling patterns.

Trading Risk Warning

Cryptocurrency trading involves substantial risk of loss. Never trade with funds you can’t afford to lose. This SDK provides tools, not trading advice — always secure your API keys and private keys, and never commit them to version control.

This project is licensed under the MIT License. Source: GitHub.