GET
/
ohlcv
/
{pool}
/
latest
/
Latest
curl --request GET \
  --url https://api.amberdata.com/market/defi/ohlcv/{pool}/latest/ \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": {
    "0xae461ca67b15dc8dc81ce7615e0320da1a9ab8d5": {
      "exchangeName": "uniswapv2",
      "exchangeId": "0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f",
      "pair": "DAI_USDC",
      "pairAddress": "0xae461ca67b15dc8dc81ce7615e0320da1a9ab8d5",
      "baseAddress": "0x6b175474e89094c44da98b954eedeac495271d0f",
      "baseCurrencyAddress": "",
      "baseName": "Dai Stablecoin",
      "baseSymbol": "DAI",
      "baseDecimals": "18",
      "quoteAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
      "quoteCurrencyAddress": "",
      "quoteName": "USD Coin",
      "quoteSymbol": "USDC",
      "quoteDecimals": "6",
      "blockchainNetworkId": "1",
      "blockchainId": "1c9c969065fcd1cf",
      "timestamp": 1654289760000,
      "index": 6,
      "poolAddresses": [
        ""
      ],
      "pairName": null,
      "poolNames": null,
      "poolSymbols": null,
      "poolDecimals": null,
      "poolUnderlyingAddresses": null,
      "poolUnderlyingNames": null,
      "poolUnderlyingSymbols": null,
      "poolUnderlyingDecimals": null,
      "pairNormalized": "dai_usdc",
      "fee": 0.003,
      "milliseconds": 1654289760000,
      "open": "1.00264698775035179406",
      "high": "1.00264698775035179406",
      "low": "1.00264698775035179406",
      "close": "1.00264698775035179406",
      "volume": "56.960215",
      "trades": 1
    }
  }
}

Authorizations

x-api-key
string
header
default:API_KEY
required

Path Parameters

pool
string
default:DAI_USDC
required

The pool to retrieve the most current data. Can be the pool/pair symbols or address.

Query Parameters

exchange
string
default:uniswapv2

The exchange(s) for which to retrieve OHLCV. Example: exchange=uniswapv3

timeFormat
string

[Optional] Time format of the timestamps in the return payload.<BR/>[Defaults] milliseconds | ms* | iso | iso8601 | hr | human_readable

Response

200 - application/json

200

The response is of type object.