n8n-nodes-coinbase
v0.1.2
Published
n8n node for Coinbase Advanced Trade API - check wallet holdings and make trades
Maintainers
Readme
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)
- Go to Settings > Community Nodes
- Select Install
- Enter
n8n-nodes-coinbasein Enter npm package name - Agree to the risks of using community nodes
- 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-coinbaseCredentials
To use this node, you need to create API credentials in your Coinbase account:
Log in to your Coinbase account
Go to Settings > API
Create a new API key with the following permissions:
wallet:accounts:read- For viewing account balanceswallet:orders:create- For creating orderswallet:orders:read- For viewing orderswallet:products:read- For viewing products
Save your API Key (format:
organizations/{org_id}/apiKeys/{key_id}) and Private KeyIn 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
- Add the Coinbase node to your workflow
- Select Resource: Account
- Select Operation: Get All
- This will return all your account balances
Create a Market Order
- Select Resource: Order
- Select Operation: Create Market Order
- 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
- Select Resource: Order
- Select Operation: Create Limit Order
- 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
- Select Resource: Product
- Select Operation: Get or Get All
- For Get: Enter the Product ID (e.g., BTC-USD)
Example Workflows
Daily Portfolio Check
Create a workflow that:
- Uses a Schedule Trigger to run daily
- Gets all account balances
- Formats the data
- Sends a summary via email or Slack
Price Alert Trading
Create a workflow that:
- Monitors product prices
- When a threshold is met, creates a market order
- Sends a notification of the trade
Support
For issues and feature requests, please visit the GitHub repository.
License
MIT
