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

# Withdraw from Trading

> Initiate a withdrawal from a Trading vault to the Funding vault.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/account/withdraw-from-trading
openapi: 3.1.0
info:
  title: ekiden-gateway
  description: >-
    API Gateway and WebSocket proxy based on Axum and Utoipa, handling auth,
    rate limiting, and connection buffering.
  license:
    name: ''
  version: 0.1.1
servers:
  - url: https://api.ekiden.fi/
    description: Production
  - url: https://api.staging.ekiden.fi/
    description: Staging
  - url: https://api.dev.ekiden.fi/
    description: Development
  - url: http://localhost:4020/
    description: Local
security: []
paths:
  /api/v1/account/withdraw-from-trading:
    post:
      tags:
        - Account
      summary: Withdraw from Trading
      description: Initiate a withdrawal from a Trading vault to the Funding vault.
      operationId: withdraw_from_trading
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WithdrawFromTradingRequest'
        required: true
      responses:
        '200':
          description: Withdrawal initiated
      security:
        - bearer_auth: []
components:
  schemas:
    WithdrawFromTradingRequest:
      type: object
      required:
        - amount
        - addr_from
        - addr_to
        - asset_metadata
        - nonce
        - signature
        - withdraw_available
      properties:
        addr_from:
          type: string
        addr_to:
          type: string
        amount:
          type: string
          example: '100.0'
        asset_metadata:
          type: string
        nonce:
          type: integer
          format: int64
          minimum: 0
        signature:
          type: string
        withdraw_available:
          type: boolean
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer

````