Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coinmarketcap-js

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coinmarketcap-js - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

2

package.json
{
"name": "coinmarketcap-js",
"version": "1.1.0",
"version": "1.2.0",
"description": "Javascript SDK for CoinMarketCap",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -34,2 +34,5 @@ # coinmarketcap-js

- [idMap](#idMap-1)
- [Exchange](#exchange)
- [info](#info-1)
- [idMap](#idMap-2)

@@ -254,1 +257,59 @@ ## Cryptocurrency

```
## Exchange
### info
Returns static data for one or more exchanges.
Options `Object?`:
| | |
| ----- | -------- |
| id? | `String` |
| slug? | `String` |
| aux? | `String` |
Example:
```typescript
import { restClient } from "coinmarketcap-js";
const rest = restClient("API KEY");
try {
const result = await rest.exchange.info({ id: "270" });
} catch (error) {
console.log(error);
}
```
### idMap
Returns a paginated list of all active cryptocurrency exchanges per CoinMarketCap ID
Options `Object?`:
| | |
| -------------- | -------- |
| listingStatus? | `String` |
| slug? | `String` |
| start? | `Number` |
| limit? | `Number` |
| sort? | `String` |
| aux? | `String` |
| cryptoId? | `String` |
Example:
```typescript
import { restClient } from "coinmarketcap-js";
const rest = restClient("API KEY");
try {
const result = await rest.exchange.idMap({ limit: 1 });
} catch (error) {
console.log(error);
}
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc