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

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.2
File Size Uploaded Provenance
kuest_sdk-0.14.2.tar.gz 447.4 kB With provenance Details

Built distribution (wheel)

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

Total release size: 873.0 kB

Release files / kuest_sdk-0.14.2.tar.gz

Download URL kuest_sdk-0.14.2.tar.gz
Size 447.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e0acd6359f7efaa61aded0ac7436220aeb24d2c9339f896c717e2542922f766d
BLAKE2b-256 checksum
How to use checksums
0bf2e55a222eef4a72503350a74c0094f067dc72f7d773f73cbc42be2b7b5e53
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 27, 2026.

Transparency log

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

Download URL kuest_sdk-0.14.2-py3-none-any.whl
Size 425.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da606b6f61bebccd3d5e95ade8a8d27201e32cdd8085f9e24ef878152aa20eaf
BLAKE2b-256 checksum
How to use checksums
ff678d6604168281884315a4757e3d3ba0a5ecd5a49291f2b16b0b24c6e44d6f
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 27, 2026.

Transparency log

Security for kuest-sdk 0.14.2

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.2.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 27, 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