Socket
Book a DemoInstallSign in
Socket

coinmetrics

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coinmetrics

Client interface for the CoinMetrics.io API.

0.0.2
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

COINMETRICS

Node.js wrapper for the Coinmetrics.io API. Documentation can be found here: https://coinmetrics.io/api/

INSTALLATION

npm install coinmetrics

Usage with Async/Await

const coinmetrics = require('coinmetrics')

var supportedAssets = await coinmetrics.getSupportedAssets()

var dataTypes = await coinmetrics.getAvailableDataTypesForAsset(asset)

var assetData = await coinmetrics.getAssetDataForTimeRange(asset, data_type, begin_timestamp, end_timestamp)

Usage with Promises

const coinmetrics = require('coinmetrics')

coinmetrics.getSupportedAssets()
  .then((results) => {
    var supportedAssets = results
  })

coinmetrics.getAvailableDataTypesForAsset(asset)
  .then((results) => {
    var dataTypes = results
  })

coinmetrics.getAssetDataForTimeRange(asset, data_type, begin_timestamp, end_timestamp)
  .then((results) => {
    var assetData = results
  })

Usage with Callbacks

const coinmetrics = require('coinmetrics')

coinmetrics.getSupportedAssets((results) => {
  var supportedAssets = results
})

coinmetrics.getAvailableDataTypesForAsset(asset, (results) => {
  var dataTypes = results
})

coinmetrics.getAssetDataForTimeRange(asset, data_type, begin_timestamp, end_timestamp, (results) => {
  var assetData = results
})

Keywords

coinmetrics

FAQs

Package last updated on 29 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.