Using the REST API

If you want to keep track of your trading activity on 21X DLT Exchange, you can use the getParticipantOrdersarrow-up-right and getWalletOrdersarrow-up-right 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 getParticipantOrdersarrow-up-right 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 getWalletOrdersarrow-up-right 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 getParticipantOrdersarrow-up-right 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.

Last updated