curl --request GET \
--url https://api.example.com/api/v1/trade/open{
"message": [
{
"orderId": "ord_1234567890abcdef",
"symbol": "BTCUSD",
"type": "BUY",
"quantity": 0.5,
"leverage": 10,
"openPrice": 42000.00,
"currentPrice": 42350.75,
"profit": 175.38,
"takeProfit": 45000.00,
"stopLoss": 40000.00,
"openTime": "2026-03-03T10:30:00.000Z",
"status": "OPEN"
},
{
"orderId": "ord_fedcba0987654321",
"symbol": "ETHUSD",
"type": "SELL",
"quantity": 2.0,
"leverage": 20,
"openPrice": 1900.00,
"currentPrice": 1875.50,
"profit": 49.00,
"takeProfit": 1800.00,
"stopLoss": 1950.00,
"openTime": "2026-03-03T09:15:00.000Z",
"status": "OPEN"
}
]
}
Retrieve all open trading orders for the authenticated user
curl --request GET \
--url https://api.example.com/api/v1/trade/open{
"message": [
{
"orderId": "ord_1234567890abcdef",
"symbol": "BTCUSD",
"type": "BUY",
"quantity": 0.5,
"leverage": 10,
"openPrice": 42000.00,
"currentPrice": 42350.75,
"profit": 175.38,
"takeProfit": 45000.00,
"stopLoss": 40000.00,
"openTime": "2026-03-03T10:30:00.000Z",
"status": "OPEN"
},
{
"orderId": "ord_fedcba0987654321",
"symbol": "ETHUSD",
"type": "SELL",
"quantity": 2.0,
"leverage": 20,
"openPrice": 1900.00,
"currentPrice": 1875.50,
"profit": 49.00,
"takeProfit": 1800.00,
"stopLoss": 1950.00,
"openTime": "2026-03-03T09:15:00.000Z",
"status": "OPEN"
}
]
}
Retrieves a list of all currently open trading orders for the authenticated user. This endpoint allows you to monitor your active positions in real-time.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/lakshay-goyal/Exness/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer <your_jwt_token>
200 - Successfully retrieved open orders (may be empty array)401 - Unauthorized - invalid or expired token500 - Internal server errorcurl -X GET https://api.exness.com/api/v1/trade/orders \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
{
"message": [
{
"orderId": "ord_1234567890abcdef",
"symbol": "BTCUSD",
"type": "BUY",
"quantity": 0.5,
"leverage": 10,
"openPrice": 42000.00,
"currentPrice": 42350.75,
"profit": 175.38,
"takeProfit": 45000.00,
"stopLoss": 40000.00,
"openTime": "2026-03-03T10:30:00.000Z",
"status": "OPEN"
},
{
"orderId": "ord_fedcba0987654321",
"symbol": "ETHUSD",
"type": "SELL",
"quantity": 2.0,
"leverage": 20,
"openPrice": 1900.00,
"currentPrice": 1875.50,
"profit": 49.00,
"takeProfit": 1800.00,
"stopLoss": 1950.00,
"openTime": "2026-03-03T09:15:00.000Z",
"status": "OPEN"
}
]
}
curl -X GET https://api.exness.com/api/v1/trade/orders \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
{
"message": []
}
curl -X GET https://api.exness.com/api/v1/trade/orders \
-H "Authorization: Bearer invalid_token"
{
"error": "Unauthorized"
}
{
"error": "Token expired or invalid"
}
/api/v1/trade/create to open new positionsprofit field to see unrealized gains/losses/api/v1/trade/close to close positions# Poll every 5 seconds for real-time updates
while true; do
curl -X GET https://api.exness.com/api/v1/trade/orders \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"
sleep 5
done
const response = await fetch('https://api.exness.com/api/v1/trade/orders', {
headers: {
'Authorization': `Bearer ${token}`
}
});
const data = await response.json();
const orders = data.message;
// Calculate total exposure
const totalExposure = orders.reduce((sum, order) => {
return sum + (order.quantity * order.openPrice * order.leverage);
}, 0);
// Calculate total unrealized P&L
const totalProfit = orders.reduce((sum, order) => {
return sum + order.profit;
}, 0);
console.log(`Total Exposure: $${totalExposure.toFixed(2)}`);
console.log(`Total Unrealized P&L: $${totalProfit.toFixed(2)}`);
/api/v1/trade/close for closed order historymessage field contains a JSON-stringified array that should be parsed by the client