Skip to content
Velo

client.marketCaps

Fetches the latest supply and market-cap values for the requested coins.

Imports

const velo = require('velo-node')

Example

const velo = require('velo-node')
 
async function main() {
  const client = new velo.Client('api_key')
  const marketCaps = await client.marketCaps({
    coins: ['BTC', 'ETH']
  })
 
  console.log(marketCaps)
}
 
main()

Definition

marketCaps(params): Promise<Object[]>

Parameters

params

  • Type: Object

params.coins

  • Type: string[]

One or more Velo-normalized coin symbols.

Return Type

  • Type: Promise<Object[]>

Resolves to the latest matching supply and market-cap values.

PropertyTypeDescription
coinstringVelo-normalized coin symbol.
timenumberSnapshot timestamp in milliseconds.
circnumberCirculating supply.
circ_dollarsnumberCirculating market capitalization in dollars.
fdvnumberFully diluted supply.
fdv_dollarsnumberFully diluted valuation in dollars.

Historical market-cap values are not returned by this method.