curl -X POST "https://api.roxom.com/api/v1/orders" \ -H "X-API-Key: your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "symbol": "OIL-BTC", "instType": "perpetual", "orderType": "market", "side": "buy", "qty": "12", "unit": "BTC" }'
{ "data": { "orderId": "01234567-89ab-7def-8123-456789abcdea" }, "error": false }
Place new trading orders on the Roxom platform
POST /api/v1/orders
your_api_key_here
Show Response properties
Price Validation
Quantity Validation
Balance Requirements
Insufficient Balance
{ "error": { "code": 400, "message": "Insufficient balance", "details": "Available balance: 0.005 BTC, required: 0.01 BTC" }, "timestamp": "2024-01-15T10:30:00Z", "requestId": "req_def456" }
Invalid Price
{ "error": { "code": 400, "message": "Price outside allowed range", "details": "Price must be between 40000.00 and 50000.00" }, "timestamp": "2024-01-15T10:30:00Z", "requestId": "req_ghi789" }
Market Closed
{ "error": { "code": 400, "message": "Market not available", "details": "Trading is currently halted for BTC-USD" }, "timestamp": "2024-01-15T10:30:00Z", "requestId": "req_jkl012" }
Order Size Strategy
Price Selection
Risk Management
Was this page helpful?