SDK
Python SDK
Full reference for vordium v0.3.1 — install with pip install vordium==0.3.1
VordiumClient
from vordium import VordiumClient
client = VordiumClient("0x_your_private_key")Prices & Markets
markets = client.get_markets() # All perp markets with prices
rates = client.get_funding_rates() # Current funding rates
pool = client.get_pool_stats() # VLP pool mark-to-marketPerpetual Trading
# Open a long position
result = client.open_position(
pair_id=1, # ETH=1 BTC=2 BNB=3 SOL=4 POL=5 ARB=6 OP=7 AVAX=8
# LINK=9 UNI=10 DOGE=11 XRP=12 ADA=13 DOT=14 SUI=15
is_long=True,
margin=10.0, # $10 USDC
leverage=5,
)
# Get open positions
positions = client.get_positions()
# Close a position (full or partial)
client.close_position(position_id=1)
client.close_position(position_id=1, close_size=0.005)
# Set take-profit and stop-loss
client.set_tp_sl(
position_id=1,
tp_price=2500.0,
sl_price=2100.0,
)Order Book
book = client.get_orderbook(pair_id=1) # ETH order book
stats = client.get_stats() # Engine health & statsPair IDs
Pairs are loaded dynamically from /api/pairs/perps. All pairs support up to 50x leverage. Use the endpoint to get the current list of pair IDs, symbols, and parameters.