/priceFromPool

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 the current price for the requested token (baseToken) in the pool, in terms of the other token (quoteToken) in the pool. This endpoint calls underlying RPC infrastructure in real time to get the price.

Path Params
string
required
Defaults to eth

The chain to query

string
required
Defaults to 0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640

The address of the pool contract

string
required
Defaults to 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

The address of the token to price

Headers
string
required
Defaults to demokey

API Key for Pricing API. To generate an API Key, visit https://noves.fi/pricing

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json