# fx Docs

## fx Docs

- [f(x) Protocol Documentation](https://fxprotocol.gitbook.io/fx-docs/f-x-protocol-documentation.md): The official source of information regarding f(x) Protocol
- [Abstract](https://fxprotocol.gitbook.io/fx-docs/overview/abstract.md): The genesis of f(x) Protocol
- [Core Products of f(x) Protocol](https://fxprotocol.gitbook.io/fx-docs/overview/core-products-of-f-x-protocol.md)
- [f(x) Protocol: Stable Unit](https://fxprotocol.gitbook.io/fx-docs/overview/f-x-protocol-stable-unit.md)
- [Overview of f(x) Stablecoin Products (fTokens)](https://fxprotocol.gitbook.io/fx-docs/overview/overview-of-f-x-stablecoin-products-ftokens.md)
- [The f(x) Invariant](https://fxprotocol.gitbook.io/fx-docs/f-x-protocol-mechanisms/the-f-x-invariant.md)
- [Key Functions of f(x)](https://fxprotocol.gitbook.io/fx-docs/f-x-protocol-mechanisms/key-functions-of-f-x.md)
- [Creating a Leveraged LONG Position (xPOSITION)](https://fxprotocol.gitbook.io/fx-docs/f-x-protocol-mechanisms/creating-a-leveraged-long-position-xposition.md)
- [Creating a Leveraged SHORT Position (sPOSITION)](https://fxprotocol.gitbook.io/fx-docs/f-x-protocol-mechanisms/creating-a-leveraged-short-position-sposition.md)
- [fxMINT: borrowing fxUSD against your BTC and ETH](https://fxprotocol.gitbook.io/fx-docs/f-x-protocol-mechanisms/fxmint-borrowing-fxusd-against-your-btc-and-eth.md)
- [Rebalancing the Position (Liquidation Brake)](https://fxprotocol.gitbook.io/fx-docs/f-x-protocol-mechanisms/rebalancing-the-position-liquidation-brake.md)
- [Understanding the band system](https://fxprotocol.gitbook.io/fx-docs/f-x-protocol-mechanisms/rebalancing-the-position-liquidation-brake/understanding-the-band-system.md)
- [Liquidation process](https://fxprotocol.gitbook.io/fx-docs/f-x-protocol-mechanisms/rebalancing-the-position-liquidation-brake/liquidation-process.md)
- [Stability Pool](https://fxprotocol.gitbook.io/fx-docs/f-x-protocol-mechanisms/stability-pool.md)
- [Fees](https://fxprotocol.gitbook.io/fx-docs/f-x-protocol-mechanisms/fees.md)
- [Risk framework](https://fxprotocol.gitbook.io/fx-docs/risk-management/risk-framework.md)
- [Advanced Peg Protection Mechanisms](https://fxprotocol.gitbook.io/fx-docs/risk-management/advanced-peg-protection-mechanisms.md)
- [Understanding the redemption mechanism](https://fxprotocol.gitbook.io/fx-docs/risk-management/advanced-peg-protection-mechanisms/understanding-the-redemption-mechanism.md)
- [Risk parameters](https://fxprotocol.gitbook.io/fx-docs/risk-management/risk-parameters.md)
- [Oracle](https://fxprotocol.gitbook.io/fx-docs/risk-management/oracle.md): Learn more about f(x) V2 oracle mechanisms.
- [stETH](https://fxprotocol.gitbook.io/fx-docs/risk-management/oracle/steth.md): Learn more about f(x) V2 oracle mechanism.
- [ETH](https://fxprotocol.gitbook.io/fx-docs/risk-management/oracle/eth.md)
- [WBTC](https://fxprotocol.gitbook.io/fx-docs/risk-management/oracle/wbtc.md): Learn more about f(x) V2 oracle mechanism.
- [Audit Reports](https://fxprotocol.gitbook.io/fx-docs/risk-management/audit-reports.md)
- [USD high & sustainable yield](https://fxprotocol.gitbook.io/fx-docs/earn-with-f-x/usd-high-and-sustainable-yield.md)
- [$FXN Tokenomics](https://fxprotocol.gitbook.io/fx-docs/earn-with-f-x/usdfxn-tokenomics.md)
- [veFXN](https://fxprotocol.gitbook.io/fx-docs/earn-with-f-x/usdfxn-tokenomics/vefxn.md)
- [FXN Farming and veFXN Boost](https://fxprotocol.gitbook.io/fx-docs/earn-with-f-x/usdfxn-tokenomics/fxn-farming-and-vefxn-boost.md)
- [Protocol Revenue & Distribution](https://fxprotocol.gitbook.io/fx-docs/earn-with-f-x/protocol-revenue-and-distribution.md)
- [Get involved - Community Booster Program](https://fxprotocol.gitbook.io/fx-docs/power-to-the-people/get-involved-community-booster-program.md)
- [Referral Program](https://fxprotocol.gitbook.io/fx-docs/power-to-the-people/referral-program.md)
- [Is fxUSD an algorithmic stablecoin?](https://fxprotocol.gitbook.io/fx-docs/faq/is-fxusd-an-algorithmic-stablecoin.md)
- [Where does the yield come from?](https://fxprotocol.gitbook.io/fx-docs/faq/where-does-the-yield-come-from.md)
- [How do f(x) Protocol stablecoins maintain stability?](https://fxprotocol.gitbook.io/fx-docs/faq/how-do-f-x-protocol-stablecoins-maintain-stability.md)
- [Is there any LUNA-like risk?](https://fxprotocol.gitbook.io/fx-docs/faq/is-there-any-luna-like-risk.md)
- [How does f(x) Protocol minimize liquidations?](https://fxprotocol.gitbook.io/fx-docs/faq/how-does-f-x-protocol-minimize-liquidations.md)
- [How does f(x) Protocol minimize funding costs or annual interests?](https://fxprotocol.gitbook.io/fx-docs/faq/how-does-f-x-protocol-minimize-funding-costs-or-annual-interests.md)
- [What could go wrong?](https://fxprotocol.gitbook.io/fx-docs/faq/what-could-go-wrong.md)
- [Why are there different stablecoins?](https://fxprotocol.gitbook.io/fx-docs/faq/why-are-there-different-stablecoins.md)
- [What is the difference between f(x) Protocol V1 and V2?](https://fxprotocol.gitbook.io/fx-docs/faq/what-is-the-difference-between-f-x-protocol-v1-and-v2.md)
- [What price drop would it require for my fxMINT or xPOSITION to be rebalanced/liquidated?](https://fxprotocol.gitbook.io/fx-docs/faq/what-price-drop-would-it-require-for-my-fxmint-or-xposition-to-be-rebalanced-liquidated.md)
- [Why is my execution price different from what the chart displays?](https://fxprotocol.gitbook.io/fx-docs/faq/why-is-my-execution-price-different-from-what-the-chart-displays.md)
- [How to open a leverage position (xPOSITION)](https://fxprotocol.gitbook.io/fx-docs/guides/how-to-open-a-leverage-position-xposition.md)
- [How to close a leverage position (xPOSITION)](https://fxprotocol.gitbook.io/fx-docs/guides/how-to-close-a-leverage-position-xposition.md)
- [How to adjust your leverage / how to reduce your Liquidation Brake](https://fxprotocol.gitbook.io/fx-docs/guides/how-to-adjust-your-leverage-how-to-reduce-your-liquidation-brake.md)
- [How to add/reduce a leverage position?](https://fxprotocol.gitbook.io/fx-docs/guides/how-to-add-reduce-a-leverage-position.md)
- [How do the limit orders work?](https://fxprotocol.gitbook.io/fx-docs/guides/how-do-the-limit-orders-work.md)
- [How to stake into the stability pool?](https://fxprotocol.gitbook.io/fx-docs/guides/how-to-stake-into-the-stability-pool.md)
- [How to unstake from the stability pool?](https://fxprotocol.gitbook.io/fx-docs/guides/how-to-unstake-from-the-stability-pool.md)
- [Processing the rebalances and liquidations](https://fxprotocol.gitbook.io/fx-docs/developers/processing-the-rebalances-and-liquidations.md): Learn how to monitor and trigger rebalance and liquidation operations
- [Ticks](https://fxprotocol.gitbook.io/fx-docs/developers/processing-the-rebalances-and-liquidations/ticks.md)
- [Long Pool Integration](https://fxprotocol.gitbook.io/fx-docs/developers/processing-the-rebalances-and-liquidations/long-pool-integration.md)
- [Short Pool Integration](https://fxprotocol.gitbook.io/fx-docs/developers/processing-the-rebalances-and-liquidations/short-pool-integration.md)
- [CreditNotes](https://fxprotocol.gitbook.io/fx-docs/developers/processing-the-rebalances-and-liquidations/creditnotes.md)
- [Keeper Bots](https://fxprotocol.gitbook.io/fx-docs/developers/processing-the-rebalances-and-liquidations/keeper-bots.md)
- [Implementation Reference(s)](https://fxprotocol.gitbook.io/fx-docs/developers/processing-the-rebalances-and-liquidations/implementation-reference-s.md)
- [Integrating fxSAVE](https://fxprotocol.gitbook.io/fx-docs/developers/integrating-fxsave.md)
- [Integrating the f(x) limit orders](https://fxprotocol.gitbook.io/fx-docs/developers/integrating-the-f-x-limit-orders.md)
- [LimitOrderManager contracts](https://fxprotocol.gitbook.io/fx-docs/developers/integrating-the-f-x-limit-orders/limitordermanager-contracts.md)
- [Limit Order APIs](https://fxprotocol.gitbook.io/fx-docs/developers/integrating-the-f-x-limit-orders/limit-order-apis.md)
- [Token Breakdown](https://fxprotocol.gitbook.io/fx-docs/more/token-breakdown.md)
- [f(x) Protocol 1.0](https://fxprotocol.gitbook.io/fx-docs/more/f-x-protocol-1.0.md)
- [Leverage](https://fxprotocol.gitbook.io/fx-docs/more/f-x-protocol-1.0/leverage.md)
- [Earn](https://fxprotocol.gitbook.io/fx-docs/more/f-x-protocol-1.0/earn.md)
- [Stability Mechanism](https://fxprotocol.gitbook.io/fx-docs/more/f-x-protocol-1.0/stability-mechanism.md)
- [FX Auto-Compound](https://fxprotocol.gitbook.io/fx-docs/more/f-x-protocol-1.0/fx-auto-compound.md)
- [Oracle](https://fxprotocol.gitbook.io/fx-docs/more/f-x-protocol-1.0/oracle.md): Learn more about V1 oracle design.
- [Resources](https://fxprotocol.gitbook.io/fx-docs/more/resources.md)
- [Contracts](https://fxprotocol.gitbook.io/fx-docs/more/resources/contracts.md)
- [Multisig](https://fxprotocol.gitbook.io/fx-docs/more/resources/multisig.md)
- [Useful links](https://fxprotocol.gitbook.io/fx-docs/more/resources/useful-links.md)
- [Aladdin DAO](https://fxprotocol.gitbook.io/fx-docs/more/aladdin-dao.md): Building Secure and Decentralized Freedom with a Touch of Magic since 2021


---

# 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, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://fxprotocol.gitbook.io/fx-docs/f-x-protocol-documentation.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.
