Admin

Debug TP/SL orders

Changed on

Debug a TP/SL order end to end: returns every tpsl_orders field plus the actual fill (execution price, filled size, filled time, fill status, slippage) joined from matches. All filters are optional and AND-combined.

get/admin/tpsl/debug

Request

Query parameters

accountstring

account + market_id + stop_type are REQUIRED. The latest matching order is returned (newest created_at) unless order_id pins an exact one. The other filters narrow further.

sender address (hex) — REQUIRED

market_idstring int64

REQUIRED

stop_typestring

TAKE_PROFIT | STOP_LOSS — REQUIRED

statusstring

ACCEPTED | TRIGGERED | EXECUTING | SUCCESS | CANCELLED, optional

trigger_price_minstring

filter stop_price >= this (human decimal), optional

trigger_price_maxstring

filter stop_price <= this (human decimal), optional

order_idstring

exact tpsl_orders.id (uuid), optional — pins the order

start_timestring uint64

created_at >= , unix nanoseconds, optional

end_timestring uint64

created_at < , unix nanoseconds, optional

Response

A successful response.

Changes