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

Built distribution (wheel)

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

Total release size: 240.4 kB

Release files / typed_risex-0.1.0.tar.gz

Download URL typed_risex-0.1.0.tar.gz
Size 85.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1d4e8373a4fd8e0741f398b3335cea798bfef4b2cc0aedc773ad9616bde7f790
BLAKE2b-256 checksum
How to use checksums
1a1203239c519479f0c8cee7029a204164aff0c3b202905bead2287df2e97c5f
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.0-py3-none-any.whl

Download URL typed_risex-0.1.0-py3-none-any.whl
Size 155.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
befe44e68192b32f7bd366ddb3e6100bb18a90cd739b689c3946838994035ec9
BLAKE2b-256 checksum
How to use checksums
800c9658acb9c84e66c0b585b3c884d9b0ecf9848a4682725335a1b4c9f6b3c2
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.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 typed_risex-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 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