Skip to main content
Obelisk DEX
Documentation/API Reference

🔌 API Reference

REST API Obelisk DEX — Base URL: http://localhost:3001

Authentification

Toutes les requêtes nécessitent un header Authorization: Bearer <token>.
Obtenez votre token via POST /api/auth/login avec votre wallet signature.
En mode démo, le header est optionnel.

Endpoints Principaux

MéthodeEndpointDescription
GET/api/marketsListe tous les marchés disponibles avec prix, volume, spread.
GET/api/trade/equityEquity, positions ouvertes et PnL du compte.
POST/api/trade/orderPlacer un ordre market ou limit.
POST/api/trade/venue/closeFermer une position par ID ou symbole.
GET/api/blockchain/chainsChains supportées et balances.
POST/api/blockchain/batchBatch settlement multi-transactions (80% économie gas).

Exemple — Placer un Ordre

POST /api/trade/order

curl -X POST http://localhost:3001/api/trade/order \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <token>" \
  -d '{
    "symbol": "BTC/USDC",
    "side": "buy",
    "size": 5,
    "leverage": 3,
    "stopLoss": 2,
    "takeProfit": 4,
    "source": "api"
  }'
© 2026 Obelisk DEX — API Reference