Installation
Copy
Ask AI
pip install arbiter-sdk
Usage
Copy
Ask AI
from arbiter import ArbiterClient
client = ArbiterClient(api_key="YOUR_API_KEY")
# List markets
markets = client.markets.list(limit=10)
# Search markets
results = client.markets.search("world cup", min_volume=100000)
# Get market details
market = client.markets.get("poly_0x24fb...")
# Get current price
price = client.markets.price("poly_0x24fb...")
# Get historical price
price = client.markets.price("poly_0x24fb...", at_time=1774300000)
# Get orderbook
book = client.markets.orderbook("poly_0x24fb...")
# Get trades
trades = client.markets.trades("poly_0x24fb...", limit=50)
# Get OHLCV candles
import time
candles = client.markets.candles(
"poly_0x24fb...",
interval="1h",
start_ts=int(time.time()) - 86400,
)
# List events
events = client.events.list(limit=10)
# Get event detail
event = client.events.get("2026-fifa-world-cup-winner-595")
Configuration
Copy
Ask AI
client = ArbiterClient(
api_key="YOUR_API_KEY",
base_url="https://api.arbiterapi.com", # default
)