Open orders v2
List open orders and stop loss (SL) / take profit (TP) legs for one currency, newest first, with cursor paging and filters by position, order type and time. Decimal values are strings.
Request
# INR, all open orders
curl -X GET "https://trade.mudrex.com/fapi/v2/futures/orders?trade_currency=INR" \
-H "X-Authentication: your-secret-key"# One position's SL legs only
curl -X GET "https://trade.mudrex.com/fapi/v2/futures/orders?trade_currency=INR&position_id={position_id}&order_type=STOPLOSS" \
-H "X-Authentication: your-secret-key"# Next page
curl -X GET "https://trade.mudrex.com/fapi/v2/futures/orders?trade_currency=INR&limit=20&cursor={next_cursor}" \
-H "X-Authentication: your-secret-key"Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
trade_currency | string | Yes | Query parameter. USDT or INR. |
position_id | string | No | Query parameter. Position UUID. |
order_type | string | No | Query parameter. Comma-separated list of LONG, SHORT, STOPLOSS, TAKEPROFIT. |
limit | number | No | Query parameter. Page size, default 20, maximum 50. |
cursor | string | No | Query parameter. The next_cursor from the previous page. |
start_time | number | No | Query parameter. Unix time in milliseconds. When sent alone, only orders at or after this time are returned. |
end_time | number | No | Query parameter. Unix time in milliseconds. When sent alone, only orders at or before this time are returned. When both start_time and end_time are sent, they must be at most 7 days apart. |
Response
Status: 200 OK
Unfilled conditional LIMIT order with a partial LIMIT stop loss and a MARKET take profit:
{
"success": true,
"data": {
"items": [
{
"id": "01a1e244-d626-7e11-accb-64d03197410d",
"position_id": "01a1e244-d624-7d67-a232-93d31dc88540",
"asset_id": "01903bcd-4ce6-7759-90ea-c6bc68608aea",
"symbol": "DOGEUSDT",
"client_order_id": "my-conditional-1",
"order_type": "LONG",
"trigger_type": "LIMIT",
"status": "UNTRIGGERED",
"reduce_only": false,
"price": "0.05671",
"quantity": "100",
"filled_quantity": "0",
"filled_price": "0",
"leverage": "75",
"trigger_price": "0.05683",
"stop_order_type": "STOP",
"trigger_direction": "FALL",
"trigger_by": "LAST_PRICE",
"close_on_trigger": false,
"tpsl_mode": "PARTIAL",
"stoploss_price": "0.05506",
"stoploss_limit_price": "0.055",
"takeprofit_price": "0.06216",
"takeprofit_limit_price": null,
"created_at": "2026-11-16T02:52:05Z",
"updated_at": "2026-11-16T02:52:05Z"
}
],
"next_cursor": null
}
}Open position with a Full stop loss and a partial SL/TP pair (?position_id=...):
{
"success": true,
"data": {
"items": [
{
"id": "01a1e243-be6f-7291-8970-d3b91d923347",
"position_id": "01a1e243-a7c4-7b81-b6f3-0ce6c8256a06",
"asset_id": "01903bcd-4ce6-7759-90ea-c6bc68608aea",
"symbol": "DOGEUSDT",
"client_order_id": null,
"order_type": "STOPLOSS",
"trigger_type": "MARKET",
"status": "UNTRIGGERED",
"reduce_only": false,
"price": null,
"quantity": "100",
"filled_quantity": "0",
"filled_price": "0",
"leverage": "0",
"trigger_price": "0.05909",
"stop_order_type": null,
"trigger_direction": null,
"trigger_by": null,
"close_on_trigger": null,
"tpsl_mode": "FULL",
"stoploss_price": null,
"stoploss_limit_price": null,
"takeprofit_price": null,
"takeprofit_limit_price": null,
"created_at": "2026-11-16T02:50:53Z",
"updated_at": "2026-11-16T02:50:53Z"
},
{
"id": "01a1e243-bb42-7b41-b603-6799790f5fc7",
"position_id": "01a1e243-a7c4-7b81-b6f3-0ce6c8256a06",
"asset_id": "01903bcd-4ce6-7759-90ea-c6bc68608aea",
"symbol": "DOGEUSDT",
"client_order_id": null,
"order_type": "TAKEPROFIT",
"trigger_type": "MARKET",
"status": "UNTRIGGERED",
"reduce_only": false,
"price": null,
"quantity": "50",
"filled_quantity": "0",
"filled_price": "0",
"leverage": "0",
"trigger_price": "0.06104",
"stop_order_type": null,
"trigger_direction": null,
"trigger_by": null,
"close_on_trigger": null,
"tpsl_mode": "PARTIAL",
"stoploss_price": null,
"stoploss_limit_price": null,
"takeprofit_price": null,
"takeprofit_limit_price": null,
"created_at": "2026-11-16T02:50:52Z",
"updated_at": "2026-11-16T02:50:52Z"
},
{
"id": "01a1e243-bb42-7b3e-b473-6c480ae1d873",
"position_id": "01a1e243-a7c4-7b81-b6f3-0ce6c8256a06",
"asset_id": "01903bcd-4ce6-7759-90ea-c6bc68608aea",
"symbol": "DOGEUSDT",
"client_order_id": null,
"order_type": "STOPLOSS",
"trigger_type": "MARKET",
"status": "UNTRIGGERED",
"reduce_only": false,
"price": null,
"quantity": "50",
"filled_quantity": "0",
"filled_price": "0",
"leverage": "0",
"trigger_price": "0.05912",
"stop_order_type": null,
"trigger_direction": null,
"trigger_by": null,
"close_on_trigger": null,
"tpsl_mode": "PARTIAL",
"stoploss_price": null,
"stoploss_limit_price": null,
"takeprofit_price": null,
"takeprofit_limit_price": null,
"created_at": "2026-11-16T02:50:52Z",
"updated_at": "2026-11-16T02:50:52Z"
}
],
"next_cursor": null
}
}Response fields
| Field | Description |
|---|---|
items | Open orders and SL/TP legs, newest first. |
next_cursor | Pass as cursor to get the next page. null on the last page. |
id | Order UUID. |
position_id | Position UUID. |
asset_id | Asset UUID. |
symbol | Trading pair (e.g. DOGEUSDT). |
client_order_id | Client order id, or null. |
order_type | LONG / SHORT for orders; STOPLOSS / TAKEPROFIT for SL/TP legs. |
trigger_type | MARKET or LIMIT. |
status | Orders: UNTRIGGERED (waiting conditional order), CREATED or PARTIAL_FILLED. SL/TP legs: UNTRIGGERED, or CREATED / PARTIAL_FILLED when a triggered LIMIT leg rests on the book. |
reduce_only | true when the order can only reduce the position. On SL/TP legs, as reported by the exchange. |
price | Limit price for a LIMIT order or leg, including a conditional LIMIT. null for MARKET. A non-null price is always a limit price. |
quantity | Orders: order quantity. SL/TP legs: what the leg would still close. Partial: its size minus filled, capped at the position size. Full: the position size. |
filled_quantity / filled_price | Filled quantity and average fill price. |
leverage | Leverage. Untriggered SL/TP legs return "0". |
trigger_price | Conditional orders and SL/TP legs: the trigger price. Otherwise null. |
stop_order_type, trigger_direction, trigger_by, close_on_trigger | Conditional orders: STOP, RISE / FALL, LAST_PRICE, boolean. Otherwise null. |
tpsl_mode | Orders: the mode of its SL/TP, or null. SL/TP legs: FULL or PARTIAL. |
stoploss_price, stoploss_limit_price, takeprofit_price, takeprofit_limit_price | Orders: its SL/TP prices, or null. SL/TP legs: null. |
created_at / updated_at | ISO-8601 timestamps (UTC). |
Errors
Common errors
| HTTP | Error text | Meaning / how to fix |
|---|---|---|
| 400 | TradeCurrency This field is required. | trade_currency is missing. |
| 400 | OrderTypes[0] Unknown error | Invalid order_type value. |
| 400 | PositionUUID Unknown error | position_id is not a valid UUID. |
| 400 | TradeCurrency Unknown error | trade_currency is not USDT or INR. |
| 400 | Limit Max allowed length is 50 | limit above 50. |
| 400 | Limit Min length should be 1 | limit below 1. |
| 400 | invalid cursor | Unknown cursor. |
| 400 | Cursor Unknown error | cursor is not in the format of a next_cursor. |
| 400 | start_time must not be after end_time | start_time is later than end_time. |
| 400 | start_time and end_time must be at most 7 days apart | Time window longer than 7 days. |
These texts come from request validation and are not meant for display to end users.
For HTTP 429 and the Retry-After header, see Authentication & Rate Limits and Errors.
Notes
- What is listed: orders and SL/TP legs the exchange has confirmed, in
UNTRIGGERED,CREATEDorPARTIAL_FILLED. - SL/TP of an order with no fill yet: shown only in that order's SL/TP fields, with no id and no row of its own.
- SL/TP rows: an SL/TP gets its own row once its order has filled, or when it was set on the position.
- Partly filled order: its SL/TP fields show the prices further fills get, and its SL/TP rows cover the filled part.
- Currency: one currency per call. Rows carry no
trade_currencyfield. - Untriggered SL/TP legs:
leverageis"0". This endpoint has noactual_amountfield (the v1 open-orders row showsactual_amount: 0on those legs).
Updated 9 days ago
Did this page help you?
