Python client for the Kuest CLOB
Project description

Kuest Python CLOB Client
Python SDK for the Kuest CLOB.
Installation
pip install kuest-py-clob-client
Read-Only Usage
from py_clob_client.client import ClobClient
client = ClobClient("https://clob.kuest.com")
print(client.get_ok())
print(client.get_server_time())
Wallet-Only Trading
Kuest trading uses Deposit Wallet orders only. The public order path defaults to signature_type=3 and rejects signature types 0, 1, and 2.
from py_clob_client.client import ClobClient
HOST = "https://clob.kuest.com"
CHAIN_ID = 80002
PRIVATE_KEY = "<owner-private-key>"
DEPOSIT_WALLET = "<deposit-wallet-address>"
client = ClobClient(
HOST,
chain_id=CHAIN_ID,
key=PRIVATE_KEY,
signature_type=3,
funder=DEPOSIT_WALLET,
)
client.set_api_creds(client.create_or_derive_api_creds())
Place a Limit Order
from py_clob_client.client import ClobClient
from py_clob_client.clob_types import OrderArgs, OrderType
from py_clob_client.order_builder.constants import BUY
client = ClobClient(
"https://clob.kuest.com",
chain_id=80002,
key="<owner-private-key>",
signature_type=3,
funder="<deposit-wallet-address>",
)
client.set_api_creds(client.create_or_derive_api_creds())
order = OrderArgs(token_id="<token-id>", price=0.42, size=5.0, side=BUY)
signed = client.create_order(order)
response = client.post_order(signed, OrderType.GTC)
print(response)
Place a Market Order
from py_clob_client.client import ClobClient
from py_clob_client.clob_types import MarketOrderArgs, OrderType
from py_clob_client.order_builder.constants import BUY
client = ClobClient(
"https://clob.kuest.com",
chain_id=80002,
key="<owner-private-key>",
signature_type=3,
funder="<deposit-wallet-address>",
)
client.set_api_creds(client.create_or_derive_api_creds())
order = MarketOrderArgs(token_id="<token-id>", amount=25.0, side=BUY, order_type=OrderType.FOK)
signed = client.create_market_order(order)
response = client.post_order(signed, OrderType.FOK)
print(response)
Manage Orders
from py_clob_client.client import ClobClient
from py_clob_client.clob_types import OpenOrderParams
client = ClobClient(
"https://clob.kuest.com",
chain_id=80002,
key="<owner-private-key>",
signature_type=3,
funder="<deposit-wallet-address>",
)
client.set_api_creds(client.create_or_derive_api_creds())
open_orders = client.get_orders(OpenOrderParams())
if open_orders:
client.cancel(open_orders[0]["id"])
client.cancel_all()
Notes
- Use
KUEST_API_KEY,KUEST_SECRET, andKUEST_PASSPHRASEcredentials for authenticated Level 2 calls. API_KEY,API_SECRET,API_PASSPHRASE, andPRIVATE_KEYmay be used as local input aliases by applications, but SDK wire headers remainKUEST_*.- USDC remains the settlement collateral.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kuest_py_clob_client-2.0.2.tar.gz.
File metadata
- Download URL: kuest_py_clob_client-2.0.2.tar.gz
- Upload date:
- Size: 35.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94a613ff78f726bbccf3bf00e826659d2c7ad40643e52dbfeff3a8b2ce374263
|
|
| MD5 |
c51c1a590197ab1b9eaa5bd2a4283240
|
|
| BLAKE2b-256 |
0f8ed379ebe60d123b193edb0e8fbf3c2fc5888ce165d7891523c80113d42e8f
|
Provenance
The following attestation bundles were made for kuest_py_clob_client-2.0.2.tar.gz:
Publisher:
release.yaml on kuestcom/py-clob-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kuest_py_clob_client-2.0.2.tar.gz -
Subject digest:
94a613ff78f726bbccf3bf00e826659d2c7ad40643e52dbfeff3a8b2ce374263 - Sigstore transparency entry: 1593276819
- Sigstore integration time:
-
Permalink:
kuestcom/py-clob-client@551e2ebd84036675c6b805885072c9c66cbd92d0 -
Branch / Tag:
refs/tags/v2.0.2 - Owner: https://github.com/kuestcom
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@551e2ebd84036675c6b805885072c9c66cbd92d0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file kuest_py_clob_client-2.0.2-py3-none-any.whl.
File metadata
- Download URL: kuest_py_clob_client-2.0.2-py3-none-any.whl
- Upload date:
- Size: 47.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c34da776536ea1dcf6d1a309598586185a22cc63ff181fadb47c66ed4fc9c556
|
|
| MD5 |
6fdc9108560eb509c713047f1194f02b
|
|
| BLAKE2b-256 |
43de267265ba41772a88b25e61b7eb48f228dea7a4f9d410c3003ab02b4f4e80
|
Provenance
The following attestation bundles were made for kuest_py_clob_client-2.0.2-py3-none-any.whl:
Publisher:
release.yaml on kuestcom/py-clob-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kuest_py_clob_client-2.0.2-py3-none-any.whl -
Subject digest:
c34da776536ea1dcf6d1a309598586185a22cc63ff181fadb47c66ed4fc9c556 - Sigstore transparency entry: 1593276907
- Sigstore integration time:
-
Permalink:
kuestcom/py-clob-client@551e2ebd84036675c6b805885072c9c66cbd92d0 -
Branch / Tag:
refs/tags/v2.0.2 - Owner: https://github.com/kuestcom
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@551e2ebd84036675c6b805885072c9c66cbd92d0 -
Trigger Event:
release
-
Statement type: