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

# DEX & AMM Protocols

> Track LP positions, concentrated liquidity ranges, unclaimed fees, and pool analytics across 12 Solana DEX protocols.

# DEX & AMM Protocols

Nefarious tracks liquidity positions across **12 DEX and AMM protocols** on Solana. Automatically detect concentrated liquidity positions, LP tokens, unclaimed fees, and in-range status.

## Position Types

| Type        | Description                           |
| ----------- | ------------------------------------- |
| `liquidity` | Active LP positions in DEX pools      |
| `deposit`   | LP token holdings or basket positions |

***

<AccordionGroup>
  <Accordion title="Raydium" icon="arrows-rotate">
    The largest AMM on Solana with concentrated liquidity (CLMM) and standard AMM pools. Nefarious tracks both pool types with full fee and range data.

    **Position types:** `liquidity`

    **Enriched data:**

    * `apy` — Estimated annual yield
    * `aprFee` — Fee-based APR
    * `feesClaimable` — Unclaimed trading fees
    * `tickLower` / `tickUpper` — Concentrated liquidity price range bounds

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "raydium",
          "name": "Raydium",
          "url": "https://raydium.io",
          "category": "dex"
        },
        "totalValueUsd": 4200.00,
        "totalDepositedUsd": 4200.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "raydium-clmm-sol-usdc",
            "type": "liquidity",
            "name": "SOL-USDC CLMM",
            "valueUsd": 4200.00,
            "tokens": [
              {
                "mint": "So11111111111111111111111111111111111111112",
                "symbol": "SOL",
                "name": "Solana",
                "amount": "14000000000",
                "amountUsd": 2100.00,
                "decimals": 9
              },
              {
                "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "symbol": "USDC",
                "name": "USD Coin",
                "amount": "2100000000",
                "amountUsd": 2100.00,
                "decimals": 6
              }
            ],
            "metadata": {
              "apy": 45.2,
              "aprFee": 38.5,
              "tickLower": -10,
              "tickUpper": 10,
              "feesClaimable": [
                { "symbol": "SOL", "amountUsd": 12.50 },
                { "symbol": "USDC", "amountUsd": 8.30 }
              ]
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Orca" icon="arrows-rotate">
    Premier concentrated liquidity DEX on Solana powered by Whirlpool technology. Full position tracking with fee analytics.

    **Position types:** `liquidity`

    **Enriched data:**

    * `apy` — Estimated annual yield
    * `aprFee` — Fee-based APR
    * `feesClaimable` — Unclaimed trading fees
    * `tickLower` / `tickUpper` — Price range bounds

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "orca",
          "name": "Orca",
          "url": "https://www.orca.so",
          "category": "dex"
        },
        "totalValueUsd": 6500.00,
        "totalDepositedUsd": 6500.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "orca-whirlpool-msol-sol",
            "type": "liquidity",
            "name": "mSOL-SOL Whirlpool",
            "valueUsd": 6500.00,
            "tokens": [
              {
                "mint": "mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So",
                "symbol": "mSOL",
                "name": "Marinade SOL",
                "amount": "21666666666",
                "amountUsd": 3250.00,
                "decimals": 9
              },
              {
                "mint": "So11111111111111111111111111111111111111112",
                "symbol": "SOL",
                "name": "Solana",
                "amount": "21666666666",
                "amountUsd": 3250.00,
                "decimals": 9
              }
            ],
            "metadata": {
              "apy": 12.8,
              "aprFee": 10.5,
              "tickLower": -5,
              "tickUpper": 5,
              "feesClaimable": [
                { "symbol": "mSOL", "amountUsd": 4.20 },
                { "symbol": "SOL", "amountUsd": 3.80 }
              ]
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Meteora" icon="arrows-rotate">
    Dynamic liquidity market maker (DLMM) with adaptive fee tiers. Track all DLMM and standard pool positions.

    **Position types:** `liquidity`

    **Enriched data:**

    * `apy` — Estimated annual yield
    * `aprFee` — Fee-based APR
    * `feesClaimable` — Unclaimed trading fees

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "meteora",
          "name": "Meteora",
          "url": "https://meteora.ag",
          "category": "dex"
        },
        "totalValueUsd": 3400.00,
        "totalDepositedUsd": 3400.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "meteora-dlmm-sol-usdc",
            "type": "liquidity",
            "name": "SOL-USDC DLMM",
            "valueUsd": 3400.00,
            "tokens": [
              {
                "mint": "So11111111111111111111111111111111111111112",
                "symbol": "SOL",
                "name": "Solana",
                "amount": "11333333333",
                "amountUsd": 1700.00,
                "decimals": 9
              },
              {
                "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "symbol": "USDC",
                "name": "USD Coin",
                "amount": "1700000000",
                "amountUsd": 1700.00,
                "decimals": 6
              }
            ],
            "metadata": {
              "apy": 52.3,
              "aprFee": 48.1,
              "feesClaimable": [
                { "symbol": "SOL", "amountUsd": 18.50 },
                { "symbol": "USDC", "amountUsd": 15.20 }
              ]
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="PancakeSwap" icon="arrows-rotate">
    Multi-chain DEX now live on Solana with concentrated liquidity pools. Full CLMM position tracking.

    **Position types:** `liquidity`

    **Enriched data:**

    * `apy` — Estimated annual yield
    * `aprFee` — Fee-based APR
    * `feesClaimable` — Unclaimed trading fees
    * `tickLower` / `tickUpper` — Price range bounds

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "pancakeswap",
          "name": "PancakeSwap",
          "url": "https://pancakeswap.finance",
          "category": "dex"
        },
        "totalValueUsd": 2800.00,
        "totalDepositedUsd": 2800.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "pancake-clmm-sol-usdc",
            "type": "liquidity",
            "name": "SOL-USDC",
            "valueUsd": 2800.00,
            "tokens": [
              {
                "mint": "So11111111111111111111111111111111111111112",
                "symbol": "SOL",
                "name": "Solana",
                "amount": "9333333333",
                "amountUsd": 1400.00,
                "decimals": 9
              },
              {
                "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "symbol": "USDC",
                "name": "USD Coin",
                "amount": "1400000000",
                "amountUsd": 1400.00,
                "decimals": 6
              }
            ],
            "metadata": {
              "apy": 28.4,
              "aprFee": 24.0,
              "tickLower": -20,
              "tickUpper": 20,
              "feesClaimable": [
                { "symbol": "SOL", "amountUsd": 5.60 },
                { "symbol": "USDC", "amountUsd": 4.80 }
              ]
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="HawkFi" icon="arrows-rotate">
    Automated yield optimization across Solana DEX pools. Positions are tracked through the underlying pool protocols with HawkFi attribution.

    **Position types:** `liquidity`

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "hawkfi",
          "name": "HawkFi",
          "url": "https://www.hawkfi.ag",
          "category": "dex"
        },
        "totalValueUsd": 5100.00,
        "totalDepositedUsd": 5100.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "hawkfi-orca-sol-usdc",
            "type": "liquidity",
            "name": "SOL-USDC (via Orca)",
            "valueUsd": 5100.00,
            "tokens": [
              {
                "mint": "So11111111111111111111111111111111111111112",
                "symbol": "SOL",
                "name": "Solana",
                "amount": "17000000000",
                "amountUsd": 2550.00,
                "decimals": 9
              },
              {
                "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "symbol": "USDC",
                "name": "USD Coin",
                "amount": "2550000000",
                "amountUsd": 2550.00,
                "decimals": 6
              }
            ]
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Phoenix" icon="arrows-rotate">
    On-chain central limit order book (CLOB) DEX. Track open orders and resting liquidity on the order book.

    **Position types:** `liquidity`

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "phoenix",
          "name": "Phoenix",
          "url": "https://www.phoenix.trade",
          "category": "dex"
        },
        "totalValueUsd": 1200.00,
        "totalDepositedUsd": 1200.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "phoenix-order-sol-usdc",
            "type": "liquidity",
            "name": "SOL-USDC Open Order",
            "valueUsd": 1200.00,
            "tokens": [
              {
                "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "symbol": "USDC",
                "name": "USD Coin",
                "amount": "1200000000",
                "amountUsd": 1200.00,
                "decimals": 6
              }
            ]
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Manifest" icon="arrows-rotate">
    Decentralized exchange with on-chain order book. Track all resting orders and liquidity positions.

    **Position types:** `liquidity`

    **Enriched data:**

    * `poolAddress` — Market address

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "manifest",
          "name": "Manifest",
          "url": "https://manifest.trade",
          "category": "dex"
        },
        "totalValueUsd": 800.00,
        "totalDepositedUsd": 800.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "manifest-order-sol",
            "type": "liquidity",
            "name": "SOL-USDC Order",
            "valueUsd": 800.00,
            "tokens": [
              {
                "mint": "So11111111111111111111111111111111111111112",
                "symbol": "SOL",
                "name": "Solana",
                "amount": "5333333333",
                "amountUsd": 800.00,
                "decimals": 9
              }
            ],
            "metadata": {
              "poolAddress": "9xK4RvQz9nLfJdTPrayVBiDXvjGSaGU1q3LfUHNm9Xyz"
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Stabble" icon="arrows-rotate">
    Liquidity-efficient DEX with intelligent routing. Track LP token deposits across all pools.

    **Position types:** `deposit`

    **Enriched data:**

    * `poolAddress` — Pool address

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "stabble",
          "name": "Stabble",
          "url": "https://stabble.org",
          "category": "dex"
        },
        "totalValueUsd": 2400.00,
        "totalDepositedUsd": 2400.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "stabble-lp-usdc-usdt",
            "type": "deposit",
            "name": "USDC-USDT LP",
            "valueUsd": 2400.00,
            "tokens": [
              {
                "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "symbol": "USDC",
                "name": "USD Coin",
                "amount": "1200000000",
                "amountUsd": 1200.00,
                "decimals": 6
              },
              {
                "mint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
                "symbol": "USDT",
                "name": "Tether USD",
                "amount": "1200000000",
                "amountUsd": 1200.00,
                "decimals": 6
              }
            ],
            "metadata": {
              "poolAddress": "2xK4RvQz9nLfJdTPrayVBiDXvjGSaGU1q3LfUHNm9Pqr"
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Symmetry" icon="arrows-rotate">
    Token basket protocol for creating and holding diversified index funds on-chain. Track all basket token holdings with composition data.

    **Position types:** `deposit`

    **Enriched data:**

    * `composition` — Basket token composition breakdown
    * `rebalanceTimestamp` — Last rebalance time

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "symmetry",
          "name": "Symmetry",
          "url": "https://symmetry.fi",
          "category": "dex"
        },
        "totalValueUsd": 3500.00,
        "totalDepositedUsd": 3500.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "symmetry-basket-defi",
            "type": "deposit",
            "name": "Solana DeFi Index",
            "valueUsd": 3500.00,
            "tokens": [
              {
                "mint": "7SymBasketTokenMintAddress",
                "symbol": "sDEFI",
                "name": "Solana DeFi Index",
                "amount": "3500000000",
                "amountUsd": 3500.00,
                "decimals": 6
              }
            ],
            "metadata": {
              "composition": "SOL 40%, JitoSOL 25%, RAY 15%, ORCA 10%, JUP 10%",
              "rebalanceTimestamp": "2026-04-10T12:00:00Z"
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Perena" icon="arrows-rotate">
    Stablecoin infrastructure protocol. Track LP deposits across Perena's stablecoin pools.

    **Position types:** `deposit`

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "perena",
          "name": "Perena",
          "url": "https://app.perena.org",
          "category": "dex"
        },
        "totalValueUsd": 5000.00,
        "totalDepositedUsd": 5000.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "perena-lp-usdc",
            "type": "deposit",
            "name": "USDC Pool",
            "valueUsd": 5000.00,
            "tokens": [
              {
                "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "symbol": "USDC",
                "name": "USD Coin",
                "amount": "5000000000",
                "amountUsd": 5000.00,
                "decimals": 6
              }
            ]
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="RateX" icon="arrows-rotate">
    Yield trading and margin protocol on Solana. Track CLMM liquidity positions and margin market deposits.

    **Position types:** `liquidity`, `deposit`

    **Enriched data:**

    * `leverage` — Margin leverage
    * `healthFactor` — Account health
    * `apy` — Estimated yield

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "ratex",
          "name": "RateX",
          "url": "https://app.ratex.io",
          "category": "dex"
        },
        "totalValueUsd": 2200.00,
        "totalDepositedUsd": 2200.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "ratex-lp-sol",
            "type": "liquidity",
            "name": "SOL Yield LP",
            "valueUsd": 2200.00,
            "tokens": [
              {
                "mint": "So11111111111111111111111111111111111111112",
                "symbol": "SOL",
                "name": "Solana",
                "amount": "14666666666",
                "amountUsd": 2200.00,
                "decimals": 9
              }
            ],
            "metadata": {
              "apy": 18.5
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="PumpSwap" icon="arrows-rotate">
    AMM from the Pump.fun ecosystem for token liquidity. Track all LP positions with pool data.

    **Position types:** `liquidity`

    **Enriched data:**

    * `poolAddress` — Pool address

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "pump",
          "name": "PumpSwap",
          "url": "https://pump.fun",
          "category": "dex"
        },
        "totalValueUsd": 640.00,
        "totalDepositedUsd": 640.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "pump-lp-token-sol",
            "type": "liquidity",
            "name": "TOKEN-SOL LP",
            "valueUsd": 640.00,
            "tokens": [
              {
                "mint": "So11111111111111111111111111111111111111112",
                "symbol": "SOL",
                "name": "Solana",
                "amount": "2133333333",
                "amountUsd": 320.00,
                "decimals": 9
              },
              {
                "mint": "TokenMintAddress123",
                "symbol": "TOKEN",
                "name": "Example Token",
                "amount": "1000000000",
                "amountUsd": 320.00,
                "decimals": 6
              }
            ],
            "metadata": {
              "poolAddress": "5xK4RvQz9nLfJdTPrayVBiDXvjGSaGU1q3LfUHNm9Stu"
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>
</AccordionGroup>
