Api for price

Is there an api for incognito price?


curl https://api.incscan.io/pdex/market | jq -r '.lastPRVPrice'


Are there in the meantime more ways to request the PRV price via API?

Hi @binh, do we have any PRV price API to share with the public?

1 Like

This would be great, I want to build small tool and need the live PRV price for this. Would be important, that if the data is submitted via JSON that the price comes as double not as a string :slight_smile:

Hey @sato,

You may use this address: https://api.incognito.org/ptoken/list

From that address, you may get the price of any currency listed in pDEX in terms of Prv (PricePrv attribute). For incscan-style, you should get pUSDT/pUSDC prices and average the reverse of them.

Or you may use my brand-new Python SDK: abduraman - Python API for Incognito SDK . There is a Incognito.Public.getTokenList() method which does the same.

There are some other methods to get/calculate the price but this is the easiest one.


Thank you so much @abduraman. This was exactly what I was looking for during the last days. You really made my day. Again thanks a lot, for the link.

1 Like

Hi, this API get prices from where ? Is it possible to read prices from fullnode ?


You can change the url. Specifically the end (“USD”) to any of the supported base currencies of your choice.

1 Like

Hi @pfrp,

Use getpdestate to get liquidity pools current status so you can recalculate current price. That’s what I use to get last PRV price on Incscan.

PRV price in USD on Incscan : average of PRV price on [PRV-pUSDT,PRV-pUSDC,PRV-pDAI]

1 Like

Thanks, inccry