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

# Estimate Instant Slippage or Scheduled Withdrawal Windows

> Simulate withdrawal scenarios and get estimated slippage or scheduled windows



## OpenAPI

````yaml open-apis/0d.json post /vaults/{vault_id}/liquidity/simulate
openapi: 3.1.0
info:
  title: zerod_api
  description: 0D Master API for vaults
  license:
    name: MIT
    identifier: MIT
  version: 0.1.0
servers:
  - url: https://api.0d.finance/{version}
    variables:
      version:
        default: v1
        enum:
          - v1
security: []
tags:
  - name: zerod_bin
    description: 0d, master api
  - name: User
    description: User profile endpoints
  - name: Vaults
    description: Vault management endpoints
paths:
  /vaults/{vault_id}/liquidity/simulate:
    post:
      tags:
        - Vaults
      operationId: simulate_vault_liquidity
      parameters:
        - name: vault_id
          in: path
          description: Vault identifier
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LiquiditySimulateRequest'
        required: true
      responses:
        '200':
          description: Liquidity simulation result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LiquiditySimulateResponseDTO'
        '400':
          description: Invalid request body
        '404':
          description: Vault not found
        '500':
          description: Internal server error
components:
  schemas:
    LiquiditySimulateRequest:
      type: object
      required:
        - amount
      properties:
        amount:
          type: string
    LiquiditySimulateResponseDTO:
      type: object
      required:
        - amount
        - scheduled
      properties:
        amount:
          type: string
        instant:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/InstantLiquidityDTO'
        scheduled:
          type: array
          items:
            $ref: '#/components/schemas/ScheduledWindowDTO'
    InstantLiquidityDTO:
      type: object
      required:
        - supported
        - est_slippage_bps
        - cap_remaining
      properties:
        cap_remaining:
          type: string
        est_slippage_bps:
          type: integer
          format: int32
          minimum: 0
        supported:
          type: boolean
    ScheduledWindowDTO:
      type: object
      required:
        - window
        - expected_nav_date
      properties:
        expected_nav_date:
          type: string
        max_without_delay:
          type:
            - string
            - 'null'
        window:
          type: string

````