node-red-contrib-coinbase 0.0.1

Some Coinbase related nodes for Node RED

npm install 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

  • Sell, Send, Request, Transaction nodes
  • Separate code files for each node for the sake of simplicity
  • More?

Node Info

Version: 0.0.1
Updated 1 month ago
License: BSD-3-Clause

Downloads

0 in the last day
1 in the last week
11 in the last month

Keywords

  • node-red
  • coinbase

Maintainers

  • sebastianpsm