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.
| Property | Type | Description |
|---|---|---|
coin | string | Velo-normalized coin symbol. |
time | number | Snapshot timestamp in milliseconds. |
circ | number | Circulating supply. |
circ_dollars | number | Circulating market capitalization in dollars. |
fdv | number | Fully diluted supply. |
fdv_dollars | number | Fully diluted valuation in dollars. |
Historical market-cap values are not returned by this method.