Guides
Guides

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

ParameterTypeRequiredDescription
trade_currencystringYesQuery parameter. USDT or INR.
position_idstringNoQuery parameter. Position UUID.
order_typestringNoQuery parameter. Comma-separated list of LONG, SHORT, STOPLOSS, TAKEPROFIT.
limitnumberNoQuery parameter. Page size, default 20, maximum 50.
cursorstringNoQuery parameter. The next_cursor from the previous page.
start_timenumberNoQuery parameter. Unix time in milliseconds. When sent alone, only orders at or after this time are returned.
end_timenumberNoQuery 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

FieldDescription
itemsOpen orders and SL/TP legs, newest first.
next_cursorPass as cursor to get the next page. null on the last page.
idOrder UUID.
position_idPosition UUID.
asset_idAsset UUID.
symbolTrading pair (e.g. DOGEUSDT).
client_order_idClient order id, or null.
order_typeLONG / SHORT for orders; STOPLOSS / TAKEPROFIT for SL/TP legs.
trigger_typeMARKET or LIMIT.
statusOrders: 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_onlytrue when the order can only reduce the position. On SL/TP legs, as reported by the exchange.
priceLimit price for a LIMIT order or leg, including a conditional LIMIT. null for MARKET. A non-null price is always a limit price.
quantityOrders: 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_priceFilled quantity and average fill price.
leverageLeverage. Untriggered SL/TP legs return "0".
trigger_priceConditional orders and SL/TP legs: the trigger price. Otherwise null.
stop_order_type, trigger_direction, trigger_by, close_on_triggerConditional orders: STOP, RISE / FALL, LAST_PRICE, boolean. Otherwise null.
tpsl_modeOrders: the mode of its SL/TP, or null. SL/TP legs: FULL or PARTIAL.
stoploss_price, stoploss_limit_price, takeprofit_price, takeprofit_limit_priceOrders: its SL/TP prices, or null. SL/TP legs: null.
created_at / updated_atISO-8601 timestamps (UTC).

Errors

❕Common errors
HTTPError textMeaning / how to fix
400TradeCurrency This field is required.trade_currency is missing.
400OrderTypes[0] Unknown errorInvalid order_type value.
400PositionUUID Unknown errorposition_id is not a valid UUID.
400TradeCurrency Unknown errortrade_currency is not USDT or INR.
400Limit Max allowed length is 50limit above 50.
400Limit Min length should be 1limit below 1.
400invalid cursorUnknown cursor.
400Cursor Unknown errorcursor is not in the format of a next_cursor.
400start_time must not be after end_timestart_time is later than end_time.
400start_time and end_time must be at most 7 days apartTime 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, CREATED or PARTIAL_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_currency field.
  • Untriggered SL/TP legs: leverage is "0". This endpoint has no actual_amount field (the v1 open-orders row shows actual_amount: 0 on those legs).

Did this page help you?