# Using the REST API

If you want to keep track of your trading activity on 21X DLT Exchange, you can use the [getParticipantOrders](https://gitlab.com/21.financeAG/21x-lab/-/blob/main/docs/api/exchange/get-participant-orders/README.md) and [getWalletOrders](https://gitlab.com/21.financeAG/21x-lab/-/blob/main/docs/api/exchange/get-wallet-orders/README.md) API endpoints to see your open orders. These endpoints allow you to query the status of your orders by providing either your participant ID or your wallet address.

The [getParticipantOrders](https://gitlab.com/21.financeAG/21x-lab/-/blob/main/docs/api/exchange/get-participant-orders/README.md) endpoint returns a list of all the open orders for all the wallets associated with your 21X account. You need to provide your participant ID as a parameter in the request URL, for example:

`https://edx.21x.com/api/v1/participants/123456789/orders`

The response will be a JSON object with an array of order objects, each containing information such as the order ID, the wallet ID, the trading pair, the order type, the price, the quantity, and the timestamp.

The [getWalletOrders](https://gitlab.com/21.financeAG/21x-lab/-/blob/main/docs/api/exchange/get-wallet-orders/README.md) endpoint returns a list of all the open orders for a specific wallet. You need to provide your wallet address as a parameter in the request URL, for example:

`https://edx.21x.com/api/v1/wallets/0x987654321/orders`

The response will be a JSON object with an array of order objects, similar to the [getParticipantOrders](https://gitlab.com/21.financeAG/21x-lab/-/blob/main/docs/api/exchange/get-participant-orders/README.md) endpoint.

By using these endpoints, you can easily monitor your open orders and manage your trading strategy on the 21X DLT Exchange.

Note that due to the inner workings of the blockchain, it can take a couple of seconds after you sent your order for it to show up in the list.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.21x.eu/sample-use-cases-and-code/open-order.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
