# Fees

**Storm Trade users pay two types of fees:**

* 🔗 **Network Fee** — paid for executing transactions on the TON blockchain;
* ⚙️ **Storm Trade Protocol Fee** — paid for using the platform and executing trades.

***

## 🔗 TON Blockchain Network Fee

The network fee consists of several components and is calculated based on various factors such as transaction size, content, network state, and execution time.

> 💡 **Note:** It's difficult to predict the exact amount of the network fee in advance. That's why many services temporarily reserve a higher amount and refund the unused portion after the transaction is complete.

On Storm Trade, approximately **\~0.25 TON** is deducted when opening a position. **\~0.17 TON** is usually refunded back to the user’s wallet after execution.

### 📐 Network Fee Calculation Formula:

$$
Transaction Fee = Storage Fees + In Fwd Fees + Computation Fees + Action Fees + Out Fwd Fees
$$

| Component          | Description                                                                 |
| ------------------ | --------------------------------------------------------------------------- |
| `storage_fees`     | Fee for storing the smart contract in the blockchain when sending/receiving |
| `in_fwd_fees`      | Fee for delivering inbound external messages                                |
| `computation_fees` | Fee for executing code in the TON Virtual Machine (TVM)                     |
| `action_fees`      | Fee for executing smart contract actions                                    |
| `out_fwd_fees`     | Fee for sending outbound internal messages                                  |

***

## ⚙️ Storm Trade Protocol Fee

This fee is charged when **opening and closing a position** and is automatically deducted from the margin amount.

### 📊 Fee rates depend on the trading pair:

* 💰 For **USDT pairs** — from **0.06%** to **0.12%**
* 💎 For **TON/NOT pairs** — from **0.12%** to **0.2%**
* 💵 For **Currency pairs** — **0.06%**
* 🪙 For **Gold** — **0.08%**

> 💡 **Example:**\
> If you open a **100 USDT** position with **10x leverage** in a USDT pair:\
> `100 * 10 * 0.0012 = 1.2 USDT` will be charged as a trading fee.

***

## 🕒 Funding

**Funding** refers to hourly payments between traders on opposite sides of the market, commonly used in perpetual futures trading.

### 🔁 How funding works:

* If the majority opens long positions and funding turns positive:
  * 💸 **Long traders pay, short traders receive.**
* If the market is dominated by short positions and funding turns negative:
  * 💸 **Short traders pay, long traders receive.**

> 📌 Funding helps maintain the balance between supply and demand in perpetual futures markets.

***

🏄 *By understanding the fee structure, you can better manage your trades and reduce unnecessary costs on Storm Trade.*


---

# 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.storm.tg/trading-mechanics/fees.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.
