Typed Gate DEX
A fully typed, validated async client for the Gate DEX API.
- Documentation: https://tribulnation.com/typed/gate_dex
- Source Code: https://github.com/tribulnation/typed/tree/main/packages/gate_dex
from typed_gate_dex import GateDex
async with GateDex.new() as client:
quote = await client.trade.quote(
chain_id=1, # Ethereum
amount_in='0.01', # 0.01 ETH
token_in='-', # the chain's native coin
token_out='0xdac17f958d2ee523a2206206994597c13d831ec7', # USDT
slippage=0.01, # 1%
slippage_type=1,
user_wallet='0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
)
print(quote['amount_out'], quote['min_amount_out'])
Every Gate DEX call is signed, market data included, so the client always needs an API key: see API Keys Setup.
Why Typed Gate DEX?
- 🎯 Precise Types: Typed inputs and responses for every swap and market data call, including the per-chain-family gas price union and the two ways to submit a swap.
- ✅ Runtime Validation: Responses validated by default, with timestamps as UTC
datetime, Gate's decimal-string prices and amounts as exactDecimal, and its JSON numbers asfloat. - ⚡ Async First: Async HTTP with request signing done for you, plus resumable paginated walks over candles, liquidity events and token lists.
- 📚 Full Surface: Swap quotes, approvals, builds, submission and order tracking across every Gate DEX chain (EVM, Solana, Sui, TON, Tron), plus prices, candles, liquidity events, token data, rankings and security audits.
Installation
pip install typed-gate_dex
How To
Reference
Design Philosophy
Typed Gate DEX follows the principles outlined in this blog post.
Details matter. Developer experience matters.
License
MIT — see LICENSE.
Metadata
Release files for typed-gate-dex 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| typed_gate_dex-0.1.0.tar.gz | 31.8 kB | With provenance | Details for typed_gate_dex-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| typed_gate_dex-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for typed_gate_dex-0.1.0-py3-none-any.whl |
Total release size: 84.8 kB
Release files / typed_gate_dex-0.1.0.tar.gz
| Download URL | typed_gate_dex-0.1.0.tar.gz |
|---|---|
| Size | 31.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27d087caef094144aa1a8e5c70f60fc05ea6ff52497c88030be5c1be04379fa0
|
|
BLAKE2b-256 checksum How to use checksums |
868761e5e2626de34aeb9f610640096b1ebf80d702bda8eecc3b0bf4f2b7484a
|
| 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 30, 2026.
Transparency logRelease files / typed_gate_dex-0.1.0-py3-none-any.whl
| Download URL | typed_gate_dex-0.1.0-py3-none-any.whl |
|---|---|
| Size | 53.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1952c814f4eedf1675e86bf09bfbe38f42615217916061c5a69823ede0a4113
|
|
BLAKE2b-256 checksum How to use checksums |
670997fbaf7f88ff31b6c2f8c2d46e4d98235dceb4988556e93bd284eb494465
|
| 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 30, 2026.
Transparency logSecurity for typed-gate-dex 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.
Attestation for typed_gate_dex-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 30, 2026.
Transparency logA 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.