# LN Exchange

## LN Exchange Docs

- [About LN Exchange](https://docs.ln.exchange/readme.md): First Orderbook on Lightning Network
- [P2P & Spot](https://docs.ln.exchange/p2p-and-spot.md)
- [Perpetual](https://docs.ln.exchange/perpetual.md)
- [Margining](https://docs.ln.exchange/perpetual/margining.md)
- [Mark Price](https://docs.ln.exchange/perpetual/mark-price.md)
- [Fees Calculation](https://docs.ln.exchange/perpetual/fees-calculation.md)
- [Liquidation](https://docs.ln.exchange/perpetual/liquidation.md)
- [Funding Rates](https://docs.ln.exchange/perpetual/funding-rates.md)
- [Insurance Fund](https://docs.ln.exchange/perpetual/insurance-fund.md)
- [Price Oracle](https://docs.ln.exchange/price-oracle.md)
- [Hybrid Custody & Security](https://docs.ln.exchange/hybrid-custody-and-security.md)
- [Orderbook & Order Types](https://docs.ln.exchange/orderbook-order-types-fees.md)
- [Points & Rewards Program](https://docs.ln.exchange/points-and-rewards-program.md)
- [Explorer](https://docs.ln.exchange/explorer.md)
- [Lnfi Community Partner](https://docs.ln.exchange/lnfi-community-partner.md)
- [Trading Bonus Voucher](https://docs.ln.exchange/trading-bonus.md)
- [API](https://docs.ln.exchange/api.md)
- [Spot Trading API](https://docs.ln.exchange/api/spot-trading-api.md): LN Exchange Spot Trading API
- [Perpetual Trading API](https://docs.ln.exchange/api/perpetual-trading-api.md)
- [Brand Kit](https://docs.ln.exchange/brand-kit.md)
- [Connect Nostr](https://docs.ln.exchange/getting-started/connect-nostr.md)
- [Invite-Only: Use Referral Code or Become Lnfi Community Partner](https://docs.ln.exchange/getting-started/invite-only-use-referral-code-or-become-lnfi-community-partner.md)
- [Language Selection](https://docs.ln.exchange/getting-started/language-selection.md)
- [Deposit / Withdraw](https://docs.ln.exchange/getting-started/deposit-withdraw.md)
- [Spot Trading](https://docs.ln.exchange/getting-started/spot-trading.md): Buy and sell on the Spot market
- [Perpetual Trading](https://docs.ln.exchange/getting-started/perpetual.md): Trade USDT-margined and ALTCOIN-margined perpetual contracts with no expiration and leverage.
- [Referral (Coming soon)](https://docs.ln.exchange/getting-started/referral.md)


---

# 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://docs.ln.exchange/readme.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.
