Get TP/SL orders

Query Take Profit and Stop Loss orders with optional filters for market, status, stop type, and time range.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string

Account address to query (hex format, required)

Account address to query (hex format)

string

Market ID to filter (optional, 0 = all markets)

Market ID to filter. Use 0 or omit to query all markets.

string

Start timestamp in nanoseconds (optional, inclusive)

Start timestamp in nanoseconds (inclusive)

string

End timestamp in nanoseconds (optional, exclusive)

End timestamp in nanoseconds (exclusive)

int64

Page number (1-based, default: 1)

Page number (1-based, default: 1)

int64

Max number of items to return (default: 100, max: 1000)

Max items per page (default: 100, max: 1000)

statuses
array of strings

Filter by order statuses (optional, empty = all statuses)

Filter by statuses. Empty = all statuses.

  • TPSL_ORDER_STATUS_ACCEPTED: Order accepted, waiting for trigger
  • TPSL_ORDER_STATUS_TRIGGERED: Trigger condition met, executing
  • TPSL_ORDER_STATUS_SUCCESS: Order executed successfully
  • TPSL_ORDER_STATUS_CANCELLED: Order cancelled by user or system
statuses
Allowed:
string
enum
Defaults to TAKE_PROFIT

Filter by stop type (optional)

Filter by stop type: TAKE_PROFIT or STOP_LOSS

Allowed:
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json