Getting Circulating Supply for a token

I am using the following API to get the circulating supply of Triplay token, but the result is not updated:

https://marketdata.wavesplatform.com/api/ticker/EizwzJUFzUxPRXi5yr94XSqAcpzHC2vFWuWFwoFpp1EU/WAVES

On http://dev.pywaves.org/assets/EizwzJUFzUxPRXi5yr94XSqAcpzHC2vFWuWFwoFpp1EU the Circulating value is updated, but not in JSON format.

Is an API to get such value (real-time updated) on JSON format there?

1 Like

https://nodes.wavesnodes.com/assets/EizwzJUFzUxPRXi5yr94XSqAcpzHC2vFWuWFwoFpp1EU/distribution

1 Like

Thank you @deemru, but I am asking for the total amount of circulating supply as should appear directly by using: https://marketdata.wavesplatform.com/api/ticker/EizwzJUFzUxPRXi5yr94XSqAcpzHC2vFWuWFwoFpp1EU/Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck
(see the value on “amountAssetCirculatingSupply” variable)

Your given link brings the token distribution. To use that, I must totalize the distribution, ignoring the amount on issuer address. So, it is necessary to know who is the issuer.

I find also useful substract the balance of the issuer to the total token issued.

yeah you need to subtract the issuer’s address from the total supply:

step 1:
https://nodes.wavesplatform.com/assets/details/[assetId]
here you get the issuer and the quantity (current supply including burns)

step 2:
get the balance of the issuer on that asset:
https://nodes.wavesplatform.com/assets/balance/[issuer address]/[assetId]