Documentation

n8n-nodes-purpleflea

Official n8n community node package for Purple Flea — bringing casino, wallet, and trading automation to 50k+ workflow builders.

Installation

npm install n8n-nodes-purpleflea

Or inside n8n's Settings → Community Nodes → Install:

n8n-nodes-purpleflea

Nodes

Purple Flea Casino

Automate casino game management, player sessions, and transaction monitoring.

Resources & Operations

Resource Operations
Game List Games, Get Game, Launch Game
Session Create Session, Get Session, Close Session
Transaction List Transactions, Get Transaction
Player Get Balance, Get History

Example use cases

  • Trigger workflows when a player's balance drops below a threshold
  • Automatically log all casino transactions to Google Sheets
  • Send Slack alerts for high-value game sessions

Purple Flea Wallet

Manage multi-currency wallets, deposits, withdrawals, and internal transfers.

Resources & Operations

Resource Operations
Wallet Create Wallet, Get Wallet, List Wallets
Balance Get Balance, Get All Balances
Deposit Get Deposit Address, List Deposits, Get Deposit
Withdrawal Create, List, Get, Cancel Withdrawal
Transfer Internal Transfer, List Transfers
Transaction List Transactions, Get Transaction

Example use cases

  • Auto-generate deposit addresses for new users via webhook
  • Monitor withdrawals and notify ops team via email
  • Sync wallet balances to a database every hour

Purple Flea Trading

Place orders, manage positions, and pull live market data.

Resources & Operations

Resource Operations
Market List Markets, Get Market, Get Order Book, Get Candles
Ticker Get Ticker, Get All Tickers
Order Place Order, Get Order, List Orders, Cancel, Cancel All
Position List Positions, Get Position, Close Position
Trade List Trades, Get Trade
Account Get Account, Get Balances, Get Fees

Example use cases

  • Build a DCA bot that buys BTC every day at 9am
  • Alert via Telegram when a position is closed
  • Log all trade executions to Airtable

Credentials

All three nodes share a single Purple Flea API credential:

  1. In n8n, go to Credentials → New → Purple Flea API
  2. Enter your API Key and API Secret (from app.purpleflea.com/settings/api)
  3. Choose Production or Sandbox environment

Sandbox / Testing

Set the credential environment to Sandbox to use the sandbox endpoints:

  • https://sandbox.casino.purpleflea.com/v1
  • https://sandbox.wallet.purpleflea.com/v1
  • https://sandbox.trading.purpleflea.com/v1

Development

git clone https://github.com/purpleflea/n8n-nodes-purpleflea.git
cd n8n-nodes-purpleflea
npm install
npm run build

Link into your local n8n instance:

npm link
cd ~/.n8n/custom
npm link n8n-nodes-purpleflea

License

MIT


Support

Discussion