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

# Get External Wallet Quote

> This endpoint covers 2 documented variants, distinguished by query parameter value:
- **Get External Sell Quote** (`get-external-sell-quote`): Generate a quote for selling crypto from an external wallet.
- **Get External Wallet Quote** (`get-buy-quote`): Get a quote for buying crypto into an external wallet.

Buy-direction variant of the shared quote endpoint - generates a quote for buying crypto into an external wallet.

**Error codes:** `400001`: missing or invalid parameters; `402001`: unsupported currency pair; `5013`: amount less than min withdraw amount; `402009`: price not available; `402010`: service temporarily unavailable; `901011`: service configuration missing. please contact support; `499999`: Something went wrong!


## OpenAPI

````yaml openapi-v2.json GET /api/v2/wallet/w/quote
openapi: 3.1.0
info:
  title: Saber Money API (v2)
  version: v2
  description: >-
    ## Authentication


    There is no standalone API-key auth — every request must be **signed**. An
    API key by itself authenticates nothing. Each call requires four headers
    together: `X-Api-Key` (your key), `X-Signature` (HMAC-SHA256 of `apiKey +
    timestamp` — or `apiKey + timestamp + userId` when `X-User-Id` is required —
    keyed with your API secret), `X-Timestamp` (unix seconds), and
    `X-Request-Id` (any unique string per request). The signature must be
    computed by a client script; there is no way to derive it by hand. Use the
    HMAC Generator flow to compute valid values for manual testing.


    ## Common Authentication Errors


    - **Invalid Client ID**: {"error_code":6092,"message":"X-Client-Id
    invalid","success":false}

    - **Invalid Secret**: {"error_code":6090,"message":"invalid
    secret","success":false}

    - **Timestamp (Older than 10 secs)**:
    {"errors":{"error_code":6093,"text":"timestamp expired"},"success":false}
servers:
  - url: https://api.saber.money
security: []
paths:
  /api/v2/wallet/w/quote:
    get:
      tags:
        - Offramp
        - Onramp
      summary: Get Quote
      description: >-
        This endpoint covers 2 documented variants, distinguished by query
        parameter value:

        - **Get External Sell Quote** (`get-external-sell-quote`): Generate a
        quote for selling crypto from an external wallet.

        - **Get External Wallet Quote** (`get-buy-quote`): Get a quote for
        buying crypto into an external wallet.
      operationId: get-external-sell-quote-v2
      parameters:
        - name: X-Api-Key
          in: header
          required: true
          description: Your API key (configured in credentials)
          schema:
            type: string
        - name: X-Signature
          in: header
          required: true
          description: >-
            HMAC-SHA256 signature (auto-generated) To test manually: HMAC-SHA256
            of `apiKey + timestamp` (or `apiKey + timestamp + userId` when
            X-User-Id is required), keyed with your API secret. The HMAC
            Generator flow computes this for you.
          schema:
            type: string
        - name: X-Timestamp
          in: header
          required: true
          description: >-
            Unix timestamp in seconds (auto-generated) Unix seconds, e.g.
            `Math.floor(Date.now() / 1000)`. Must match the timestamp used in
            the X-Signature computation.
          schema:
            type: string
        - name: X-Request-Id
          in: header
          required: true
          description: >-
            Unique request identifier (auto-generated) Any unique string per
            request, e.g. a UUID.
          schema:
            type: string
        - name: X-User-Id
          in: header
          required: true
          description: User UUID (set above)
          schema:
            type: string
        - name: from_currency
          in: query
          required: true
          description: Source currency symbol.
          schema:
            type: string
            description: Source currency symbol.
        - name: to_currency
          in: query
          required: true
          description: Destination currency symbol.
          schema:
            type: string
            description: Destination currency symbol.
        - name: network
          in: query
          required: true
          description: External wallet network.
          schema:
            type: string
            description: External wallet network.
        - name: from_amount
          in: query
          required: false
          description: >-
            Source amount. At least one of `from_amount` or `to_amount` must be
            non-zero.
          schema:
            type: number
            description: >-
              Source amount. At least one of `from_amount` or `to_amount` must
              be non-zero.
        - name: to_amount
          in: query
          required: false
          description: >-
            Destination amount. At least one of `from_amount` or `to_amount`
            must be non-zero.
          schema:
            type: number
            description: >-
              Destination amount. At least one of `from_amount` or `to_amount`
              must be non-zero.
        - name: payment_method
          in: query
          required: false
          description: Optional payment method hint.
          schema:
            type: string
            description: Optional payment method hint.
        - name: client_id
          in: query
          required: false
          description: Optional client UUID used only when OID is not already present.
          schema:
            type: string
            description: Optional client UUID used only when OID is not already present.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      from_currency:
                        type: string
                      to_currency:
                        type: string
                      from_amount:
                        type:
                          - number
                          - integer
                      pre_fee_to_amount:
                        type:
                          - number
                          - integer
                      to_amount:
                        type:
                          - number
                          - integer
                      base_price:
                        type: number
                      final_price:
                        type: number
                      total_fee:
                        type:
                          - number
                          - integer
                      fee_currency:
                        type: string
                      fee_breakup:
                        type: object
                      network:
                        type: string
                      other_details:
                        type: object
                      transaction_type:
                        type: string
                        enum:
                          - EXTERNAL_SELL
                      id:
                        type: string
                      expiry:
                        type: string
                      settlement_expiry:
                        type: string
                      created_at:
                        type: string
                      updated_at:
                        type: string
              examples:
                get-external-sell-quote:
                  summary: Get External Sell Quote
                  value:
                    success: true
                    data:
                      from_currency: USDT
                      to_currency: INR
                      network: SOL
                      from_amount: 1.099505
                      pre_fee_to_amount: 100
                      to_amount: 100
                      base_price: 90.95
                      final_price: 90.95
                      total_fee: 0
                      fee_currency: INR
                      fee_breakup:
                        platform_fee: 0
                        network_fee: 0
                        client_fee: 0
                        discount: 0
                        tax_on_fee: 0
                        tds: 0
                      other_details:
                        fiat_settlement_time:
                          min: 0
                          max: 1
                          unit: HOURS
                      transaction_type: EXTERNAL_SELL
                      id: 0c6ad6d3-6902-4a27-a30f-c176456a0835
                      expiry: '2026-03-25T09:42:14.321113044Z'
                      settlement_expiry: '2026-03-25T10:41:44.321113044Z'
                      created_at: '2026-03-25T09:41:44.318189513Z'
                      updated_at: '2026-03-25T09:41:44.318189595Z'
                get-buy-quote:
                  summary: Get External Wallet Quote
                  value:
                    success: true
                    data:
                      from_currency: INR
                      to_currency: USDT
                      network: BSC
                      from_amount: 5000
                      pre_fee_to_amount: 58.4
                      to_amount: 57.8
                      base_price: 85.6
                      final_price: 86.5
                      total_fee: 0.6
                      fee_currency: USDT
                      fee_breakup:
                        platform_fee: 0.2
                        network_fee: 0.3
                        client_fee: 0
                        discount: 0
                        tax_on_fee: 0.1
                        tds: 0
        '400':
          description: >-
            `400001`: missing or invalid parameters; `402001`: unsupported
            currency pair


            **Error codes:**

            - `5013`: amount less than min withdraw amount
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type:
                            - integer
                            - string
                        text:
                          type: string
              examples:
                get-external-sell-quote:
                  summary: Get External Sell Quote
                  value:
                    success: false
                    errors:
                      - code: 400001
                        text: missing or invalid parameters
                get-buy-quote:
                  summary: Get External Wallet Quote
                  value:
                    success: false
                    errors:
                      - code: 400001
                        text: missing or invalid parameters
        '404':
          description: '`402009`: price not available'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type:
                            - integer
                            - string
                        text:
                          type: string
              examples:
                get-external-sell-quote:
                  summary: Get External Sell Quote
                  value:
                    success: false
                    errors:
                      - code: 400001
                        text: missing or invalid parameters
                get-buy-quote:
                  summary: Get External Wallet Quote
                  value:
                    success: false
                    errors:
                      - code: 400001
                        text: missing or invalid parameters
        '500':
          description: '`499999`: Something went wrong!'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type:
                            - integer
                            - string
                        text:
                          type: string
              examples:
                get-external-sell-quote:
                  summary: Get External Sell Quote
                  value:
                    success: false
                    errors:
                      - code: 400001
                        text: missing or invalid parameters
                get-buy-quote:
                  summary: Get External Wallet Quote
                  value:
                    success: false
                    errors:
                      - code: 400001
                        text: missing or invalid parameters
        '503':
          description: >-
            `402010`: service temporarily unavailable; `901011`: service
            configuration missing. please contact support
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type:
                            - integer
                            - string
                        text:
                          type: string
              examples:
                get-external-sell-quote:
                  summary: Get External Sell Quote
                  value:
                    success: false
                    errors:
                      - code: 400001
                        text: missing or invalid parameters
                get-buy-quote:
                  summary: Get External Wallet Quote
                  value:
                    success: false
                    errors:
                      - code: 400001
                        text: missing or invalid parameters

````

## Related topics

- [Get External Sell Quote](/api-reference/offramp/from-external-wallet/get-external-sell-quote.md)
- [Get External Sell Transaction Details](/api-reference/offramp/from-external-wallet/get-external-sell-transaction-details.md)
- [External Buy Quote](/api-reference/onramp/price-lock/external-buy-quote.md)
- [Create External Buy](/api-reference/onramp/to-external-wallet/create-external-buy.md)
- [Get Sell Transaction Details](/api-reference/offramp/from-user-wallet/get-sell-transaction-details.md)
