Skip to main content

maxy (Python)

The Maxy API from Python 3.10 or later: the same resources and method names as the TypeScript SDK, in snake_case. One dependency, httpx. MIT licence (see LICENSE).

pip install https://maxy.co/sdk/maxy-latest.tar.gz
export MAXY_API_KEY=$(curl -s -X POST https://openapi.maxy.co/v1/sandbox/keys | jq -r .secretKey)   # a test key: nothing real can move
from maxy import Maxy, MaxyError

maxy = Maxy()  # reads MAXY_API_KEY
price = maxy.prices.get("ETH on base", "BTC", "0.01")
quote = maxy.quotes.get("ETH on base", "BTC", "0.01", from_address=wallet, to_address="bc1q…")

signature = your_signer.sign_typed_data(quote["signing"]["payloads"][0]["typedData"])
placed = maxy.orders.create(quote["order"], signature=signature, external_id="inv-42")

for state in maxy.orders.watch(placed["orderId"]):
    print(state["state"], state.get("btcTxId"))
Resource Methods
prices get
pairs list
quotes get, batch, seconds_until_expiry
orders create, submit_signature, submit, get, list, iterate, export_csv, cancel, events, refund, deposit, claim, steps, follow, watch, resume
status by_tx_hash, by_intent_hash, by_bitcoin_txid
addresses validate
limits, health, key get
webhooks verify, create, list, remove, test, events, replay
sandbox_controls advance, scenarios

AsyncMaxy is the same client, awaited; orders.watch and orders.iterate are async iterators.

Every failure is a MaxyError subclass with code, status, request_id, retryable, details and docs_url: the same names and classes as TypeScript. Reads, and calls carrying an idempotency key, retry twice on 429, 502, 503, 504 or a dropped connection, honouring Retry-After. orders.create sets its key from the order id.

Flow helpers that need a browser wallet stay in TypeScript. Answers are plain dicts with .meta; there are no generated models.

Metadata

Release files for maxy-labs 1.1.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 maxy-labs 1.1.1
File Size Uploaded Provenance Actions
maxy_labs-1.1.1.tar.gz 23.3 kB Without provenance Details for maxy_labs-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for maxy-labs 1.1.1
File Interpreter ABI Platform Actions
maxy_labs-1.1.1-py3-none-any.whl Python 3 none any Details for maxy_labs-1.1.1-py3-none-any.whl

Total release size: 44.1 kB

Release files / maxy_labs-1.1.1.tar.gz

Download URL maxy_labs-1.1.1.tar.gz
Size 23.3 kB
Tags Source
SHA-256 checksum
How to use checksums
90ac4dd3afb8f157dbb639cb5a73f7ce04caf4feccbad88e0fa9030aa4b65502
BLAKE2b-256 checksum
How to use checksums
ba58a3d512fd97d6be258c04334f1878d187f6b55770992035073f66a5d23b60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / maxy_labs-1.1.1-py3-none-any.whl

Download URL maxy_labs-1.1.1-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
14dd668b09482b4f7312b786943f0cc9f7e76f5265eab85667e72ceec2d7036f
BLAKE2b-256 checksum
How to use checksums
e2017010254b0842f7b5b4b1d709a2e7c7a9fdc9334874a7c9b017300d5da81e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for maxy-labs 1.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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