Skip to main content

Typed RISEx

A fully typed, validated async client for the RISEx API.

PyPI version Python versions Docs License



from typed_risex import RISEx

async with RISEx.new(public=True) as client:
  markets = await client.markets.all()
  book = await client.markets.orderbook(market_id=1, limit=5)
  print(markets['markets'][0]['config']['name'], book['bids'][0]['price'])

Why Typed RISEx?

  • 🎯 Precise Types: Typed requests and responses for every REST endpoint and WebSocket channel, with order bodies typed as limit/market unions, not dict/Any.
  • ✅ Runtime Validation: Responses validated by default, with prices and amounts as Decimal (or '' where RISEx sends no value, and raw 10^18-scaled ints where it returns on-chain values; a few affiliate, leaderboard and points amounts with no observed value stay str), and timestamps as datetime with a few exceptions (see Timestamps).
  • ⚡ Async First: Async HTTP and a single multiplexed WebSocket feed, with EIP-712 permits, nonces and JWT sessions signed for you.
  • 📚 Full Surface: The full trading, account and market-data API: markets, orders, TP/SL, positions and margin, portfolio, signers and sessions, points, competition and leaderboard reads, and stats.

Installation

pip install typed-risex

Setup

RISEx has no API keys: you trade with an EVM account key plus a registered signer (session) key. See Authenticated Setup to create both on testnet, claim test USDC, and register the signer.

How To

Reference

Design Philosophy

Typed RISEx follows the principles outlined in this blog post.

Details matter. Developer experience matters.

License

MIT — see LICENSE.

Metadata

Release files for typed-risex 0.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 typed-risex 0.1.1
File Size Uploaded Provenance Actions
typed_risex-0.1.1.tar.gz 85.2 kB With provenance Details for typed_risex-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for typed-risex 0.1.1
File Interpreter ABI Platform Actions
typed_risex-0.1.1-py3-none-any.whl Python 3 none any Details for typed_risex-0.1.1-py3-none-any.whl

Total release size: 240.5 kB

Release files / typed_risex-0.1.1.tar.gz

Download URL typed_risex-0.1.1.tar.gz
Size 85.2 kB
Tags Source
SHA-256 checksum
How to use checksums
084a247fb78839bfa762960376906af2418da4c7ed88cde497911f14a616802c
BLAKE2b-256 checksum
How to use checksums
9998e7aeb99204a30b6a8f280acbf0bb53070e96e36dfd90d8f3b2126fb41f3e
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 17, 2026.

Transparency log

Release files / typed_risex-0.1.1-py3-none-any.whl

Download URL typed_risex-0.1.1-py3-none-any.whl
Size 155.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
303581ffef8eb55bca060f3cd78cef4179d5ebcb9fd64ac147d50d8e8de48657
BLAKE2b-256 checksum
How to use checksums
73bb8ca63840b2eb2fe2cff4d3a0e5615db1122871bc020c08388a14811b8e47
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 17, 2026.

Transparency log

Security for typed-risex 0.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for typed_risex-0.1.1.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 17, 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.

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