Skip to main content

Tribulnation SDK RISEx

Tribulnation SDK implementation for RISEx perpetuals.

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

Built distribution (wheel)

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

Total release size: 50.1 kB

Release files / tribulnation_risex-0.2.1.tar.gz

Download URL tribulnation_risex-0.2.1.tar.gz
Size 22.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e2c04063a77dd1f9bd5b16bbbcf0b63a3c5561764e7a19885b2f585a4f3c83a8
BLAKE2b-256 checksum
How to use checksums
9c94f021da6588932dbe9a1a04f0049df330e590ca87c2264b0e4039b3daa88e
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.1-py3-none-any.whl

Download URL tribulnation_risex-0.2.1-py3-none-any.whl
Size 27.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cedac7b3f4aee8d7ab3d4f07db7ce10db63fa4f65237448e1305ee998487aed8
BLAKE2b-256 checksum
How to use checksums
5e52ca06a73363f41dee1b79f1fd87a8fa2d69752f8fb51d616a4b4777eb7e27
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.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 tribulnation_risex-0.2.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 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