Python Builder Relayer Client

raw JSON →
0.0.1 verified Mon Apr 27 auth: no python

Python SDK for signing orders with Polymarket's builder relayer network. Current version 0.0.1, early-stage development with basic signing functionality.

pip install py-builder-relayer-client
error ImportError: No module named 'builder_relayer_client'
cause Incorrect import path or package not installed.
fix
Install package: pip install py-builder-relayer-client. Then import: from builder_relayer_client import BuilderRelayerClient.
error AttributeError: 'BuilderRelayerClient' object has no attribute 'sign_order'
cause Outdated client version or method not yet implemented.
fix
Upgrade to latest version: pip install --upgrade py-builder-relayer-client. Check documentation for available methods.
gotcha The package is in very early stage (v0.0.1). API may change without notice. Pin to exact version in production.
fix Use `pip install py-builder-relayer-client==0.0.1` and expect breaking changes.
gotcha The client requires a builder relayer API key. Without it, signing calls may fail with authentication errors.
fix Set environment variable `BUILDER_RELAYER_API_KEY` or pass it directly to the constructor.

Initialize client with API key and sign an order.

import os
from builder_relayer_client import BuilderRelayerClient

api_key = os.environ.get('BUILDER_RELAYER_API_KEY', '')
client = BuilderRelayerClient(api_key=api_key)
# Example: sign an order
order_payload = {'type': 'BUY', 'amount': 100}
signed_order = client.sign_order(order_payload)
print(signed_order)