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.2

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.2
File Size Uploaded Provenance Actions
typed_risex-0.1.2.tar.gz 85.4 kB With provenance Details for typed_risex-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 240.7 kB

Release files / typed_risex-0.1.2.tar.gz

Download URL typed_risex-0.1.2.tar.gz
Size 85.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b2d936b094966bf6fb591166dac15bc2b88b520e5073591aeec99eed45f18a67
BLAKE2b-256 checksum
How to use checksums
409fae7481b0146ba574382ed41af9d446626d424625e4a204786da43258ceee
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 19, 2026.

Transparency log

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

Download URL typed_risex-0.1.2-py3-none-any.whl
Size 155.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
977cf57c9ed7775a64063b32a728bf9ffe3afad141469ac0d72ecc4a64ad472f
BLAKE2b-256 checksum
How to use checksums
51f5d43e6b531a7b3a8108f471fb25cc80e9a152e4a44baed662d145e7df99cf
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 19, 2026.

Transparency log

Security for typed-risex 0.1.2

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.2.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 19, 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