Skip to main content

RISEx SDK

Perpetual Market and Report support for RISEx, built on typed-risex. Install with pip install tribulnation-risex.

from tribulnation.risex import RisexMarket

async with RisexMarket.new() as venue:
  perp = await venue.perp_exchange('perp')
  market = await perp.market('1')  # BTC/USDC
  book = await market.depth(levels=5)

RISEx has no API keys. Every account read is public, keyed by the account's address; a registered signer (session) key signs orders and cancels:

venue = RisexMarket.new(address='0x…')  # account reads only
venue = RisexMarket.new(address='0x…', signer_key='0x…', network='testnet')  # trading

The environment is never read here; MarketSDK resolves RISEX_ADDRESS, RISEX_ACCOUNT_KEY and RISEX_SIGNER_KEY (RISEX_TESTNET_* for risex_testnet).

  1. One exchange, perp. Market ids are the venue's numeric market_id ('1' is BTC/USDC on both networks); the collateral, fee and funding asset is USDC.
  2. Public data: discovery, tickers (last price and quote volume), rules, depth, a shared book stream, candles in the six SDK intervals, index, perp_stats, the funding estimate and hourly funding-rate history.
  3. Account and trading: order queries, open orders, trade history, positions, collateral, leverage and available notional by address; fees with a key; the fills stream, MARKET (an IOC limit), LIMIT and POST_ONLY orders and every cancellation method with the signer key. Placements are mined before the venue replies; refusals raise OrderRejected.
  4. Isolated positions raise NotImplementedError from collateral reads and snapshots.

Report snapshots one account by address:

from tribulnation.risex import Report

async with Report.new(address='0x…') as report:
  record = await report.snapshot()

See RISEx Market for account configuration through MarketSDK and venue-specific semantics.

Metadata

Release files for tribulnation-risex 0.2.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 tribulnation-risex 0.2.0
File Size Uploaded Provenance Actions
tribulnation_risex-0.2.0.tar.gz 21.9 kB With provenance Details for tribulnation_risex-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tribulnation-risex 0.2.0
File Interpreter ABI Platform Actions
tribulnation_risex-0.2.0-py3-none-any.whl Python 3 none any Details for tribulnation_risex-0.2.0-py3-none-any.whl

Total release size: 49.7 kB

Release files / tribulnation_risex-0.2.0.tar.gz

Download URL tribulnation_risex-0.2.0.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
815ec10aa381cafe6134d9930c70391802cc36981630231b1a7f687e24323ead
BLAKE2b-256 checksum
How to use checksums
745e0747de809ff0b4dd891eebb9faa3e7a667cab174701c07ad64a15a8e9f66
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 / tribulnation_risex-0.2.0-py3-none-any.whl

Download URL tribulnation_risex-0.2.0-py3-none-any.whl
Size 27.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4bcc7066270b20e1f5684310b358804f64c945739d20eff2fa87580c6e4814f
BLAKE2b-256 checksum
How to use checksums
a94da63eb090c47c58ee33a09a02bd5ab42340673ac68950b2611cd9862fd17d
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 tribulnation-risex 0.2.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 tribulnation_risex-0.2.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 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