> ## 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.

# Manage Prices

> Low-level instruction to manage price entries and price managers

# createManagePricesInstruction

Manages price entries and price managers in the ExponentPrices account. Supports adding, removing, and updating price configurations for tokens used in vault valuations. Only callable by registered price managers.

## Usage

```typescript theme={null}
import { createManagePricesInstruction } from "@exponent-labs/exponent-sdk/client/vaults";
import { PublicKey } from "@solana/web3.js";

const ix = createManagePricesInstruction(
  {
    manager: priceManagerKeypair.publicKey,
    exponentPrices: exponentPricesAddress,
  },
  {
    actions: [
      {
        addPriceEntry: {
          mint: usdcMint,
          oracleType: { pyth: {} },
          oracleAddress: pythUsdcFeedAddress,
        },
      },
      {
        addManager: {
          manager: newPriceManagerAddress,
        },
      },
    ],
  }
);
```

## Accounts

| Name             | Signer | Writable | Description                                      |
| ---------------- | ------ | -------- | ------------------------------------------------ |
| `manager`        | Yes    | Yes      | Registered price manager authorizing the changes |
| `exponentPrices` | No     | Yes      | ExponentPrices account to modify                 |

## Args

| Name      | Type                  | Description                                                                       |
| --------- | --------------------- | --------------------------------------------------------------------------------- |
| `actions` | `UpdatePriceAction[]` | Array of price management actions (add/remove price entries, add/remove managers) |

## Returns

`TransactionInstruction` — a transaction instruction ready to be added to a transaction.
