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

# Latest

> Retrieves the latest open-high-low-close for the specified pair. Includes data for exchanges depending on where the pair is traded.
Asset information is included in the payload.
Base & Quote information is using the first and second asset in a pool/pair, which is the represented price.



## OpenAPI

````yaml get /ohlcv/{pool}/latest/
openapi: 3.1.0
info:
  title: Defi Market API
  version: '2'
servers:
  - url: https://api.amberdata.com/market/defi
security:
  - sec0: []
paths:
  /ohlcv/{pool}/latest/:
    get:
      summary: Latest
      description: >-
        Retrieves the latest open-high-low-close for the specified pair.
        Includes data for exchanges depending on where the pair is traded.

        Asset information is included in the payload.

        Base & Quote information is using the first and second asset in a
        pool/pair, which is the represented price.
      operationId: defi-ohlcv-latest
      parameters:
        - name: pool
          in: path
          description: >-
            The pool to retrieve the most current data. Can be the pool/pair
            symbols or address.
          schema:
            type: string
            default: DAI_USDC
          required: true
        - name: exchange
          in: query
          description: >-
            The exchange(s) for which to retrieve OHLCV. Example:
            exchange=uniswapv3
          schema:
            type: string
            default: uniswapv2
        - name: timeFormat
          in: query
          description: >-
            **[Optional]** Time format of the timestamps in the return
            payload.<BR/>**[Defaults]** `milliseconds | ms* | iso | iso8601 | hr
            | human_readable`
          schema:
            type: string
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 200
                    default: 0
                  title:
                    type: string
                    example: OK
                  description:
                    type: string
                    example: Successful request
                  payload:
                    type: object
                    properties:
                      '0xae461ca67b15dc8dc81ce7615e0320da1a9ab8d5':
                        type: object
                        properties:
                          exchangeName:
                            type: string
                            example: uniswapv2
                          exchangeId:
                            type: string
                            example: '0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f'
                          pair:
                            type: string
                            example: DAI_USDC
                          pairAddress:
                            type: string
                            example: '0xae461ca67b15dc8dc81ce7615e0320da1a9ab8d5'
                          baseAddress:
                            type: string
                            example: '0x6b175474e89094c44da98b954eedeac495271d0f'
                          baseCurrencyAddress:
                            type: string
                            example: ''
                          baseName:
                            type: string
                            example: Dai Stablecoin
                          baseSymbol:
                            type: string
                            example: DAI
                          baseDecimals:
                            type: string
                            example: '18'
                          quoteAddress:
                            type: string
                            example: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'
                          quoteCurrencyAddress:
                            type: string
                            example: ''
                          quoteName:
                            type: string
                            example: USD Coin
                          quoteSymbol:
                            type: string
                            example: USDC
                          quoteDecimals:
                            type: string
                            example: '6'
                          blockchainNetworkId:
                            type: string
                            example: '1'
                          blockchainId:
                            type: string
                            example: 1c9c969065fcd1cf
                          timestamp:
                            type: integer
                            example: 1654289760000
                          index:
                            type: integer
                            example: 6
                          poolAddresses:
                            type: array
                            items:
                              type: string
                              example: ''
                          pairName:
                            type: string
                            example: null
                          poolNames:
                            type: string
                            example: null
                          poolSymbols:
                            type: string
                            example: null
                          poolDecimals:
                            type: string
                            example: null
                          poolUnderlyingAddresses:
                            type: string
                            example: null
                          poolUnderlyingNames:
                            type: string
                            example: null
                          poolUnderlyingSymbols:
                            type: string
                            example: null
                          poolUnderlyingDecimals:
                            type: string
                            example: null
                          pairNormalized:
                            type: string
                            example: dai_usdc
                          fee:
                            type: number
                            example: 0.003
                          milliseconds:
                            type: integer
                            example: 1654289760000
                          open:
                            type: string
                            example: '1.00264698775035179406'
                          high:
                            type: string
                            example: '1.00264698775035179406'
                          low:
                            type: string
                            example: '1.00264698775035179406'
                          close:
                            type: string
                            example: '1.00264698775035179406'
                          volume:
                            type: string
                            example: '56.960215'
                          trades:
                            type: integer
                            example: 1
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      x-default: API_KEY
      name: x-api-key

````