Market capitalization (“market cap”) is the total value of a cryptocurrency. Where stock market capitalization is calculated by multiplying share price times shares outstanding, crypto market capitalization is calculated by multiplying the market price of the cryptocurrency with the number of coins in circulation.
You can find ndau’s market cap by going to ndau.io and scrolling down until you see this section:
Those values are pulled into the website directly from the ndau blockchain using the ndau API.
To get your own real-time data, simply use this API endpoint: https://mainnet-0.ndau.tech:3030/price/current
In that API endpoint you can find “totalNdau” which is ndau’s current Circulating Supply. The value is reported in “napu,” which is ndau’s version of “satoshis.” So 1 napu = 0.00000001 ndau.
You can also find “marketPrice” which is ndau’s current Market Price. The value is reported in “nanocents,” so multiply that number by 0.00000000001 to get a dollar value.
If you want to calculate ndau’s market cap in realtime by directly querying the API yourself, run this in a Unix shell:
curl -s https://mainnet-0.ndau.tech:3030/price/current | jq .totalNdau*0.00000001*.marketPrice*0.00000000001
The value returned by the above command will return the current market cap of ndau in USD.