hypercall-rfq-example
Demo helpers and the demo maker (maker.py) for the Hypercall tutorial
Build an RFQ V2 Maker. They cover
read grants, the rfq_v2 stream with change-feed replay, signed firm quotes,
declines, withdrawals, the cancel-schedule heartbeat, the executions stream,
the provider read, and perp hedge orders through Hypercall.
This is teaching code, kept short enough to read in one sitting. It is not a
supported SDK. For production integrations use the Rust client
(hypercall-client) or sign the documented EIP-712 messages yourself.
Needs Python 3.11 or newer (the maker uses asyncio.TaskGroup).
pip install hypercall-rfq-example
curl -O https://raw.githubusercontent.com/hypercall-public/hypercall-rfq-example/main/maker.py
export HC_ACCOUNT=0xYourAccount HC_SIGNER_KEY=0xApiWalletKey
python maker.py --dry-run
--dry-run prices and logs RFQs without posting quotes, declines, withdrawals
or hedges. Without it the maker posts firm, executable quotes.
On SIGINT or SIGTERM the maker withdraws every open quote and clears its
cancel schedule before it exits. A kill -9 skips that; the 30-second
dead-man switch then withdraws the quotes instead.
The perp hedge only works for a portfolio margin Account contract with an
on-chain API wallet as the signer. See step 7 of the tutorial for the full
list; with a plain wallet as HC_ACCOUNT, hedge orders fail with
400 unknown_account.
Tests
pip install -e '.[test]' && pytest
tests/test_signing_parity.py signs golden vectors generated by the Rust
signer and must match them byte for byte.
License
MIT
Metadata
Release files for hypercall-rfq-example 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hypercall_rfq_example-0.1.0.tar.gz | 27.8 kB | With provenance | Details for hypercall_rfq_example-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hypercall_rfq_example-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for hypercall_rfq_example-0.1.0-py3-none-any.whl |
Total release size: 42.2 kB
Release files / hypercall_rfq_example-0.1.0.tar.gz
| Download URL | hypercall_rfq_example-0.1.0.tar.gz |
|---|---|
| Size | 27.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f04927f911766d41403e23ea3cf62a0d72d5d7f42e71b5d42a714c7c0277cde
|
|
BLAKE2b-256 checksum How to use checksums |
d993f87c7e87b5b61bed89cdc81eb7b3d657a060ea64e59fe3f09d161973ac16
|
| 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 Nov 20, 2026.
Transparency logRelease files / hypercall_rfq_example-0.1.0-py3-none-any.whl
| Download URL | hypercall_rfq_example-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
826d1ae4dfc6e88e2e9fccb305384b1409107bac30c3809c20b51aca2a004d5c
|
|
BLAKE2b-256 checksum How to use checksums |
ddcfbd43d4b1d14e97586527c45249501ac955fc8b894a6f1b38fe319cd582d2
|
| 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 Nov 20, 2026.
Transparency logSecurity for hypercall-rfq-example 0.1.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for hypercall_rfq_example-0.1.0.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 Nov 20, 2026.
Transparency logA 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.