Tristero Docs

Configuration

Environment configuration for the Python SDK

Configuration

Tristero supports three environments: PRODUCTION (default), STAGING, and LOCAL.

Global Configuration

Set the environment globally at startup:

from tristero import set_config

set_config("STAGING")  # all subsequent calls use the staging API

Per-Call Override

Or override per call:

quote = await get_swap_quote(..., env="LOCAL")

Every user-facing function in the SDK accepts an optional env keyword argument.

On this page