> ## Documentation Index
> Fetch the complete documentation index at: https://docs.exponent.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Open orders by wallet

> Returns open orderbook orders for a user.

export const ApiResponse = ({children, errors = {}}) => {
  const [status, setStatus] = useState("200");
  const statuses = ["200", ...Object.keys(errors)];
  return <section className="api-response" aria-label="Response">
      <div className="api-response-header not-prose">
        <h2>Response</h2>
        <div className="api-response-format">
          {statuses.length > 1 ? <select aria-label="Response status" value={status} onChange={event => setStatus(event.target.value)}>
              {statuses.map(code => <option key={code} value={code}>{code}</option>)}
            </select> : <span>200</span>}
          <span className="api-response-mime">application/json</span>
        </div>
      </div>
      <div hidden={status !== "200"}>{children}</div>
      {status !== "200" && <div aria-live="polite">
          {Object.entries(errors[status]).map(([name, value]) => <ResponseField key={name} name={name} type={value === null ? "null" : Array.isArray(value) ? "array" : typeof value}>
              {name === "error" ? "Error message describing why the request failed." : "Additional error details."}
            </ResponseField>)}
        </div>}
    </section>;
};

## Path parameters

<ParamField path="userAddress" type="string" required>
  User wallet address.
</ParamField>

<RequestExample dropdown>
  ```bash cURL theme={null}
  curl https://api.exponent.finance/open-orders/user/HRt73vbP87cUmzJJAH5tWyCuwyN9Syws2RxqND9pTMs4
  ```

  ```python Python theme={null}
  import requests

  response = requests.get("https://api.exponent.finance/open-orders/user/HRt73vbP87cUmzJJAH5tWyCuwyN9Syws2RxqND9pTMs4", timeout=30)
  response.raise_for_status()
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.exponent.finance/open-orders/user/HRt73vbP87cUmzJJAH5tWyCuwyN9Syws2RxqND9pTMs4");
  if (!response.ok) {
    throw new Error(`Request failed: ${response.status}`);
  }
  const data = await response.json();
  console.log(data);
  ```
</RequestExample>

<ApiResponse errors={{}}>
  <ResponseField name="id" type="number">
    Indexed order ID.
  </ResponseField>

  <ResponseField name="post_offer_event_id" type="number">
    Posting event identity; distinguishes reused offer indices.
  </ResponseField>

  <ResponseField name="offer_idx" type="number">
    On-chain offer index.
  </ResponseField>

  <ResponseField name="orderbook_address" type="string">
    Orderbook account associated with the order or reward.
  </ResponseField>

  <ResponseField name="vault_address" type="string">
    Associated vault.
  </ResponseField>

  <ResponseField name="user_address" type="string">
    Order owner.
  </ResponseField>

  <ResponseField name="original_amount" type="number">
    Original raw input amount.
  </ResponseField>

  <ResponseField name="amount_remaining" type="number">
    Raw unfilled amount.
  </ResponseField>

  <ResponseField name="price_implied_apy" type="number">
    Logarithmic annual rate scaled by 1,000,000. APY percent is `(exp(value / 1000000) - 1) × 100`.
  </ResponseField>

  <ResponseField name="order_type" type="string">
    `buyPT`, `sellPT`, `buyYT`, or `sellYT`.
  </ResponseField>

  <ResponseField name="expiry_seconds" type="number">
    Configured expiry duration; zero means no expiry.
  </ResponseField>

  <ResponseField name="expiry_at" type="string | null">
    Order expiry timestamp.
  </ResponseField>

  <ResponseField name="is_removed" type="boolean">
    Cancellation flag.
  </ResponseField>

  <ResponseField name="remove_tx_signature" type="string | null">
    Cancellation signature, if applicable.
  </ResponseField>

  <ResponseField name="options" type="object">
    Order execution options.
  </ResponseField>

  <ResponseField name="tx_signature" type="string">
    Posting transaction signature.
  </ResponseField>

  <ResponseField name="created_at" type="string">
    Posting timestamp.
  </ResponseField>

  <ResponseField name="updated_at" type="string">
    Latest indexed update timestamp.
  </ResponseField>
</ApiResponse>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "id": 130370,
      "post_offer_event_id": 35154,
      "offer_idx": 2,
      "orderbook_address": "8JtnQcProV3bF1KUF9ohqRrnGpQCmMjTS6XxXv1aoXam",
      "vault_address": "Cmry6B5824MGAKrtL2u7YG9PiLZLoTBWs8hVaCJeUFaH",
      "user_address": "HRt73vbP87cUmzJJAH5tWyCuwyN9Syws2RxqND9pTMs4",
      "original_amount": 7152337,
      "amount_remaining": 7152337,
      "price_implied_apy": 107508,
      "order_type": "buyYT",
      "expiry_seconds": 604800,
      "options": {
        "__kind": "FillOrKill",
        "fields": [
          false
        ]
      },
      "tx_signature": "5UUMmWPeFqTPqgDAxEWQPoiGzf527LrbsXVYRhr3iJw2gSY28Z3gHv5RKoTtLXK8vz2WSWUuZU5WMeoxKBSTpiKR",
      "created_at": "2026-10-13T15:39:51+00:00",
      "updated_at": "2026-10-13T15:39:51+00:00",
      "expiry_at": "2026-10-20T15:39:51+00:00",
      "is_removed": false,
      "remove_tx_signature": null,
      "amount_received": null,
      "amount_filled": null,
      "filled_implied_apy": null
    }
  ]
  ```
</ResponseExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.