Skip to main content

Typed Extended

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

PyPI version Python versions Docs License



from typed_extended import Extended

async with Extended.new(public=True) as client:
  stats = await client.info.market_stats('BTC-USD')
  print(stats['lastPrice'], stats['markPrice'], stats['fundingRate'])

Why Typed Extended?

  • 🎯 Precise Types: Typed inputs and responses for every REST call and WebSocket stream, including the order request union (limit, market, conditional, TP/SL).
  • ✅ Runtime Validation: Responses and stream messages validated by default, with prices and sizes as exact Decimal and timestamps as datetime.
  • ⚡ Async First: Async HTTP and WebSocket streams, with Stark order, transfer and withdrawal signing done for you.
  • 📚 Full Surface: Market data, account, orders, transfers and withdrawals, portfolio analytics, vault, interest, points, referrals and builder endpoints.

Installation

pip install typed-extended

Signing runs in pure Python out of the box. For roughly 10x faster signatures, install the optional native backend:

pip install "typed-extended[fast]"

How To

Reference

Design Philosophy

Typed Extended follows the principles outlined in this blog post.

Details matter. Developer experience matters.

License

MIT — see LICENSE.

Metadata

Release files for typed-extended 0.2.2

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-extended 0.2.2
File Size Uploaded Provenance Actions
typed_extended-0.2.2.tar.gz 80.0 kB With provenance Details for typed_extended-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for typed-extended 0.2.2
File Interpreter ABI Platform Actions
typed_extended-0.2.2-py3-none-any.whl Python 3 none any Details for typed_extended-0.2.2-py3-none-any.whl

Total release size: 232.8 kB

Release files / typed_extended-0.2.2.tar.gz

Download URL typed_extended-0.2.2.tar.gz
Size 80.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d2eb124baef59730ea752cd9c02726d1e33e555cca5cfee3b82b352d39f27c7f
BLAKE2b-256 checksum
How to use checksums
b53afc16de89ce4ab69ada5ac2f2f34c5eadf9efe95f00eec92997c04145cb24
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 28, 2026.

Transparency log

Release files / typed_extended-0.2.2-py3-none-any.whl

Download URL typed_extended-0.2.2-py3-none-any.whl
Size 152.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
407fcb380241d9776fce457252bdc3e5d5164c94cd0ba09f8a052cec00495bc5
BLAKE2b-256 checksum
How to use checksums
f4f712135cf6bb4519ad740cf19fdfe4d84f7998bbe58240026aa4538ca75af6
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 28, 2026.

Transparency log

Security for typed-extended 0.2.2

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_extended-0.2.2.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 28, 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