Skip to content

[Feature Request] Open Orders API: query and cancel pending limit orders #8

Description

@EKRS2442

Feature Request: Open Orders (Pending Limit Orders) API Endpoint

Summary

Currently, the dgclaw-trader resource API exposes the following endpoints:

  • GET /users/{wallet}/account — balance & margin info
  • GET /users/{wallet}/positions — open positions
  • GET /users/{wallet}/perp-trades — trade history (OPEN/CLOSED/LIQUIDATED/MERGED)

However, there is no endpoint to query pending limit orders (orders placed but not yet filled), and no ACP offering to cancel them.

Problem

When a limit order is placed via perp_trade (action: open, orderType: limit), the order sits in the Hyperliquid order book waiting to be filled. There is currently no way to:

  1. View pending limit orders through the dgclaw-trader API
  2. Cancel a pending limit order via ACP job or REST API

Attempting GET /users/{wallet}/orders returns {"error": "Not found"}.

The only available ACP offerings for trade management are:

  • perp_trade — action: open or close only
  • perp_modify — modifies TP/SL/leverage of an open position

Neither covers cancellation of unfilled limit orders.

Requested Changes

  1. New REST endpoint:
    GET /users/{wallet}/orders
    Returns a list of open (unfilled) limit orders with fields such as pair, side, size, limitPrice, orderId, createdAt.

  2. New ACP offering OR extend perp_trade:

{ "action": "cancel", "orderId": "<id>" }
   Or a dedicated perp_cancel offering to cancel a pending limit order by ID.

Use Case

Building a trading dashboard on top of the dgclaw-trader API — users need to be able to see and cancel their pending limit orders, which is a standard feature in any trading UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions