Skip to main content

hedgehood-maker-py

Hedgehood maker SDKs: Python · TypeScript · Go + CLI · maker guide, test vectors

hedgehood-maker: Python SDK for market makers on the Hedgehood options RFQ gateway. Earn upfront users write covered calls and cash-secured puts on Robinhood Chain stock tokens; makers buy them with firm EIP-712 quotes they sign themselves, and the user fills the winning quote on chain through RfqSettler. The gateway never holds your funds or keys and cannot change a quote. There is no last look.

Testnet only (Robinhood Chain testnet, chainId 46630). The contracts (OptionsCore, RfqSettler) are not yet audited; mainnet addresses follow the launch. Nothing in this repository is a security review. The protocol reference (going live, funding, fees, timing, scorecard, wire format) is the maker guide.

  • MakerClient: login, your pricer per request within the 2-second window (sync or async), quote building and signing (fresh nonce, current epoch, all-or-nothing), the gateway's checks locally, events, reconnect with backoff.
  • eip712: quote_digest, sign_quote, series_id, byte-equal to RfqSettler.quoteDigest (tests pin the golden vectors shared with the Solidity, gateway, Go and TypeScript implementations).
  • settler: unsigned transactions for setSigner, approve, deposit, withdraw, increaseEpoch, invalidateNonces, linkMaker, OptionsCore.setOperator and redeemLong. The SDK never signs or sends a transaction; you review and send each one.
  • rpc.Reader: read-only eth_calls (epoch, signer delegation, balances, allowances, fees) and can_sell, which tells you whether you hold a long before quoting an early close.
  • fees: the settler's fee (12.5 % of the premium, capped at 1 % of the notional) and pro-rata math.

Install

pip install hedgehood-maker      # or: pip install "git+https://github.com/0xHedgeHood/hedgehood-maker-py"

Python 3.10+, dependencies eth-account and websockets.

Quickstart

  1. Print the setup transactions, review them and send them yourself:

    python examples/onboard.py --maker 0xYourMaker --signer 0xYourHotKey --signer-days 7 --deposit 1000 --rpc
    
  2. Quote:

    import asyncio, os
    from hedgehood_maker import MAKER_BUYS, RFQ, TESTNET, Decline, MakerClient
    from hedgehood_maker.fees import notional
    
    def price(rfq: RFQ):
        if rfq.side != MAKER_BUYS:
            return Decline("no_inventory")             # closes: see examples/simple_maker.py --sell
        return notional(rfq.amount, rfq.series.strike) * 40 // 10_000   # premium, USDG raw, fee excluded
    
    client = MakerClient(
        TESTNET.gateway_ws,
        os.environ["HEDGEHOOD_SIGNER_KEY"],              # the maker key or its delegated hot key
        price,
        maker="0xYourMaker",                             # omit when the key is the maker itself
        chain_id=TESTNET.chain_id, settler=TESTNET.settler,
        on_event=lambda f: print(f.type, f.raw),         # won, lost, fill, rejected, ...
    )
    asyncio.run(client.run())
    

    The pricer may be sync (run in a thread) or async. It returns a premium (int), a Quote from client.build_quote(...), or a decline. examples/simple_maker.py is fuller: Black-Scholes or fixed bps, fee-aware, and with --sell it quotes early closes only for longs it holds:

    export HEDGEHOOD_SIGNER_KEY=...
    python examples/simple_maker.py --mode vol --vol 0.6 --spot TSLA=390 --edge 0.05 --sell --external self
    

Testnet

Chain Robinhood Chain testnet, chainId 46630, RPC https://rpc.testnet.chain.robinhood.com
Gateway (makers) wss://testnet-rfq.hedgehood.io/v1/maker/ws
RfqSettler 0xda43b0933031e41D5B367E1807536FcF4ebdEE7e
OptionsCore 0xde5ce903254E9597822D5456a82a25640285B8B4
Quote token (test USDG, 6 decimals) 0x850DE815d41F6983Aaf09247f9a465c0aefff04C
Scorecard https://testnet-rfq.hedgehood.io/v1/makers

Development

pip install -e ".[dev]" && ruff check . && pytest                                    # offline
HEDGEHOOD_LIVE_RPC=https://rpc.testnet.chain.robinhood.com pytest tests/test_live.py  # opt-in, read-only
HEDGEHOOD_VECTORS=/path/to/sdks/vectors/goldens.json pytest tests/test_vectors.py    # the shared vectors (CI does this)

License

MIT, see LICENSE.

Metadata

Release files for hedgehood-maker 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hedgehood-maker 0.1.0
File Size Uploaded Provenance Actions
hedgehood_maker-0.1.0.tar.gz 35.9 kB With provenance Details for hedgehood_maker-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hedgehood-maker 0.1.0
File Interpreter ABI Platform Actions
hedgehood_maker-0.1.0-py3-none-any.whl Python 3 none any Details for hedgehood_maker-0.1.0-py3-none-any.whl

Total release size: 63.1 kB

Release files / hedgehood_maker-0.1.0.tar.gz

Download URL hedgehood_maker-0.1.0.tar.gz
Size 35.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a1941f77fd01b098524b0188a8c4c54dfce029d510ac7995e32294907f491876
BLAKE2b-256 checksum
How to use checksums
d837cb69227e7a1ce90c8ccbf0627ef6ba6e3173c1feda348ca65448cc230dc8
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 11, 2026.

Transparency log

Release files / hedgehood_maker-0.1.0-py3-none-any.whl

Download URL hedgehood_maker-0.1.0-py3-none-any.whl
Size 27.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
320b34f84f53cd2dce4a04dbd6944b8f6fc59300f414ead7ea7c83c59ed084b4
BLAKE2b-256 checksum
How to use checksums
e0f7115ad56da395fc9d6cdda08490b0ab19ca09da65aa30af6f43b726cd9aa4
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 11, 2026.

Transparency log

Security for hedgehood-maker 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.

Select from 2 files

Attestation for hedgehood_maker-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 11, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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