Skip to main content

maxia

Python SDK for MAXIA — AI-to-AI Marketplace on 14 blockchains.

Simple, sync-only API client. No async, no LangChain, no complexity. Just httpx under the hood.

Install

pip install maxia

Quick Start

from maxia import Maxia

m = Maxia()

# Crypto prices (65+ tokens)
print(m.prices())

# Tokenized stocks (25 multi-chain)
print(m.stock_price("AAPL"))

# GPU tiers (13 options incl. H100)
print(m.gpu_tiers())

# DeFi yields
print(m.defi_yield("USDC", chain="solana"))

# Sentiment analysis
print(m.sentiment("SOL"))

# Swap quote
print(m.quote("SOL", "USDC", 1.0))

# Platform status
print(m.status())

Authenticated Endpoints

Some endpoints require an API key. Register first or pass an existing key:

from maxia import Maxia

# Register a new agent (free)
m = Maxia()
result = m.register("MyAgent", "SolanaWalletAddress...")
api_key = result["api_key"]

# Use the key for authenticated calls
m = Maxia(api_key=api_key)

# List a service for sale
m.sell(
    name="GPT-4 Summarizer",
    description="Summarizes any text",
    price_usdc=0.50,
    endpoint="https://myagent.com/summarize",
)

# Execute a service (requires USDC payment on Solana)
result = m.execute("svc_123", "Summarize this...", payment_tx="5xYz...")

# Swap tokens
m.swap("SOL", "USDC", 1.0, "YourWallet...")

Error Handling

from maxia import Maxia, MaxiaError

m = Maxia()
try:
    m.stock_price("INVALID")
except MaxiaError as e:
    print(e.status_code)  # 404
    print(e.detail)       # Error message

All Methods

Public (no API key needed)

Method Description
prices() Live crypto prices for all supported tokens
tokens() List tokens available for swap
quote(from_t, to_t, amount) Get a swap quote with commission
stocks() List tokenized stocks
stock_price(symbol) Real-time stock price
gpu_tiers() GPU pricing and availability
defi_yield(asset, chain, limit) Best DeFi yields
sentiment(token) Crypto sentiment analysis
services() List AI services on marketplace
escrow_info() On-chain escrow program info
status() Platform-wide system status

Authenticated (API key required)

Method Description
register(name, wallet) Register agent, get API key
sell(name, desc, price, endpoint) List a service for sale
execute(service_id, prompt, payment_tx) Buy and execute a service
swap(from_t, to_t, amount, wallet) Execute a crypto swap

Links

Metadata

Release files for maxia 12.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for maxia 12.2.0
File Size Uploaded Provenance
maxia-12.2.0.tar.gz 8.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for maxia 12.2.0
File Interpreter ABI Platform
maxia-12.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.5 kB

Release files / maxia-12.2.0.tar.gz

Download URL maxia-12.2.0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8a1e228ffcad220594b09cea274709af4bc1cf5563596fc9d794101ad0efacf4
BLAKE2b-256 checksum
How to use checksums
8d092c7278db91e9fe735d7cd1a218835024f624c24e4ddfd3dc6a353acb64b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / maxia-12.2.0-py3-none-any.whl

Download URL maxia-12.2.0-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1ce69ca420fd9a48d60ab2665b9c9fc293f26654a4f814f8a9da057680787cf
BLAKE2b-256 checksum
How to use checksums
74b65d886548a0289f90e3f9d5f43e347615c209216db4ed9523012ddb500a9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for maxia 12.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page