Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
coinranking-oss-sdk
Advanced tools
An unofficial SDK for the Coinranking API. For documentation on the API directly, go here.
Otherwise, check out the documentation for the SDK below.
Each method in these docs will include:
High level:
Initializes the SDK with a list of coins and currencies pulled from the API, then sets up caching based on the optional config object you pass into it.
Low Level:
Executes a fetch request to https://api.coinranking.com/v2/indexes/coins, then maps the resulting array to a new array that the sdk stores. Configures caching based on the optional config object you pass to it.
Takes:
config properties:
apiKey: String | your api auth key from https://coinranking.com/page/key-generator
shouldCache: Boolean | False by default. if true, the sdk will store any data retreived from the api with get requests. This data will be returned by subsequent calls of any functions that need to retrieve data. Purpose is to save on api requests, in order to stay under rate limits. See more about rate limiting: https://developers.coinranking.com/api/documentation/#rate-limits
cacheRefreshInterval: Number | Amount of time in milliseconds the sdk will wait before retrieving new data from the API upon a new get method being called. Not used if shouldCache is false.
Returns: Void | Nothing is returned.
Example:
const coinrankingSDK = require('coinranking-oss-sdk')
coinrankingSDK.init({
apiKey: '5030820852jds',
shouldCache: false,
cacheRefreshInterval: 0, // milliseconds
})
FAQs
An unofficial SDK for the coinranking REST API.
The npm package coinranking-oss-sdk receives a total of 1 weekly downloads. As such, coinranking-oss-sdk popularity was classified as not popular.
We found that coinranking-oss-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.