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.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-nado 0.1.0
File Size Uploaded Provenance Actions
typed_nado-0.1.0.tar.gz 92.6 kB With provenance Details for typed_nado-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 290.2 kB

Release files / typed_nado-0.1.0.tar.gz

Download URL typed_nado-0.1.0.tar.gz
Size 92.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3e63b7be38ce4f1c8c3784416b853778311ed6dbce600747de1ce2eeb329770d
BLAKE2b-256 checksum
How to use checksums
eea73eb8bda8e171215f24ba950291fa6a0ee03bd5cc5eb427178262944317ce
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_nado-0.1.0-py3-none-any.whl

Download URL typed_nado-0.1.0-py3-none-any.whl
Size 197.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68606349281c4aeca672b8439fbfe28561751f973fe320fe5c1665b54eec6099
BLAKE2b-256 checksum
How to use checksums
8f146d8726f9a56ba4cb8a3005c3cf2f8c00a771dacaf2f0e529069a89d26aba
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-nado 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_nado-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.

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