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

# svm venue: openbook-v2

> 8 exports of the openbook-v2 venue integration in @eco-incorp/sauce/svm, including OPENBOOK_V2_PROGRAM_ID, MARKET_ACCOUNT_SIZE, BOOKSIDE_ACCOUNT_SIZE, OPENBOOK_V2_MAX_ORDERS, fetchOpenBookV2Config, OpenBookV2Order.

Solana venue integration `openbook-v2` under `svm/venues/openbook-v2`.

<Note>
  Generated from the type declarations shipped in `@eco-incorp/sauce` 0.99.4. Each entry shows the package authors' JSDoc and declaration for this SDK version. For runtime compatibility and deployed addresses, see [architecture and deployments](/programmable-transactions/sauce/architecture-and-deployments).
</Note>

### `OPENBOOK_V2_PROGRAM_ID`

*Variable* · `sdk/dist/svm/venues/openbook-v2/index.d.ts`

```typescript theme={null}
OPENBOOK_V2_PROGRAM_ID: Address<"opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb">
```

### `MARKET_ACCOUNT_SIZE`

*Variable* · `sdk/dist/svm/venues/openbook-v2/index.d.ts`

```typescript theme={null}
MARKET_ACCOUNT_SIZE = 848
```

### `BOOKSIDE_ACCOUNT_SIZE`

*Variable* · `sdk/dist/svm/venues/openbook-v2/index.d.ts`

```typescript theme={null}
BOOKSIDE_ACCOUNT_SIZE = 90952
```

### `OPENBOOK_V2_MAX_ORDERS`

*Variable* · `sdk/dist/svm/venues/openbook-v2/index.d.ts`

Shipped resting-order window depth per direction - a heavy fixed setup cost (unrolled live
reads over a 90KB BookSide account), same 'stable'/degrade-first class as manifest/whirlpool.

```typescript theme={null}
OPENBOOK_V2_MAX_ORDERS = 4
```

### `fetchOpenBookV2Config`

*Function* · `sdk/dist/svm/venues/openbook-v2/index.d.ts`

```typescript theme={null}
export declare function fetchOpenBookV2Config(load: AccountLoader, pool: Address): Promise<OpenBookV2PoolConfig>;
```

### `OpenBookV2Order`

*Interface* · `sdk/dist/svm/venues/openbook-v2/index.d.ts`

One shipped, prepare-time-selected resting order (see the header for the identity contract).

```typescript theme={null}
export interface OpenBookV2Order {
    nodeOffset: number;
    key: bigint;
    priceLots: bigint;
}
```

### `OpenBookV2Window`

*Interface* · `sdk/dist/svm/venues/openbook-v2/index.d.ts`

```typescript theme={null}
export interface OpenBookV2Window {
    orders: OpenBookV2Order[];
}
```

### `OpenBookV2PoolConfig`

*Interface* · `sdk/dist/svm/venues/openbook-v2/index.d.ts`

```typescript theme={null}
export interface OpenBookV2PoolConfig extends PoolConfig {
    venue: typeof SLUG;
    direction: "baseIn" | "quoteIn";
    baseMint: Address;
    quoteMint: Address;
    bidsAccount: Address;
    asksAccount: Address;
    eventHeap: Address;
    marketBaseVault: Address;
    marketQuoteVault: Address;
    marketAuthority: Address;
    baseDecimals: number;
    quoteDecimals: number;
    baseLotSize: bigint;
    quoteLotSize: bigint;
    takerFeePpm: bigint;
    makerRebatePpm: bigint;
    timeExpiry: bigint;
    oracleA?: Address;
    oracleB?: Address;
    windows: {
        baseIn: OpenBookV2Window;
        quoteIn: OpenBookV2Window;
    };
}
```
