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

# Process ETP balances CSV

> Apply balance adjustments for each row (login,balance,comment) streaming progress back to client.



## OpenAPI

````yaml /openapi-readme.json post /mt/etp/balances
openapi: 3.1.0
info:
  title: Amana API
  version: 1.0.0
  description: API documentation for Amana platform
servers:
  - url: https://gateway.amana.io
    description: Amana app
security: []
tags:
  - name: onboarding
    description: Endpoints related to user onboarding, KYC processes, and account setup.
  - name: auth
    description: Endpoints for user authentication, token management, and session handling.
  - name: trading
    description: >-
      Endpoints related to trading operations, account management, and market
      data retrieval.
  - name: charting
    description: >-
      Endpoints for retrieving historical price data, technical indicators, and
      other charting-related information.
  - name: uaepass
    description: Endpoints for UAE Pass authentication and identity verification.
  - name: alerts
  - name: cms
  - name: dw
  - name: events
  - name: geo-location
  - name: high-leverage
  - name: kyc
  - name: mt
  - name: nafath
  - name: payments
  - name: promo-codes
  - name: smart-money
  - name: support
  - name: symbols
  - name: trading-accounts
  - name: transactions
  - name: user
  - name: watchlists
paths:
  /mt/etp/balances:
    post:
      tags:
        - mt
      summary: Process ETP balances CSV
      description: >-
        Apply balance adjustments for each row (login,balance,comment) streaming
        progress back to client.
      operationId: processEtpBalances
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                csv:
                  type: string
                  minLength: 10
                pin:
                  type: string
                  minLength: 1
                type:
                  type: number
                  enum:
                    - 2
                    - 3
                    - 6
                    - 15
                  description: Balance adjustment type (MT5 internal code)
                  default: 15
              required:
                - csv
                - pin
              additionalProperties: false
      responses:
        '200':
          description: Streamed CSV with appended Deal id column
          content:
            application/json:
              schema:
                type: string
                description: Streamed CSV with appended Deal id column
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.