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

Built distribution (wheel)

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

Total release size: 232.5 kB

Release files / typed_extended-0.2.0.tar.gz

Download URL typed_extended-0.2.0.tar.gz
Size 79.8 kB
Tags Source
SHA-256 checksum
How to use checksums
67327c7ba477e295c388234ee77040930b89e99f3037021e38fb729c019328d6
BLAKE2b-256 checksum
How to use checksums
fd3ebd8f530e9a1d5567515444fbc4779c59dd02b8473a6e1d4923648785f7cc
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 Oct 22, 2026.

Transparency log

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

Download URL typed_extended-0.2.0-py3-none-any.whl
Size 152.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c23b0a066890b79144f7fe6781909c2c3e92bdc7aae0b346f9d43614cf8fe99
BLAKE2b-256 checksum
How to use checksums
1f5f7684f6ac7395693172b0fec985575fe85ddd135cf35b076ea4b0cb80a1bc
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 Oct 22, 2026.

Transparency log

Security for typed-extended 0.2.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_extended-0.2.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 Oct 22, 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