Install tpluspy
Install the core package using Confirm the CLI is available after installation:
pip or uv pip. The core install includes the async REST/WebSocket clients and Ed25519 account management—no Ape or EVM dependencies required for this guide.Create a local account
T+ uses Ed25519 keypairs as identities. Your private key is stored as a password-encrypted keyfile under The command prompts you for a password, generates a fresh Ed25519 keypair, and saves it under the alias List your accounts at any time:
~/.tplus/users. You never need a separate API key.Option A — CLI (recommended for interactive use):alice.Option B — Python:Connect and fetch a market snapshot
Load your account and use
OrderBookClient to fetch a live order-book snapshot. Prices and quantities on T+ are integers in the book’s native units; the Market object returned by get_market tells you the decimal places to apply.Replace
API_BASE_URL with the address of your T+ instance. For a local development setup this is typically http://127.0.0.1:8000. Contact your T+ operator for the production URL.AssetIdentifier accepts either a registry index (AssetIdentifier(200)) or an address@chain_id string. Use the registry index for well-known assets; your T+ operator can tell you which index maps to which token.What’s next
OrderBookClient reference
Full API reference for placing, replacing, and cancelling orders, plus streaming order events.
Orders concepts
Understand time-in-force options (GTC, GTD, IOC), order lifecycle, and fill behaviour.
CLI overview
Use the
tplus shell tool to trade and monitor streams without writing Python.