# Trading Wallet

The trading wallet is implemented using **2-of-2 Timelocked Multisig** where

* two signatures are required to authorize a transaction&#x20;
* one of the signatures expires after a specific period

The trading wallet combines the user wallet’s private key with the radFi backend private key. This ensures that neither party can replace the user's transactions until the transaction has been confirmed on radFi.

<figure><img src="/files/1z1IgnFEGiCKZ9aQ7flD" alt=""><figcaption></figcaption></figure>

### **Key Components**

**User Private Key**

* The private key controlled by the user.
* Contributes to the multisig authentication required for the trading wallet.

**Back-end Private Key**

* A private key managed by the radFi backend system.
* Ensures platform-level security and coordination in wallet operations.

**Create Trading Wallet API**

* This API takes inputs from both the **user's private key** and the **backend private key**.
* It processes these keys to generate a **radFi multisig trading wallet**.

**radFi Multisign Trading Wallet**

* A **multisignature wallet** that requires both private keys for transaction execution.
* Enhances security by ensuring that both parties (user and radFi backend) must approve actions.

### **Flow Overview**

* The **user private key** and **backend private key** are sent to the **Create Trading Wallet API**.
* The API processes the request and generates a **radFi multisign trading wallet**.
* This wallet is then used for secure trading operations within the radFi ecosystem.


---

# 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.radfi.co/technical-architecture/trading-wallet.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.
