Python SDK
Install the published SDK, choose a network, and the modules it offers — orders, sessions, agents, feeds and the bridge.
pip install vordium==1.4.6The source is public at github.com/Vordium/vordium-sdk and every release on PyPI is published from it with a verifiable provenance attestation.
Choose a network
from vordium import use_network
use_network("testnet") # or "mainnet"Every address the SDK uses then comes from that network's own spec. Before signing, the SDK reads the chain id and genesis of the node it sends to and refuses to sign if they are not the network you chose.
Modules
| Module | What it does |
|---|---|
vordium.Vordex | markets, oracle and mark prices, the book, funding, positions, balance; places and cancels orders signed by a session key |
vordium.domains | the EIP-712 domains, salts and separators for a chain id and genesis |
vordium.eip712 | the typed data and digest of every operation; sign_op, sign_agent_op |
vordium.agent_ops | agent registration, renaming, policies, lock clearing; sign_owner_op builds the exact /submit body |
vordium.policy | the agent policy rules, checked before you sign |
vordium.mm | batch requests, cancel all, modify, Market Maker Protection, one nonce clock per account |
vordium.schedule_cancel | the dead-man switch |
vordium.feeds | the market-maker feeds with snapshot, sequence and gap handling (standard library only) |
vordium.bridge_v4 | deposit checks, withdrawal intents, deposit and withdrawal status |
Examples
The Python quickstart and your first agent are complete, tested programs. A read:
# pip install vordium==1.4.6
from vordium import Vordex, use_network
use_network("testnet")
dex = Vordex()
for m in dex.markets()[:3]:
print(m["symbol"], m["mark_price"]) # this list carries plain decimal pricesNetwork facts last checked against the network 2026-10-22 13:00:37 UTC · mainnet spec v28 · testnet spec v8