Some Coinbase related nodes for Node RED
- Get a Coinbase API key and secret from here
- Instantiate a new Client node from the library
- Enter key and secret
- Click on the renew button right next the the Account property and select a Account
- Use output from Client node as input for the other nodes
Connect with Client node and enter Currency pair property (e.g. ETH-EUR or BTC-USD).
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"
}
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.
- Send, Request, Transaction nodes
- More?