> ## Documentation Index
> Fetch the complete documentation index at: https://injectivelabs-docs-ai-sdk.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Exchange

## Abstract

The `exchange` module is the heart of the Injective Chain which enables fully decentralized spot and derivative exchange.\
It is the *sine qua non* module of the chain and integrates tightly with the `auction`, `insurance`, `oracle`, and `peggy` modules.

The exchange protocol enables traders to create and trade on arbitrary spot and derivative markets.
The entire process of orderbook management, trade execution, order matching and settlement occurs on chain through the logic codified by the exchange module.

The `exchange` module enables the exchange of tokens on two types of markets:

1. `Derivative Market`: Either a `Perpetual Swap Market` or a `Futures Market`.
2. `Spot Market`

## Contents

1. [Derivative Market Concepts](/developers-native/injective/exchange/00_derivative_market_concepts)
2. [Spot Market Concepts](/developers-native/injective/exchange/01_spot_market_concepts)
3. [Other Concepts](/developers-native/injective/exchange/02_other_concepts)
4. [State](/developers-native/injective/exchange/03_state)
5. [State Transitions](/developers-native/injective/exchange/04_state_transitions)
6. [Messages](/developers-native/injective/exchange/05_messages)
7. [Proposals](/developers-native/injective/exchange/06_proposals)
8. [Begin Block](/developers-native/injective/exchange/07_begin_block)
9. [End Block](/developers-native/injective/exchange/08_end_block)
10. [Events](/developers-native/injective/exchange/09_events)
11. [Params](/developers-native/injective/exchange/10_params)
12. [MsgPrivilegedExecuteContract](/developers-native/injective/exchange/11_msg_privileged_execute_contract)
