coinbase

n8n node for Coinbase Advanced Trade API - check wallet holdings and make trades

Package Information

Released: 14 mo ago
Downloads: 25 weekly / 86 monthly
Latest Version: 0.1.2
Author: Vinnie Vulture

Documentation

n8n-nodes-coinbase

This is an n8n community node that allows you to interact with the Coinbase Advanced Trade API to:

  • Check wallet holdings (account balances)
  • Create market and limit orders (buy/sell)
  • Get product information
  • Manage orders

Installation

Community Nodes (Recommended)

  1. Go to Settings > Community Nodes
  2. Select Install
  3. Enter n8n-nodes-coinbase in Enter npm package name
  4. Agree to the risks of using community nodes
  5. Select Install

Manual Installation

To install the node manually:

# Navigate to your n8n custom nodes directory
cd ~/.n8n/custom

# Install the node
npm install n8n-nodes-coinbase

Credentials

To use this node, you need to create API credentials in your Coinbase account:

  1. Log in to your Coinbase account

  2. Go to Settings > API

  3. Create a new API key with the following permissions:

    • wallet:accounts:read - For viewing account balances
    • wallet:orders:create - For creating orders
    • wallet:orders:read - For viewing orders
    • wallet:products:read - For viewing products
  4. Save your API Key (format: organizations/{org_id}/apiKeys/{key_id}) and Private Key

  5. In n8n, create new Coinbase API credentials and enter:

    • API Key: Your API key from Coinbase
    • API Secret: Your private key (including the BEGIN/END headers)

Usage

Check Wallet Holdings

  1. Add the Coinbase node to your workflow
  2. Select Resource: Account
  3. Select Operation: Get All
  4. This will return all your account balances

Create a Market Order

  1. Select Resource: Order
  2. Select Operation: Create Market Order
  3. Configure:
    • Product ID: e.g., BTC-USD
    • Side: Buy or Sell
    • Order Type: Base Size (amount in crypto) or Quote Size (amount in USD)
    • Size: Amount to buy/sell

Create a Limit Order

  1. Select Resource: Order
  2. Select Operation: Create Limit Order
  3. Configure:
    • Product ID: e.g., BTC-USD
    • Side: Buy or Sell
    • Size: Amount in base currency (e.g., BTC)
    • Limit Price: Price per unit

Get Product Information

  1. Select Resource: Product
  2. Select Operation: Get or Get All
  3. For Get: Enter the Product ID (e.g., BTC-USD)

Example Workflows

Daily Portfolio Check

Create a workflow that:

  1. Uses a Schedule Trigger to run daily
  2. Gets all account balances
  3. Formats the data
  4. Sends a summary via email or Slack

Price Alert Trading

Create a workflow that:

  1. Monitors product prices
  2. When a threshold is met, creates a market order
  3. Sends a notification of the trade

Support

For issues and feature requests, please visit the GitHub repository.

License

MIT

Discussion