The Python SDK is coming soon. In the meantime, you can use the REST API directly with httpx or requests.
Preview
from arbiter import ArbiterClient
client = ArbiterClient(api_key="YOUR_API_KEY")
# List markets
markets = client.markets.list(limit=10)
# Get orderbook
book = client.markets.orderbook("poly_0x24fb...")
# Get trades
trades = client.markets.trades("poly_0x24fb...", limit=50)
Use the REST API Today
import httpx
client = httpx.Client(
base_url="https://api.arbiterapi.com",
headers={"X-API-Key": "YOUR_API_KEY"},
)
# List markets
markets = client.get("/v1/markets", params={"limit": 10}).json()
# Get orderbook
book = client.get("/v1/markets/poly_0x24fb.../orderbook").json()
# Get OHLCV candles
candles = client.get("/v1/markets/poly_0x24fb.../candles", params={
"interval": "1h",
"start_ts": 1774300000,
}).json()