---
updatedAt: 2025-08-23T13:48:40.000Z
agentTools:
  projectIndex: https://docs.noves.fi/llms.txt
---

# /recentPriceFromPool

This is an endpoint with narrow functionality, used mostly by pricing oracles and similar systems. 

Given a liquidity pool address and a token address, it returns a recently-calculated price for the requested token (baseToken) in the pool, in terms of the other token (quoteToken) in the pool.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Pricing API",
    "description": "Real-time and historical DEX pricing across chains. Every token, priced. Powered by Noves.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://pricing.noves.fi"
    }
  ],
  "paths": {
    "/evm/{chain}/recentPriceFromPool/{poolAddress}/{baseTokenAddress}": {
      "get": {
        "tags": [
          "Evm"
        ],
        "summary": "/recentPriceFromPool",
        "description": "This is an endpoint with narrow functionality, used mostly by pricing oracles and similar systems. \r\n\r\nGiven a liquidity pool address and a token address, it returns a recently-calculated price for the requested token (baseToken) in the pool, in terms of the other token (quoteToken) in the pool.",
        "parameters": [
          {
            "name": "chain",
            "in": "path",
            "description": "The chain to query",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string",
              "default": "eth",
              "example": "eth"
            }
          },
          {
            "name": "poolAddress",
            "in": "path",
            "description": "The address of the pool contract",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string",
              "default": "0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640",
              "example": "0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640"
            }
          },
          {
            "name": "baseTokenAddress",
            "in": "path",
            "description": "The address of the token to price",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string",
              "default": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
              "example": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
            }
          },
          {
            "name": "apiKey",
            "in": "header",
            "description": "API Key for Pricing API. To generate an API Key, visit https://noves.fi/pricing",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string",
              "default": "demokey"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetPoolPriceResponseApiModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPoolPriceResponseApiModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPoolPriceResponseApiModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BaseTokenDetailModel": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "nullable": true
          },
          "symbol": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "decimals": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ExchangeResponseDetailModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetPoolPriceResponseApiModel": {
        "type": "object",
        "properties": {
          "chain": {
            "type": "string",
            "nullable": true
          },
          "exchange": {
            "$ref": "#/components/schemas/ExchangeResponseDetailModel"
          },
          "poolAddress": {
            "type": "string",
            "nullable": true
          },
          "baseToken": {
            "$ref": "#/components/schemas/BaseTokenDetailModel"
          },
          "quoteToken": {
            "$ref": "#/components/schemas/QuoteTokenDetailModel"
          },
          "price": {
            "$ref": "#/components/schemas/PoolPriceDetailModel"
          }
        },
        "additionalProperties": false
      },
      "PoolPriceDetailModel": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": {}
      },
      "QuoteTokenDetailModel": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "nullable": true
          },
          "symbol": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "decimals": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      }
    }
  }
}
```