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

# Get Quote

> Sardine returns a quote on the amount of cryptocurrency that can be purchased or sold (for off-ramp), along with the associated fees, which are as follows

- Network fee - Also known as "gas", paid out to faciliate and validate the transaction

- Processing fee: Used to cover Sardine's cost of money movement, fraud check and compliance



## OpenAPI

````yaml /api_reference/onramp.yaml get /quotes
openapi: 3.0.3
info:
  version: '1.0'
  title: Crypto API
  description: Reference for Sardine Crypto API
  contact:
    email: support@sardine.io
    name: Sardine
    url: docs.sardine.io
servers:
  - url: https://api.sandbox.sardine.ai/v1
    description: Sandbox
  - url: https://api.sardine.ai/v1
    description: Prod Server
security: []
paths:
  /quotes:
    get:
      tags:
        - Quote
      summary: Get Quote
      description: >-
        Sardine returns a quote on the amount of cryptocurrency that can be
        purchased or sold (for off-ramp), along with the associated fees, which
        are as follows


        - Network fee - Also known as "gas", paid out to faciliate and validate
        the transaction


        - Processing fee: Used to cover Sardine's cost of money movement, fraud
        check and compliance
      operationId: get-trade-quote
      parameters:
        - name: asset_type
          in: query
          description: Cryptocurrency asset user wants to purchase
          required: true
          schema:
            type: string
        - name: network
          in: query
          description: Blockchain on which the `asset_type` is present
          required: true
          schema:
            type: string
        - name: total
          in: query
          description: 'Amount the user wants to buy or sell. '
          required: true
          schema:
            type: number
        - name: currency
          in: query
          description: The currency type in which the quote is supplied
          schema:
            type: string
            default: USD
        - name: paymentType
          in: query
          description: The payment method that the user will use for the transaction
          schema:
            type: string
            enum:
              - ach
              - debit
              - credit
              - us_debit
              - international_debit
              - international_credit
        - name: quote_type
          in: query
          description: >-
            Select for the required activity `buy` for on ramp and `sell` for
            off ramp
          schema:
            type: string
            enum:
              - buy
              - sell
            default: buy
        - name: walletAddress
          in: query
          description: >-
            Wallet address of User. This is used to calculate if User has
            previously used Sardine, and provide them with a more accurate
            quote. 
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Quote'
      security:
        - ClientToken: []
      servers:
        - url: https://api.sandbox.sardine.ai/v1
          description: Sandbox
        - url: https://api.sardine.ai/v1
          description: Prod Server
components:
  schemas:
    Quote:
      type: object
      properties:
        quantity:
          type: number
          description: Amount of crypto that will be purchased
        price:
          type: number
          description: Price for 1 unit of the crypto being bought
        subtotal:
          type: integer
          description: Fiat value of the crypto that the user will receive, net of fees
        transactionFee:
          type: integer
          description: Also known as "gas", the fees paid to validators on the network
        networkFee:
          type: integer
          description: Fees paid to Sardine for processing the trade
        total:
          type: number
          description: Total cost incurred by the user
        assetType:
          type: string
        network:
          type: string
        expiresIn:
          type: string
      x-examples:
        example-1:
          quantity: 0.0445225
          price: 2111.2920433488684
          subtotal: 9400
          transactionFee: 200
          networkFee: 400
          total: 10000
          assetType: ETH
          network: ethereum
      x-stoplight:
        id: fapqrxk5xzh7c
  securitySchemes:
    ClientToken:
      type: http
      scheme: basic

````