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

# Drop currency conversion file at SFTP path

> Virtual operation. SFTP path is `<TBD>` per the source doc; placeholder
used here. Confirm with Tango operations.




## OpenAPI

````yaml /tango_common/integrations/guides/currency-conversion-file.yaml post /inbound/currency-conversion
openapi: 3.1.0
info:
  title: Tango Currency Conversion — File
  version: '0.5'
  description: |
    SFTP file-based inbound. Client drops a pipe-delimited file of forex rates;
    Tango picks the file up, inserts new rate entries into its forex table,
    and moves the file to `Processed/`. This integration ONLY creates new
    entries — it does not update existing ones.

    Field names in this file version differ from the API version's:
      source_currency_code (file) vs source_currency (API)
      to_currency_code     (file) vs converted_currency (API)
      exchange_rate        (file) vs spot_exchange_rate (API)
      Avg_rate             (file) vs avg_exchange_rate (API)
      exchg_rate_date      (file) vs exchange_rate_date (API)
    The file version also requires `client_id` (not present in the API). All
    file-side names preserved verbatim from the source data-mapping table.
  x-direction: inbound
  x-source: Client System
  x-destination: Tango
  x-transport: sftp
  x-file-format: pipe-delimited text (.txt)
  x-file-naming-convention: '{ClientName}_currency_conversion_MMDDYYYYHHMM.txt'
servers:
  - url: sftp://sftp.tangoanalytics.com
    description: Production SFTP
    x-environment: production
    x-path: <TBD>
  - url: sftp://sftpdev.tangoanalytics.com
    description: Test SFTP (SIT/UAT)
    x-environment: test
    x-path: <TBD>
security:
  - sftpUserPassword: []
tags:
  - name: Currency Conversion File
paths:
  /inbound/currency-conversion:
    post:
      tags:
        - Currency Conversion File
      summary: Drop currency conversion file at SFTP path
      description: |
        Virtual operation. SFTP path is `<TBD>` per the source doc; placeholder
        used here. Confirm with Tango operations.
      operationId: deliverCurrencyConversionFile
      requestBody:
        required: true
        content:
          text/plain:
            schema:
              type: string
              format: binary
              x-record-schema:
                $ref: '#/components/schemas/CurrencyRow'
      responses:
        '200':
          description: File received and queued for processing.
components:
  securitySchemes:
    sftpUserPassword:
      type: http
      scheme: basic

````