This guide will help you get NIJA up and running quickly, whether you want to trade with just the platform account or enable multi-user trading.
Before you begin, you’ll need:
# Clone the repository
git clone https://github.com/dantelrharrell-debug/Nija.git
cd Nija
# Install dependencies
pip install -r requirements.txt
.env File# Run the setup helper script
python3 setup_env.py
This creates a .env file from the template with placeholder values.
.env file:
nano .env # or use your preferred editor
COINBASE_ORG_ID=your-org-id-here
COINBASE_JWT_PEM="-----BEGIN EC PRIVATE KEY-----\nYOUR_KEY_HERE\n-----END EC PRIVATE KEY-----"
COINBASE_JWT_KID=your-kid-here
COINBASE_JWT_ISSUER=organizations/your-org-id-here
python3 bot.py
You should see:
✅ PLATFORM ACCOUNT: TRADING (Broker: coinbase)
❌ USER #1 (Daivon Frazier): NOT TRADING (Connection failed or not configured)
❌ USER #2 (Tania Gilbert): NOT TRADING (Connection failed or not configured)
This is normal! User accounts are optional. NIJA will trade with the platform account.
⚠️ CRITICAL: Kraken Platform account credentials are REQUIRED for stable operation, even if you only trade with user accounts.
Configuring Platform Kraken credentials (even with $0 balance) provides:
The Platform account does not need trading capital - it just needs to exist and connect.
🚀 NEW: Quick Guide Available!
For the fastest setup, check out:
python3 setup_kraken_master.py - Interactive setup wizard.env file (local) OR Railway/Render (production):
# REQUIRED for stable operation
KRAKEN_PLATFORM_API_KEY=your-platform-api-key
KRAKEN_PLATFORM_API_SECRET=your-platform-private-key
You should now see:
✅ Kraken Platform credentials detected
🔷 PLATFORM ACCOUNTS (Primary Trading Accounts):
• KRAKEN: ✅ CONNECTED
✅ ACCOUNT HIERARCHY STATUS:
✅ All user accounts have corresponding Platform accounts (correct hierarchy)
For Railway/Render deployments: See SETUP_MASTER_KRAKEN.md for platform-specific instructions.
User accounts allow NIJA to manage multiple trading accounts independently. This is useful for:
If you see:
⚪ No user accounts configured
This is normal and expected when user accounts are disabled in the configuration files. User accounts are completely optional - NIJA works perfectly with just the platform account.
User accounts in config/users/*.json files are disabled by default ("enabled": false) and should only be enabled after:
.env file:
KRAKEN_USER_DAIVON_API_KEY=your-daivon-api-key
KRAKEN_USER_DAIVON_API_SECRET=your-daivon-private-key
Enable the user in config file:
Edit config/users/retail_kraken.json and find the Daivon Frazier user object.
Change "enabled" from false to true:
Before:
{
"user_id": "daivon_frazier",
"name": "Daivon Frazier",
"account_type": "retail",
"broker_type": "kraken",
"enabled": false,
"description": "Retail user - Kraken crypto account (disabled - set to true after adding credentials)"
}
After:
{
"user_id": "daivon_frazier",
"name": "Daivon Frazier",
"account_type": "retail",
"broker_type": "kraken",
"enabled": true,
"description": "Retail user - Kraken crypto account"
}
python3 bot.py
You should now see:
✅ USER: Daivon Frazier: TRADING (Broker: Kraken)
Follow the same process as User #1:
.env file:
KRAKEN_USER_TANIA_API_KEY=your-tania-api-key
KRAKEN_USER_TANIA_API_SECRET=your-tania-private-key
config/users/retail_kraken.json by changing "enabled" to trueRun the verification script:
python3 kraken_deployment_verify.py
Expected output when all accounts are configured:
✅ Platform Account: READY to trade on Kraken
✅ User #1 (Daivon Frazier): READY to trade on Kraken
✅ User #2 (Tania Gilbert): READY to trade on Kraken
This is normal if you haven’t configured that account yet. User accounts are optional.
To fix (if you want that account to trade):
.env fileTo ignore: If you don’t need user accounts, you can safely ignore these messages. NIJA will trade with the platform account only.
Already fixed in the code! If you still see this:
Your API key doesn’t have the required permissions:
.env file exists in the project root.envpip install python-dotenvexport $(cat .env | xargs)
python3 bot.py
For deploying to Railway or Render:
python3 kraken_deployment_verify.py
⚠️ IMPORTANT:
.env file to git (already in .gitignore)Once NIJA is running:
.env if neededMinimum setup for trading:
python3 bot.pyOptional user accounts:
The “NOT TRADING” messages are normal if you haven’t configured those accounts. NIJA will work fine with just the platform account!
Need help? See the documentation in: