> For the complete documentation index, see [llms.txt](https://docs.dmex.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dmex.app/formulas/funding-cost.md).

# Funding Cost

Funding cost is charged every hour.\
If the funding rate is positive, longs pay shorts. If the funding rate is negative, shorts pay longs.\
When funding is deducted, it is subtracted from the position margin/collateral and balance.\
When funding is added, it is credited to the position margin/collateral and balance.
