# 1-Click trading

When connecting an external wallet to DMEX, the user must sign every action with the connected wallet (order creation, order cancellation, margin updates, withdrawals). This can become cumbersome when a trader performs multiple actions in a short time or uses DMEX from a mobile device.

To improve the user experience, we have introduced **1-Click trading**. When enabled, the browser generates a fresh wallet and private key, then stores them locally in the user's browser. The generated wallet address (not the private key) is sent to the smart contract and registered as a delegate for the main wallet. This allows the frontend to sign and send requests using the delegate's private key to perform most actions—**except withdrawals**, which still require a signature from the main wallet. The delegate authorization remains valid for 24 hours, after which a new authorization must be issued.

Once 1-Click trading is enabled, the user can perform actions without signing each time in their wallet. To revoke the delegate wallet's authorization, go to the **Wallets** dropdown in the top-right corner and click **"Disable 1-Click trading"** below your wallet address.


---

# 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.dmex.app/1-click-trading.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.
