VORDIUM DOCS
Trading Infrastructure

Orderbook

VordCore native orderbook for all trading pairs.

The orderbook is managed natively by VordCore. There is no on-chain orderbook contract. All order placement, matching, and settlement happen through the VordCore execution layer with instant BFT finality. Prices are in 1e6 format (e.g. ETH at $2300 = 2300000000). Sizes are in 1e18 format.

Side values

  • 0 = Buy
  • 1 = Sell

Pair IDs

PairID
ETH1
BTC2
BNB3
SOL4
POL5
ARB6
OP7
AVAX8
LINK9
UNI10
DOGE11
XRP12
ADA13
DOT14
SUI15

VordCore API

Bash
# Place an order (requires session key)
POST https://rpc.vordium.com/order/place
Body: { pair_id, side: "Buy"|"Sell", size, owner, session_key, order_type: "Market"|"Limit", price, leverage, signature }

# Cancel an order
POST https://rpc.vordium.com/order/cancel
Body: { order_id, owner, signature, session_key }

# Get orderbook
GET https://rpc.vordium.com/orderbook/{pair_id}

# Get open orders for address
GET https://rpc.vordium.com/orders/{address}
function getAvailableLiquidity(uint256 pairId, uint8 side, uint256 worstPrice) external view returns (uint256);
function getPairBids(uint256 pairId) external view returns (Order[] memory);
function getPairAsks(uint256 pairId) external view returns (Order[] memory);

Example — Place a limit buy order