API Reference

Complete reference for all ONVEXIS platform API endpoints. All endpoints require authentication unless otherwise specified.

Authentication

POST /api/auth/login
Authenticate user and establish session for trading platform access.
Request Body
username string required
User's login identifier
password string required
User's password
Response
{ "success": true, "user": { "id": "user_123", "username": "trader_pro", "role": "trader" }, "sessionId": "sess_abc123" }

Trading & Orders

POST /api/orders
Place a new trading order with smart execution and protocol validation.
Request Body
type string required
Order type: "BUY", "SELL", "STOP_LIMIT"
quantity number required
Quantity to trade (in ETH)
price number
Limit price (required for STOP_LIMIT orders)
stopPrice number
Stop trigger price (for STOP_LIMIT orders)
Response
{ "success": true, "order": { "id": "order_789", "type": "BUY", "quantity": 0.5, "price": 4500.00, "status": "PENDING", "executionId": "exec_456", "timestamp": "2025-09-21T17:30:00Z" } }
GET /api/orders/:sessionId
Retrieve all orders for a specific trading session.
Path Parameters
sessionId string required
Trading session identifier
POST /api/orders/bracket
Create a bracket order with take-profit and stop-loss levels.
DELETE /api/orders/:orderId
Cancel an existing pending order.

Price & Market Data

GET /api/price
Get current ETH/USD price with trend analysis and market indicators.
Response
{ "price": 4476.18, "trend": "up", "change24h": 2.34, "changePercent24h": 0.052, "volatility": 0.0234, "timestamp": "2025-09-21T17:30:00Z", "source": "aggregated" }
GET /api/volatility
Get current volatility metrics and ATR analysis.
GET /api/volatility/history
Historical volatility data for pattern analysis.

Session Management

GET /api/session
Get current trading session information and status.
POST /api/session/archive
Archive current session and generate performance report.
GET /api/session/export
Export session data and analytics in various formats.

Portfolio & Risk Management

GET /api/portfolio/exposure/status
Get current portfolio exposure and risk metrics.
POST /api/portfolio/daily-loss/check
Check daily loss limits and risk parameters.

Health & Status

GET /api/health
System health check and status overview.
GET /api/auto-heal/status
Auto-healing system status and recent recovery events.