Skip to main content

Python SDK

A native Python SDK for 0xRadar is in development. Until it publishes, use httpx (or requests) directly — the examples below cover every available endpoint with both sync and async patterns.

Installation

Setup

Endpoints

get_balances — single-chain token balances

get_portfolio — multi-chain aggregation

get_positions — DeFi lending + LP positions

get_token_risk — token security screening

get_solana_balance — Solana convenience wrapper

Async variants

All endpoints work identically with httpx.AsyncClient:
Star 0xradarapp/sdk-python on GitHub to get notified when the official SDK ships.