# Fees

Trading Fee: charged when a user opens or closes a trading position on vDEX. It covers the cost associated with the creation and maintenance of the position. The exact amount of the opening fee can vary and is communicated to the user before the position is opened. The fee is currently locked at 0.1% of the position size for opening and closing of long and short positions.

Transaction Fee (trading fee, swap fee): levied on each trade executed on vDEX and calculated as a percentage of the total transaction value. These fees contribute to the operational costs of running vDEX, including security, user support, technology upgrades, and other infrastructure costs. The transaction fee is currently locked at 0.1%.

Funding Fee (borrow fee, cost of carry): associated with holding positions that are leveraged or held overnight to compensate the counterparty for the risk they take on by providing leverage. The funding fee is calculated every 4 hours.


---

# 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://vdex.gitbook.io/vdex/overview/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.
