Skip to content

dguo/coinbase-js

Repository files navigation

Coinbase JS

npm license bundle size continuous integration status test coverage known vulnerabilities

Node.js client for Coinbase's API. This client covers the regular API. For the Coinbase Pro API, check out this client instead.

This is a work in progress. Significant changes and documentation are incoming.

Installation

npm install --save coinbase-js

or

yarn add coinbase-js

Usage

You'll need to generate an API key and secret.

import {Coinbase} from "coinbase-js";

const apiToken = "<your token>";
const apiSecret = "<your secret>";
const coinbase = new Coinbase({apiToken, apiSecret});
const response = await coinbase.getExchangeRates();

License

MIT