coinmarketcap-js
Advanced tools
Comparing version 1.2.0 to 1.3.0
{ | ||
"name": "coinmarketcap-js", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Javascript SDK for CoinMarketCap", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -37,2 +37,4 @@ # coinmarketcap-js | ||
- [idMap](#idMap-2) | ||
- [Global](#global) | ||
- [latestQuotes](#latestQuotes-1) | ||
@@ -315,1 +317,28 @@ ## Cryptocurrency | ||
``` | ||
## Global | ||
### latestQuotes | ||
Returns the latest global cryptocurrency market metrics. | ||
Options `Object?`: | ||
| | | | ||
| ---------- | -------- | | ||
| convert? | `String` | | ||
| convertId? | `String` | | ||
Example: | ||
```typescript | ||
import { restClient } from "coinmarketcap-js"; | ||
const rest = restClient("API KEY"); | ||
try { | ||
const result = await rest.global.latestQuotes(); | ||
} 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
8148
343