Skip to main content
This walks through the full loop — from access request to a placed and cancelled order — against https://api.pro.xentfi.com.

Prerequisites

  • A XentFi Pro account and an API key with the Trade scope — see Authentication if you don’t have one yet.
  • An existing XentFi wallet ID (walletId) with a funded balance in the asset you want to trade. Wallets are shared with the core platform — see Wallet Management.

Step 1: Set your environment variables

Step 2: List available markets

Example response

Step 3: Check the order book

Example response

Step 4: Place an order

Example response (201 Created)
A 201 means the order was admitted, not filled — matching happens asynchronously on the market’s batch-auction cadence. See Order Book: Order lifecycle.

Step 5: Check order status and fills

Step 6: Cancel it (optional)

Only OPEN or PARTIALLY_FILLED orders can be cancelled — the reserved balance is released atomically.

Next steps

Order Book concepts

Order types, fees, and the full order lifecycle.

Liquidity & Settlement

How your trades settle on-chain.

Realtime updates

Subscribe to fills instead of polling.

API Reference

Every endpoint, request, and response schema.