# Create Deposit Address

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/account/deposit-addresses:
    post:
      summary: Create Deposit Address
      deprecated: false
      description: >-
        Generates your account's deposit address for a currency, or returns the
        one it already has.


        - `201 Created`: a new address was generated.

        - `200 OK`: you already had an address for the currency; it comes back
        unchanged. Calling again is safe.


        A first address can take several seconds to generate.


        `network` is optional and defaults to the currency's default network
        (`is_default` in `GET /v1/currencies`). For now, addresses can only be
        generated on the default network; any other network answers `400
        NETWORK_NOT_SUPPORTED`.


        Send the currency only on the returned `network`, and include
        `destination_tag` with every deposit when it is set; see `GET
        /v1/account/deposit-addresses`.


        ### Requirements


        - A **main-account token**: deposit addresses belong to your main
        account, and deposits to them are credited to it. A subaccount token
        gets `403 SUBACCOUNT_NOT_SUPPORTED`.

        - An API key with the `TRADE` or `WITHDRAW` scope, or a user session.

        - An active, verified account (`403 ACCOUNT_NOT_ELIGIBLE` otherwise),
        with deposits of the currency enabled for it (`403 DEPOSITS_NOT_ENABLED`
        otherwise).


        Rate limited.
      operationId: createDepositAddress
      tags:
        - One Trading Public REST API/Funding
        - One Trading Public REST API/Funding
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - currency
              properties:
                currency:
                  type: string
                  description: Currency code, e.g. `BTC`.
                  pattern: ^(?=.*[A-Z])[A-Z0-9]{1,8}$
                network:
                  type: string
                  description: >-
                    Network id from `GET /v1/currencies`. Optional; defaults to
                    the currency's default network, which is currently the only
                    one accepted.
              additionalProperties: false
              x-apidog-orders:
                - currency
                - network
            examples:
              default:
                value:
                  currency: BTC
                summary: Default network
              network:
                value:
                  currency: ETH
                  network: ETHEREUM
                summary: Network named
      responses:
        '200':
          x-apidog-name: OK
          description: >-
            You already had an address for the currency; it is returned
            unchanged.
          content:
            application/json:
              schema:
                type: object
                required:
                  - currency
                  - network
                  - address
                  - destination_tag
                  - destination_tag_type
                  - created_at
                  - deposit_enabled
                properties:
                  currency:
                    type: string
                    description: Currency code, e.g. `BTC`.
                  network:
                    type: string
                    description: >-
                      The network the address is on, as listed in the currency's
                      `networks` in `GET /v1/currencies`, e.g. `BITCOIN` or
                      `ETHEREUM`. Only send the currency on this network.
                  address:
                    type: string
                    description: The deposit address.
                  destination_tag:
                    type: string
                    description: >-
                      The tag to send with every deposit to this address, on
                      networks that need one (e.g. XRP Ledger). A deposit
                      without it cannot be credited. `null` when the network
                      needs none.
                    nullable: true
                  destination_tag_type:
                    type: string
                    enum:
                      - memo
                      - message
                      - destinationTag
                      - null
                    description: >-
                      What the network calls the tag: `destinationTag` (XRP
                      Ledger), `memo` (Stellar, Cosmos Hub, EOS) or `message`
                      (NEM). `null` when the network needs none.
                    nullable: true
                  created_at:
                    type: string
                    format: date-time
                    description: When the address was generated (ISO 8601, UTC).
                  deposit_enabled:
                    type: boolean
                    description: >-
                      Whether deposits of the currency to this address are
                      currently accepted for your account. `false` when deposits
                      have been disabled since the address was generated: the
                      address stays yours, but a deposit to it would not be
                      credited until they are enabled again.
                x-apidog-orders:
                  - currency
                  - network
                  - address
                  - destination_tag
                  - destination_tag_type
                  - created_at
                  - deposit_enabled
              example:
                currency: BTC
                network: BITCOIN
                address: bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh
                destination_tag: null
                destination_tag_type: null
                created_at: '2026-11-04T10:00:00.000Z'
                deposit_enabled: true
          headers: {}
        '201':
          x-apidog-name: Created
          description: A new address was generated.
          content:
            application/json:
              schema:
                type: object
                required:
                  - currency
                  - network
                  - address
                  - destination_tag
                  - destination_tag_type
                  - created_at
                  - deposit_enabled
                properties:
                  currency:
                    type: string
                    description: Currency code, e.g. `BTC`.
                  network:
                    type: string
                    description: >-
                      The network the address is on, as listed in the currency's
                      `networks` in `GET /v1/currencies`, e.g. `BITCOIN` or
                      `ETHEREUM`. Only send the currency on this network.
                  address:
                    type: string
                    description: The deposit address.
                  destination_tag:
                    type: string
                    description: >-
                      The tag to send with every deposit to this address, on
                      networks that need one (e.g. XRP Ledger). A deposit
                      without it cannot be credited. `null` when the network
                      needs none.
                    nullable: true
                  destination_tag_type:
                    type: string
                    enum:
                      - memo
                      - message
                      - destinationTag
                      - null
                    description: >-
                      What the network calls the tag: `destinationTag` (XRP
                      Ledger), `memo` (Stellar, Cosmos Hub, EOS) or `message`
                      (NEM). `null` when the network needs none.
                    nullable: true
                  created_at:
                    type: string
                    format: date-time
                    description: When the address was generated (ISO 8601, UTC).
                  deposit_enabled:
                    type: boolean
                    description: >-
                      Whether deposits of the currency to this address are
                      currently accepted for your account. `false` when deposits
                      have been disabled since the address was generated: the
                      address stays yours, but a deposit to it would not be
                      credited until they are enabled again.
                x-apidog-orders:
                  - currency
                  - network
                  - address
                  - destination_tag
                  - destination_tag_type
                  - created_at
                  - deposit_enabled
              examples:
                btc:
                  summary: BTC
                  value:
                    currency: BTC
                    network: BITCOIN
                    address: bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh
                    destination_tag: null
                    destination_tag_type: null
                    created_at: '2026-11-04T10:00:00.000Z'
                    deposit_enabled: true
                xrp:
                  summary: XRP, with a destination tag
                  value:
                    currency: XRP
                    network: XRP_LEDGER
                    address: rDsbeomae4FXwgQTJp9Rs64Qg9vDiTCdBv
                    destination_tag: '1234567'
                    destination_tag_type: destinationTag
                    created_at: '2026-11-04T10:05:00.000Z'
                    deposit_enabled: true
          headers: {}
        '400':
          x-apidog-name: Bad Request
          description: Invalid body, or a currency or network that can't be deposited.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                  - error_message
                properties:
                  error:
                    type: string
                    description: Stable error code.
                    enum:
                      - INVALID_REQUEST_BODY
                      - INVALID_CURRENCY
                      - INVALID_NETWORK
                      - CURRENCY_NOT_SUPPORTED
                      - NETWORK_NOT_SUPPORTED
                      - UNEXPECTED_PARAMETERS
                  error_message:
                    type: string
                    description: Human-readable description of the error.
                x-apidog-orders:
                  - error
                  - error_message
              examples:
                '4':
                  summary: INVALID_REQUEST_BODY
                  value:
                    error: INVALID_REQUEST_BODY
                    error_message: 'body: must be valid JSON'
                '5':
                  summary: INVALID_CURRENCY
                  value:
                    error: INVALID_CURRENCY
                    error_message: currency must be an upper-case currency code, e.g. BTC
                '6':
                  summary: INVALID_NETWORK
                  value:
                    error: INVALID_NETWORK
                    error_message: >-
                      network must be a network id from GET /v1/currencies, e.g.
                      ETHEREUM
                '7':
                  summary: CURRENCY_NOT_SUPPORTED
                  value:
                    error: CURRENCY_NOT_SUPPORTED
                    error_message: Deposits are not available for this currency
                '8':
                  summary: NETWORK_NOT_SUPPORTED
                  value:
                    error: NETWORK_NOT_SUPPORTED
                    error_message: >-
                      The currency cannot be deposited on this network; GET
                      /v1/currencies lists its networks
                '9':
                  summary: UNEXPECTED_PARAMETERS
                  value:
                    error: UNEXPECTED_PARAMETERS
                    error_message: Unexpected parameters were provided
          headers: {}
        '403':
          x-apidog-name: Forbidden
          description: >-
            Forbidden. Either the gateway rejected the token
            (`{"message":"Forbidden"}`), or the endpoint denied the request:
            `PERMISSION_DENIED` when the API key lacks the `TRADE` and
            `WITHDRAW` scopes or the token has no exchange account;
            `SUBACCOUNT_NOT_SUPPORTED` for a subaccount token;
            `ACCOUNT_NOT_ELIGIBLE` when the account isn't active and verified;
            `DEPOSITS_NOT_ENABLED` when deposits of the currency aren't enabled
            for the account.
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    required:
                      - error
                      - error_message
                    properties:
                      error:
                        type: string
                        description: Stable error code.
                        enum:
                          - PERMISSION_DENIED
                          - SUBACCOUNT_NOT_SUPPORTED
                          - ACCOUNT_NOT_ELIGIBLE
                          - DEPOSITS_NOT_ENABLED
                      error_message:
                        type: string
                        description: Human-readable description of the error.
                    x-apidog-orders:
                      - error
                      - error_message
                  - type: object
                    required:
                      - message
                    properties:
                      message:
                        type: string
                        description: Gateway rejection message.
                    x-apidog-orders:
                      - message
              examples:
                '11':
                  summary: PERMISSION_DENIED
                  value:
                    error: PERMISSION_DENIED
                    error_message: Permission denied
                '12':
                  summary: SUBACCOUNT_NOT_SUPPORTED
                  value:
                    error: SUBACCOUNT_NOT_SUPPORTED
                    error_message: >-
                      Deposit addresses belong to the main account; use a main
                      account token
                '13':
                  summary: ACCOUNT_NOT_ELIGIBLE
                  value:
                    error: ACCOUNT_NOT_ELIGIBLE
                    error_message: >-
                      The account must be active and verified to create a
                      deposit address
                '14':
                  summary: DEPOSITS_NOT_ENABLED
                  value:
                    error: DEPOSITS_NOT_ENABLED
                    error_message: Deposits of this currency are not enabled for the account
                gateway:
                  summary: Gateway
                  value:
                    message: Forbidden
          headers: {}
        '409':
          x-apidog-name: Conflict
          description: >-
            Your existing address for the currency is on a different network
            from the one requested. `GET /v1/account/deposit-addresses` returns
            it.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                  - error_message
                properties:
                  error:
                    type: string
                    description: Stable error code.
                    enum:
                      - DEPOSIT_ADDRESS_ON_OTHER_NETWORK
                  error_message:
                    type: string
                    description: Human-readable description of the error.
                x-apidog-orders:
                  - error
                  - error_message
              example:
                error: DEPOSIT_ADDRESS_ON_OTHER_NETWORK
                error_message: >-
                  The account's ETH deposit address is on ETHEREUM; GET
                  /v1/account/deposit-addresses returns it
          headers: {}
        '429':
          x-apidog-name: Too Many Requests
          description: >-
            Rate limit exceeded. Limits are per account holder per minute: 600
            (retail), 2,000 (institutional), 10,000 (market maker).
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                  - error_message
                properties:
                  error:
                    type: string
                    description: Stable error code.
                    enum:
                      - TOO_MANY_REQUESTS
                  error_message:
                    type: string
                    description: Human-readable description of the error.
                x-apidog-orders:
                  - error
                  - error_message
              example:
                error: TOO_MANY_REQUESTS
                error_message: Too many requests
          headers: {}
        '500':
          x-apidog-name: Server Error
          description: Unexpected server error.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                  - error_message
                properties:
                  error:
                    type: string
                    description: Stable error code.
                    enum:
                      - SERVER_ERROR
                  error_message:
                    type: string
                    description: Human-readable description of the error.
                x-apidog-orders:
                  - error
                  - error_message
              example:
                error: SERVER_ERROR
                error_message: An internal server error occurred
          headers: {}
      security:
        - bearer: []
      x-apidog-folder: One Trading Public REST API/Funding
      x-apidog-status: developing
      x-run-in-apidog: https://app.eu.apidog.com/web/project/349694/apis/api-4583749-run
components:
  schemas: {}
  securitySchemes:
    bearerAuth:
      type: bearer
      scheme: bearer
      description: >-
        API key issued to the account holder, sent as `Authorization: Bearer
        <token>`. The key must hold the `SUBACCOUNT_TRANSFER` scope.
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.onetrading.com/fast
    description: Production Env
security: []

```