> For the complete documentation index, see [llms.txt](https://cubexch.gitbook.io/cube-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cubexch.gitbook.io/cube-api/perpetual-futures.md).

# Perpetual Futures

[Perpetual futures contracts](/cube-api/perpetual-futures/contracts.md) are derivatives instruments that provide continuous exposure to an underlying asset without explicit expiration dates. These contracts maintain price alignment with the spot market through a funding rate mechanism.

The [funding rate](/cube-api/perpetual-futures/funding.md) facilitates price convergence between perpetual futures and spot markets by transferring payments between long and short position holders at regular intervals, typically every 8 hours, based on the magnitude divergence from the underlying spot price and a prevailing interest rate. When perpetual futures trade at a premium to spot, long positions pay shorts. Conversely, when perpetual futures trade at a discount, short positions pay longs.

Cube's perpetual futures trade on a central limit order book, which is a transparent system that matches orders based on their 'price time priority'. The highest bid (buy order) and lowest ask (offer or sell order) constitute the best market for a given contract, ensuring transparent and efficient execution. This best bid-ask spread is a component of funding rate determination.

Trading perpetual futures requires a Margin-enabled subaccount with sufficient collateral. Currently, all Cube perpetuals are denominated in and collateralized with USDC. Each contract specifies [margin requirements](/cube-api/perpetual-futures/margin.md) for opening and maintaining positions and open orders. Subaccounts that breach maintenance margin requirements are subject to [liquidation](/cube-api/perpetual-futures/liquidation.md).

Position maintenance costs fluctuate based on market conditions, as funding rates reflect the relative demand for long versus short exposure. During periods of strong directional sentiment, funding rates can impose significant holding costs on positions aligned with the prevailing market bias.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://cubexch.gitbook.io/cube-api/perpetual-futures.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.
