Skip to main content

Python utilities used to generate and sign orders for the Kuest CTF Exchange

Project description

Kuest CLOB Python order-utils

PyPI

Python utilities used to generate and sign orders for the Kuest CTF Exchange

Install

pip install kuest-py-order-utils

Usage

from py_order_utils.builders import OrderBuilder
from py_order_utils.signer import Signer
from pprint import pprint

def main():
    exchange_address = "0x...."
    chain_id = 80002
    signer = Signer("0x....")
    builder = OrderBuilder(exchange_address, chain_id, signer)

    # Create and sign the order
    order = builder.build_signed_order(
        OrderData(
            ...
        )
    )

    # Generate the Order and Signature json to be sent to the CLOB API
    pprint(json.dumps(order.dict()))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kuest_py_order_utils-0.3.4.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kuest_py_order_utils-0.3.4-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file kuest_py_order_utils-0.3.4.tar.gz.

File metadata

  • Download URL: kuest_py_order_utils-0.3.4.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kuest_py_order_utils-0.3.4.tar.gz
Algorithm Hash digest
SHA256 fe7b49cb6be12901767f8c21915d5f512e5b90b60effbf38f79095c01d8dc0cc
MD5 b6615fb6518efdd2e3f3833d305520f6
BLAKE2b-256 91a748eb08b0a0d8c573a473a193bc22b2a23e49b7ae8811ce937667caf80b12

See more details on using hashes here.

Provenance

The following attestation bundles were made for kuest_py_order_utils-0.3.4.tar.gz:

Publisher: release.yaml on kuestcom/py-order-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kuest_py_order_utils-0.3.4-py3-none-any.whl.

File metadata

File hashes

Hashes for kuest_py_order_utils-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d1b1f003c9dd42a0142229156f091a05e3fa18f3c9ae315b02d62c0f93dca83a
MD5 4e329539e2563665a76da1d8c0e1eadd
BLAKE2b-256 19693ef78a06763fef3583d24a3cc2e5b55810a4bfad5e129274c7f876a3bb28

See more details on using hashes here.

Provenance

The following attestation bundles were made for kuest_py_order_utils-0.3.4-py3-none-any.whl:

Publisher: release.yaml on kuestcom/py-order-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page