https://github.com/dguo/coinbase-js
JavaScript client for the Coinbase API
https://github.com/dguo/coinbase-js
coinbase coinbase-api
Last synced: 8 months ago
JSON representation
JavaScript client for the Coinbase API
- Host: GitHub
- URL: https://github.com/dguo/coinbase-js
- Owner: dguo
- License: mit
- Created: 2021-06-11T00:48:58.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-01-03T01:50:46.000Z (over 2 years ago)
- Last Synced: 2024-08-09T19:20:04.738Z (almost 2 years ago)
- Topics: coinbase, coinbase-api
- Language: TypeScript
- Homepage:
- Size: 2.52 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Coinbase JS
[](https://www.npmjs.com/package/coinbase-js)
[](https://github.com/dguo/coinbase-js/blob/main/LICENSE.txt)
[](https://bundlephobia.com/result?p=coinbase-js)
[](https://github.com/dguo/coinbase-js/actions/workflows/continuous-integration.yaml)
[](https://codecov.io/gh/dguo/coinbase-js)
[](https://snyk.io/test/github/dguo/coinbase-js?targetFile=package.json)
Node.js client for [Coinbase](https://www.coinbase.com/)'s
[API](https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/welcome). This
client covers the regular API. For the [Coinbase Pro](https://pro.coinbase.com/)
API, check out [this client](https://bennycode.com/coinbase-pro-node) instead.
This is a work in progress. Significant changes and documentation are incoming.
## Installation
```sh
npm install --save coinbase-js
```
or
```sh
yarn add coinbase-js
```
## Usage
You'll need to [generate an API key and
secret](https://help.coinbase.com/en/cloud/api/coinbase/key-creation).
```javascript
import {Coinbase} from "coinbase-js";
const apiToken = "";
const apiSecret = "";
const coinbase = new Coinbase({apiToken, apiSecret});
const response = await coinbase.getExchangeRates();
```
## License
MIT