Skip to main content

Typed Nado

A fully typed, validated async client for the Nado API.

PyPI version Python versions Docs License



from typed_nado import Nado

async with Nado.new(public=True) as client:
  price = await client.gateway.market_price(2)  # BTC-PERP
  print(price['bid_x18'] / 10**18, price['ask_x18'] / 10**18)

Almost every read is public, including any subaccount's balances, orders and history. A wallet key is needed for every signed call: placing, cancelling and replacing orders (gateway and trigger), listing your trigger orders (trigger.list_trigger_orders, a signed read), withdrawing and transferring collateral, minting and burning NLP, linking a signer, liquidating a subaccount, registering for a trading competition, and the private order-update stream — see Authenticated Setup.

Why Typed Nado?

  • 🎯 Precise Types: Typed inputs and responses across the gateway, trigger, archive, rewards and v2 market-data APIs, with x18 prices and amounts as real ints and timestamps as datetimes, not dict/Any.
  • ✅ Runtime Validation: Every REST response, WebSocket reply and stream event is validated by default, not just typed on paper.
  • ⚡ Async First: Async HTTP plus two WebSockets (gateway RPC and subscriptions), with a per-call transport='http' | 'ws' switch on every gateway method.
  • 📚 Full Surface: Every documented Nado endpoint — spot, perpetuals, trigger and TWAP orders, NLP vault, indexer history, rewards and streams — with EIP-712 signing built in.

Installation

pip install typed-nado

Services

Attribute What it covers
client.gateway Live queries (products, prices, books, subaccounts, open orders) and signed executes (orders, cancels, withdrawals, transfers, NLP, linked signers)
client.trigger Price-triggered and TWAP orders
client.archive Indexed history: candles, matches, orders, events, funding, positions, snapshots
client.rewards Airdrop and trading-competition leaderboards
client.gateway_v2 Aggregator-style assets, pairs, order book and APRs
client.archive_v2 Aggregator-style symbols, tickers, contracts and trades
client.streams Live trades, book, candles, funding, liquidations, fills, positions and order updates

Nado.new() targets mainnet (Ink); pass network='testnet' for Ink Sepolia.

How To

Reference

Design Philosophy

Typed Nado follows the principles outlined in this blog post.

Details matter. Developer experience matters.

License

MIT — see LICENSE.

Metadata

Release files for typed-nado 0.1.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 typed-nado 0.1.1
File Size Uploaded Provenance Actions
typed_nado-0.1.1.tar.gz 92.8 kB With provenance Details for typed_nado-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for typed-nado 0.1.1
File Interpreter ABI Platform Actions
typed_nado-0.1.1-py3-none-any.whl Python 3 none any Details for typed_nado-0.1.1-py3-none-any.whl

Total release size: 290.6 kB

Release files / typed_nado-0.1.1.tar.gz

Download URL typed_nado-0.1.1.tar.gz
Size 92.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2d6c8a80dc2c9c7a6035e6c68db2603fe36cdc7f181f1cb9e3e61e50e5119cd3
BLAKE2b-256 checksum
How to use checksums
050fccaf526ec5c66bc149291302cd208d8b6df25559d66a788ef3e5beea6197
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_nado-0.1.1-py3-none-any.whl

Download URL typed_nado-0.1.1-py3-none-any.whl
Size 197.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
694f5704eeb09b70d5de7651e3fe5aada9f6a4712bf006c27ed5e70313f4981a
BLAKE2b-256 checksum
How to use checksums
7b3b62fbbe67cdc9c53e1f2a2f23e0c6e7f62aa1b60b200a86b66268a5e18df2
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-nado 0.1.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 typed_nado-0.1.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.

Release history Release notifications | RSS feed

This release

0.1.1 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