v1

latestOpenAPI 3.0.02026-07-2471143147.5 KB
Orders

Get TP/SL orders

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

get/v1/orders/tpsl

Query parameters

accountstring

Account address to query (hex format, required)

Account address to query (hex format)

market_idstring int64

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

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

start_timestring uint64

Start timestamp in nanoseconds (optional, inclusive)

Start timestamp in nanoseconds (inclusive)

end_timestring uint64

End timestamp in nanoseconds (optional, exclusive)

End timestamp in nanoseconds (exclusive)

pageinteger

Page number (1-based, default: 1)

Page number (1-based, default: 1)

limitinteger

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

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

statusesstring[]

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
stop_type'TAKE_PROFIT' | 'STOP_LOSS' | 'STOP_TYPE_NONE'

Filter by stop type (optional)

Filter by stop type: TAKE_PROFIT or STOP_LOSS

Response

A successful response.

totalstring int64

Total count of orders matching filters

pageinteger
limitinteger