Skip to main content

Kuest
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 Exchange version 2, a verified Deposit Wallet as maker and signer, signature type 3, and a CLOB API key as the order owner.
  • Relayer submissions use builder credentials and WALLET or WALLET-CREATE payloads. Nonce and transaction reads use /nonce and /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.14.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kuest-sdk 0.14.1
File Size Uploaded Provenance
kuest_sdk-0.14.1.tar.gz 445.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for kuest-sdk 0.14.1
File Interpreter ABI Platform
kuest_sdk-0.14.1-py3-none-any.whl Python 3 none any Details

Total release size: 868.3 kB

Release files / kuest_sdk-0.14.1.tar.gz

Download URL kuest_sdk-0.14.1.tar.gz
Size 445.3 kB
Tags Source
SHA-256 checksum
How to use checksums
81e00719032d37798cd589275ab728baeb8df6009e492c352ebcf90eda8dc0ef
BLAKE2b-256 checksum
How to use checksums
80ffef1da41518a8facd50bd3fa541739a7c8f8def5ff0c2bc64d5b10425951c
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 22, 2026.

Transparency log

Release files / kuest_sdk-0.14.1-py3-none-any.whl

Download URL kuest_sdk-0.14.1-py3-none-any.whl
Size 423.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d6d05c32664449e1dd4b9526e6b092b80babb23c62d1d219ac112178c0c1433
BLAKE2b-256 checksum
How to use checksums
4efc8a9fd1d0118e29008400ae590010d09a689b1e94be983f6d00660865e07f
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 22, 2026.

Transparency log

Security for kuest-sdk 0.14.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.

Select from 2 files

Attestation for kuest_sdk-0.14.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 22, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page