coinmarketcap-js
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"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); | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
7667
314
1