💲Price API
Often times, it's required to fetch the price of a token or liquidity pool. Our Price API endpoint is a microservice entirely dedicated to calculating prices, which can be used in the calculation of user holdings, market caps etc...
Calculate a price of a holding
Calculate a price using the address, network and normalized amount.
POST
https://api.decentri.fi/price
Headers
Name | Type | Description |
---|---|---|
Content-Type | String | application/json |
Request Body
Name | Type | Description |
---|---|---|
address* | String | address of the token |
network* | Network | Network the token resides on |
amount* | BigDecimal |
Last updated