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.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 tribulnation-risex 0.1.0
File Size Uploaded Provenance Actions
tribulnation_risex-0.1.0.tar.gz 21.7 kB With provenance Details for tribulnation_risex-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 49.3 kB

Release files / tribulnation_risex-0.1.0.tar.gz

Download URL tribulnation_risex-0.1.0.tar.gz
Size 21.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1605bbfe4cad0866317e3477359d8f0f2392b4913446d396ea901ccdd9356d22
BLAKE2b-256 checksum
How to use checksums
c4bd7e56f7b25146eeff1a44175d5a43ebebb4dfdf2adbf80fc34e71c7116128
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.1.0-py3-none-any.whl

Download URL tribulnation_risex-0.1.0-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9b2f602ac564de95632de5435bc83fd37dea41a5aa16a2a214bc69a252fe061
BLAKE2b-256 checksum
How to use checksums
05e4e52886d17adb729f043ca543b11a44de0f7892a4d4b1b1a912edb0a3913e
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.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 tribulnation_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 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.

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