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

coinmarketcap-js

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coinmarketcap-js - npm Package Compare versions

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);
}
```