
Python SDK
This is the public Kuest source repository for the white-label unified Python SDK. The package and imports remain neutral so operator distributions can carry their own identity.
The SDK combines market discovery, CLOB data and orders, and Deposit Wallet relayer workflows on Polygon. It adapts the upstream unified SDK for Kuest's deployed contracts and APIs. Live trading has not been verified.
Supported scope
- Polygon mainnet (chain ID 137), Circle USDC, Conditional Tokens, and the configured CTF and Neg Risk exchanges.
- Orders use EIP-712
CTF Exchangeversion2, a verified Deposit Wallet as maker and signer, signature type3, and a CLOB API key as the order owner. - Relayer submissions use builder credentials and
WALLETorWALLET-CREATEpayloads. Nonce and transaction reads use/nonceand/transaction. - Standard and NegRisk CTF split, merge, and redeem use the deployed Conditional Tokens and NegRiskAdapter contracts. NegRisk redeem uses the adapter's YES/NO amount ABI. These calls require the caller's relevant USDC allowance or CTF operator approval; trading approvals for the exchanges do not grant those permissions.
- RFQ is intentionally disabled for this product, including the ordinary RFQ supported by the CLOB backend. Specialized session-key management and upstream protocol V2 Router position operations reject locally.
- Position-backed V3 orders, combo RFQ, collateral return, and Safe/Proxy relayer submissions fail locally. Perps, realtime, sports, bridge, and other upstream-only services are not configured.
- Builder-attributed trade listing fails locally because the current CLOB ignores
builder_code; see COMPATIBILITY.md. - All network endpoints default to
unconfigured.invalid. An integrator must supply approved HTTPS/WSS service URLs and a Polygon RPC URL explicitly.
For a direct GitHub checkout, supply endpoint configuration explicitly. An operator ZIP
may include .sdk/site-config.json with the existing site_url, builder_mode,
geoblock, builder_code, and order_metadata fields. That file supplies operator
attribution and site checks without changing the public package name. It must contain
no private keys. A nonempty configured builder code takes precedence over a per-order
builder code, including the zero bytes32 value, which means no attribution.
builder_mode=true requires a nonzero code. Market discovery uses the configured site's active event list.
The source distribution is named kuest-sdk; Python imports remain market_sdk.
The distribution is published as kuest-sdk. Install it with pip install kuest-sdk and import it as market_sdk.
Read-only example
import os
from market_sdk import PublicClient, configured_environment
environment = configured_environment(
clob_url=os.environ["SDK_CLOB_URL"],
clob_ws_url=os.environ["SDK_CLOB_WS_URL"],
relayer_url=os.environ["SDK_RELAYER_URL"],
gamma_url=os.environ["SDK_GAMMA_URL"],
data_url=os.environ["SDK_DATA_URL"],
rpc_url=os.environ["SDK_RPC_URL"],
)
with PublicClient(environment=environment) as client:
book = client.get_order_book(token_id=os.environ["SDK_TOKEN_ID"])
print(book)
Wallet deployment requires separate builder credentials. No live order or transaction tests have been run.
Origin and license
Imported from Polymarket/py-sdk at commit 860ac384931ea55ed08a92219c9d27c02f6966cf. See UPSTREAM.md. Original copyright and MIT terms remain in LICENSE.
Kuest Engineering adapted the upstream code for the verified service API, contracts, and operator packaging.
Metadata
Release files for kuest-sdk 0.13.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kuest_sdk-0.13.1.tar.gz | 445.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kuest_sdk-0.13.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 868.2 kB
Release files / kuest_sdk-0.13.1.tar.gz
| Download URL | kuest_sdk-0.13.1.tar.gz |
|---|---|
| Size | 445.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69d79386471cfb9612b75c6ad90fb35e39484b33583250022a7f5c739c0e47d9
|
|
BLAKE2b-256 checksum How to use checksums |
924288c40bf0b57b5f0c126d74d7a84d253f1cf365017e75a1a6b9ca35968b3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logRelease files / kuest_sdk-0.13.1-py3-none-any.whl
| Download URL | kuest_sdk-0.13.1-py3-none-any.whl |
|---|---|
| Size | 422.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62a6ea4c803b106da9c939933c4d96057f3dc3c7f8ba02bfbf0284282395f303
|
|
BLAKE2b-256 checksum How to use checksums |
bc57a464c8eac715408ce1e04084eedb4b0a223a18cde82f253035ccc646d3bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logSecurity for kuest-sdk 0.13.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for kuest_sdk-0.13.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logA 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.