💲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

NameTypeDescription

Content-Type

String

application/json

Request Body

NameTypeDescription

address*

String

address of the token

network*

Network

Network the token resides on

amount*

BigDecimal

1192.9403494808796

Last updated