> ## Documentation Index
> Fetch the complete documentation index at: https://docs.exponent.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Low-level Codama-generated instruction builders for the Exponent CLMM program

# Raw Instructions

These are the low-level instruction builders generated by [Codama](https://github.com/codama-idl/codama) from the Exponent CLMM program IDL. They provide direct access to every onchain instruction, requiring you to manually resolve all accounts and serialize arguments.

<Tip>
  For most use cases, prefer the higher-level [MarketThree Instructions](/clmm/typescript/instructions/overview) which handle account resolution, address lookup tables, and CPI routing automatically.
</Tip>

## Installation

```bash theme={null}
npm install @exponent-labs/exponent-sdk @solana/web3.js @solana/codecs
```

All raw instructions are imported from the generated client:

```typescript theme={null}
import {
  createInitializeMarketInstruction,
  createDepositLiquidityInstruction,
  createTradePtInstruction,
  // ...
} from "@exponent-labs/exponent-sdk/client/clmm";
```

## Core Instructions

<CardGroup cols={2}>
  <Card title="Add Liquidity" href="/clmm/raw-instructions/raw-add-liquidity" />

  <Card title="Deposit Liquidity" href="/clmm/raw-instructions/raw-deposit-liquidity" />

  <Card title="Withdraw Liquidity" href="/clmm/raw-instructions/raw-withdraw-liquidity" />
</CardGroup>

## Trading Instructions

<CardGroup cols={2}>
  <Card title="Trade PT" href="/clmm/raw-instructions/raw-trade-pt" />

  <Card title="Trade PT Exact Out" href="/clmm/raw-instructions/raw-trade-pt-exact-out" />

  <Card title="Buy PT" href="/clmm/raw-instructions/raw-buy-pt" />

  <Card title="Sell PT" href="/clmm/raw-instructions/raw-sell-pt" />

  <Card title="Buy PT Exact Out" href="/clmm/raw-instructions/raw-buy-pt-exact-out" />

  <Card title="Sell PT Exact Out" href="/clmm/raw-instructions/raw-sell-pt-exact-out" />

  <Card title="Buy YT" href="/clmm/raw-instructions/raw-buy-yt" />

  <Card title="Sell YT" href="/clmm/raw-instructions/raw-sell-yt" />
</CardGroup>

## Wrapper Instructions

These instructions combine multiple operations atomically (e.g., minting SY and providing liquidity in one transaction).

<CardGroup cols={2}>
  <Card title="Wrapper Buy PT" href="/clmm/raw-instructions/raw-wrapper-buy-pt" />

  <Card title="Wrapper Sell PT" href="/clmm/raw-instructions/raw-wrapper-sell-pt" />

  <Card title="Wrapper Buy YT" href="/clmm/raw-instructions/raw-wrapper-buy-yt" />

  <Card title="Wrapper Sell YT" href="/clmm/raw-instructions/raw-wrapper-sell-yt" />

  <Card title="Wrapper Provide Liquidity" href="/clmm/raw-instructions/raw-wrapper-provide-liquidity" />

  <Card title="Wrapper Provide Liquidity Base" href="/clmm/raw-instructions/raw-wrapper-provide-liquidity-base" />

  <Card title="Wrapper Provide Liquidity Classic" href="/clmm/raw-instructions/raw-wrapper-provide-liquidity-classic" />

  <Card title="Wrapper Withdraw Liquidity" href="/clmm/raw-instructions/raw-wrapper-withdraw-liquidity" />

  <Card title="Wrapper Withdraw Liquidity Classic" href="/clmm/raw-instructions/raw-wrapper-withdraw-liquidity-classic" />
</CardGroup>

## Farm Instructions

<CardGroup cols={2}>
  <Card title="Market Accrue Emission" href="/clmm/raw-instructions/raw-market-accrue-emission" />
</CardGroup>
