Skip to content

Orders

Retrieve all pending (resting) orders on the account. This includes limit orders, stop orders, and stop-limit orders that have not yet been triggered.

GET /v1/orders

This endpoint takes no parameters.

Terminal window
curl -X GET https://interface.xbtfx.com/v1/orders \
-H "Authorization: Bearer your_api_key_here"
[
{
"ticket": 87654321,
"symbol": "EURUSD",
"type": "buy_limit",
"volume": 0.5,
"price": 1.07500,
"sl": 1.07000,
"tp": 1.09000
}
]
FieldTypeDescription
ticketintegerOrder ticket number (unique identifier)
symbolstringTrading symbol
typestringOrder type (e.g., buy_limit, sell_limit, buy_stop, sell_stop, buy_stop_limit, sell_stop_limit)
volumenumberOrder volume in lots
pricenumberOrder trigger/limit price
slnumberStop loss price (0 if not set)
tpnumberTake profit price (0 if not set)