Install the T+ Python SDK using pip or uv. Covers the core and EVM install tiers, Python version requirements, and environment setup.
This page covers everything you need to get tpluspy running on your machine: Python version requirements, the two install tiers, how to verify the installation, the environment variables that control client and CLI behaviour, and where the SDK stores local files.
Async REST and WebSocket clients (OrderBookClient, MarketDataClient, ClearingEngineClient)
Pydantic v2 wire-protocol models
Ed25519 user-key signing and local keyfile management
The tplus CLI tool
Use the core install whenever your work only involves talking to a running T+ service—placing orders, reading market data, streaming trades, or signing requests with your T+ key. ape, eth-ape, ape-tokens, and hexbytes are not installed; any import from tplus.evm will raise ModuleNotFoundError until you upgrade to the EVM install.
The EVM install adds the Ape framework (eth-ape), hexbytes, and structured-message signing helpers on top of the core install. You need this tier when your code:
Imports anything from tplus.evm
Reads or writes vault or registry contracts
Initiates or executes on-chain deposits, withdrawals, or settlements
Needs an Ethereum account for signing settlement messages
pip install tpluspy
Never import ape, eth-ape, or hexbytes from code that is also used in a core-install environment. These symbols are absent from the core tier and cause ImportError at runtime.
After installing, confirm the CLI is on your PATH and the version is visible:
tplus --help
To check which environment variables are currently set, run:
tplus env
tplus env prints every CLI-relevant variable alongside its current value, making it easy to confirm your configuration before placing orders or connecting to streams.
All environment variables can also be passed as flags on any tplus command; the table below shows both forms.
Variable
CLI flag
Description
TPLUS_ACCOUNT
--account
Default local account alias used by signing, OMS, and settlement commands.
TPLUS_ORDERBOOK_BASE_URL
--orderbook-base-url
Base URL of the orderbook / OMS service. Also used by settle and withdraw commands.
TPLUS_CLEARING_BASE_URL
--clearing-base-url
Base URL of the clearing engine. Used by admin, registry, and vault commands.
TPLUS_MARKET_DATA_BASE_URL
--market-data-base-url
Base URL of the market-data service. Used by markets depth, markets klines, and the stream subcommands.
TPLUS_IGNORE_SSL
--ignore-ssl
Set to any non-empty value to skip TLS certificate verification. Use only for local development with self-signed certificates.
TPLUS_OUTPUT_FORMAT
--output-format
Output format for list and address commands: table (default), json, or raw. raw prints one chain-address string per line, useful for piping into scripts.
TPLUS_PASSWORD
—
Password used to encrypt and decrypt local keyfiles, bypassing the interactive getpass prompt. Intended for automation; avoid in shared shells.
A minimal shell profile for local development might look like:
Password-encrypted Ed25519 keyfiles, one per account alias.
~/.tplus/cli/logs/tplus.log
Rotating CLI log (1 MB × 3 files).
To inspect or back up a specific account, look for its keyfile at ~/.tplus/users/<alias>. Never share these files—each one contains your encrypted private key.
Once installed, the tplus command gives you access to the full command tree from your shell. Common first steps:
# See all available commandstplus --help# Confirm environment variable configurationtplus env# Generate a new local accounttplus accounts generate alice# List your accountstplus accounts list
See the CLI overview for a complete reference of every subcommand and its options.