node-red-contrib-coinbase

0.0.4 • Public • Published

node-red-contrib-coinbase

Some Coinbase related nodes for Node RED

Simple example

How to use

  1. Get a Coinbase API key and secret from here
  2. Instantiate a new Client node from the library
  3. Enter key and secret
  4. Click on the renew button right next the the Account property and select a Account
  5. Use output from Client node as input for the other nodes

Client setup properties

Get buy price node

Connect with Client node and enter Currency pair property (e.g. ETH-EUR or BTC-USD).

Get account node

Connect with Client node. Node will output something like the following on msg.account

{
  "id": "2bbf394c-193b-5b2a-9155-3b4732659ede",
  "name": "My Wallet",
  "primary": true,
  "type": "wallet",
  "currency": "BTC",
  "balance": {
      "amount": "39.59000000",
      "currency": "BTC"
  },
  "native_balance": {
      "amount": "395.90",
      "currency": "USD"
  },
  "created_at": "2015-01-31T20:49:02Z",
  "updated_at": "2015-01-31T20:49:02Z",
  "resource": "account",
  "resource_path": "/v2/accounts/2bbf394c-193b-5b2a-9155-3b4732659ede"
}

One word on entering the coinbase key and secret

Node RED provide credential properties. This properties will not exported in the flow file when the flows are exported. Further information can be found here.

Todo

  • Send, Request, Transaction nodes
  • More?

Readme

Keywords

Package Sidebar

Install

npm i node-red-contrib-coinbase

Weekly Downloads

1

Version

0.0.4

License

BSD-3-Clause

Last publish

Collaborators

  • sebastianpsm