Nija

๐ŸŽฏ User Trading Activation Quick Reference Card

โฑ๏ธ Target: 10-minute activation
๐Ÿ’ฐ Minimum Balance: $25 USD (or $15 for small accounts)


โœ… Prerequisites Checklist

Before activating trading, ensure you have:


๐Ÿ”‘ Step 1: Get Kraken API Credentials (3 minutes)

  1. Log in to Kraken: https://www.kraken.com/u/security/api
  2. Create API Key:
    • Click โ€œGenerate New Keyโ€
    • Name: โ€œNIJA Trading Bot - Platformโ€
    • IMPORTANT: Use โ€œClassic API Keyโ€ (NOT OAuth)
  3. Enable Permissions:
    • โœ… Query Funds
    • โœ… Query Open Orders & Trades
    • โœ… Query Closed Orders & Trades
    • โœ… Create & Modify Orders
    • โœ… Cancel/Close Orders
    • โŒ DO NOT enable โ€œWithdraw Fundsโ€
  4. Save Credentials:
    • Copy API Key (starts with your key)
    • Copy Private Key (long secret string)
    • Store securely - you canโ€™t view them again!

๐Ÿ”ง Step 2: Configure Environment (2 minutes)

Option A: Local Setup (Development)

# Copy environment template
cp .env.example .env

# Edit .env file
nano .env  # or use your preferred editor

Add your credentials:

# REQUIRED - Kraken Platform Account
KRAKEN_PLATFORM_API_KEY=your-api-key-here
KRAKEN_PLATFORM_API_SECRET=your-api-secret-here

# REQUIRED - Enable live trading
LIVE_CAPITAL_VERIFIED=true

# OPTIONAL - For small accounts ($15-$25)
MINIMUM_TRADING_BALANCE=15.0
MIN_CASH_TO_BUY=5.0

Option B: Railway Deployment (Production)

  1. Go to Railway dashboard โ†’ Your project
  2. Navigate to Variables tab
  3. Add environment variables:
    • KRAKEN_PLATFORM_API_KEY = your-api-key
    • KRAKEN_PLATFORM_API_SECRET = your-api-secret
    • LIVE_CAPITAL_VERIFIED = true
  4. Click Deploy

๐Ÿš€ Step 3: Activate Trading (1 minute)

Start the Bot

Local:

python3 bot.py

Railway:

Expected Startup Output

โœ… KRAKEN PLATFORM: CONNECTED
๐Ÿ’ฐ Platform Account Balance: $XXX.XX USD
๐Ÿ”ท PLATFORM ACCOUNT: TRADING ACTIVE
๐Ÿง  TRUST LAYER - USER STATUS BANNER
   โ€ข LIVE_CAPITAL_VERIFIED: โœ… TRUE
   โ€ข PRO_MODE: โœ… ENABLED
   โ€ข PLATFORM ACCOUNT: KRAKEN, $XXX.XX, โœ… CONNECTED

โœ… Success! Trading is now active!


๐Ÿ” Step 4: Verify Activation (30 seconds)

Quick Verification Commands

# Check bot status
curl http://localhost:5001/api/health

# View last trade evaluation (if API enabled)
curl http://localhost:5001/api/last-trade

# Check live status in logs
tail -f logs/nija.log  # if logging to file

Manual Verification

  1. Check Kraken Dashboard:
    • Go to: https://www.kraken.com/u/history
    • Wait 2-5 minutes
    • Look for new orders when signals trigger
  2. Monitor Logs:
    • Look for: ๐ŸŽฏ BUY signal detected for BTC-USD
    • Or: ๐Ÿšซ TRADE VETO - Signal Blocked from Execution

๐ŸŽญ Optional: Test Mode (Heartbeat Trade)

Quick Verification Trade

Test that everything works with a single small trade:

# In .env or Railway Variables
HEARTBEAT_TRADE=true

What it does:

  1. Executes ONE small trade (~$5-10)
  2. Verifies API credentials work
  3. Immediately sells position
  4. Shuts down bot

After verification:

  1. Set HEARTBEAT_TRADE=false
  2. Restart bot for normal trading

๐Ÿงช Optional: Dry-Run Mode (No Real Money)

Test strategy logic without real trades:

# In .env or Railway Variables
DRY_RUN_MODE=true
LIVE_CAPITAL_VERIFIED=false

What it does:

For live trading, set both to:

DRY_RUN_MODE=false
LIVE_CAPITAL_VERIFIED=true

๐Ÿ›ก๏ธ Safety Features (Always Active)

NIJA includes automatic safety controls:

Feature Description Can Disable?
LIVE_CAPITAL_VERIFIED Master kill-switch for live trading Required
Position Limits Max 7 concurrent positions No
Minimum Balance Wonโ€™t trade below $25 (or configured) Configurable
Stop Losses Automatic on every position No
Trade Vetos Blocks bad setups No
Risk Limits Max 2-15% per trade (tier-based) No

๐Ÿ”ง Common Configuration Options

Environment Variables Quick Reference

# === REQUIRED ===
KRAKEN_PLATFORM_API_KEY=           # Your Kraken API key
KRAKEN_PLATFORM_API_SECRET=        # Your Kraken secret
LIVE_CAPITAL_VERIFIED=true         # Enable live trading

# === SAFETY & MODE ===
HEARTBEAT_TRADE=false              # true = 1 test trade then exit
DRY_RUN_MODE=false                 # true = simulate (no real orders)
PRO_MODE=true                      # Position rotation trading

# === POSITION MANAGEMENT ===
MAX_CONCURRENT_POSITIONS=7         # Max open positions
MIN_CASH_TO_BUY=5.50              # Min USD to place order
MINIMUM_TRADING_BALANCE=25.0       # Min balance to trade

# === SMALL ACCOUNT MODE ($15-$25) ===
MINIMUM_TRADING_BALANCE=15.0       # Lower minimum
MIN_CASH_TO_BUY=5.0               # Lower order min

# === RISK MANAGEMENT ===
KRAKEN_MIN_RSI=35                  # Min RSI for entry (30-70 range)
KRAKEN_MAX_RSI=65                  # Max RSI for entry (30-70 range)
KRAKEN_MIN_CONFIDENCE=0.65         # Min confidence (0.0-1.0)
KRAKEN_MIN_ATR_PCT=0.6            # Min volatility % (0.5-1.0)

# === OPTIONAL FEATURES ===
LAST_TRADE_API_PORT=5001          # Enable last trade API
ENABLE_SYMBOL_WHITELIST=false      # true = BTC/ETH/SOL only
PLATFORM_ACCOUNT_TIER=BALLER       # Force tier (BALLER/INVESTOR/etc)

๐Ÿ› Troubleshooting

Issue: Bot wonโ€™t start

Symptom: Error on startup or immediate exit

Solutions:

  1. โœ… Check KRAKEN_PLATFORM_API_KEY is set correctly
  2. โœ… Check KRAKEN_PLATFORM_API_SECRET is set correctly
  3. โœ… Verify no extra spaces in credentials
  4. โœ… Ensure .env file exists (local) or variables set (Railway)
  5. โœ… Run: python3 -c "from dotenv import load_dotenv; load_dotenv(); import os; print('Key:', bool(os.getenv('KRAKEN_PLATFORM_API_KEY')))"

Issue: No trades executing

Symptom: Bot runs but never places orders

Check logs for:

๐Ÿšซ TRADE VETO - Signal Blocked from Execution
   Veto Reason: [reason listed here]

Common reasons:


Issue: โ€œPermission deniedโ€ errors

Symptom: API errors about permissions

Solution:

  1. Go to: https://www.kraken.com/u/security/api
  2. Edit your API key
  3. Ensure ALL required permissions are enabled:
    • โœ… Query Funds
    • โœ… Query Open Orders & Trades
    • โœ… Query Closed Orders & Trades
    • โœ… Create & Modify Orders
    • โœ… Cancel/Close Orders
  4. Save changes
  5. Restart bot

Issue: Heartbeat trade fails

Symptom: Error during heartbeat verification

Solutions:

  1. โœ… Ensure account has at least $25 balance
  2. โœ… Verify โ€œCreate & Modify Ordersโ€ permission is enabled
  3. โœ… Check Kraken isnโ€™t in maintenance mode
  4. โœ… Review error message in logs for specific issue

Issue: Environment variables not loading

Local Development:

# Check .env file exists
ls -la .env

# Verify python-dotenv installed
pip install python-dotenv

# Test loading
python3 -c "from dotenv import load_dotenv; load_dotenv(); import os; print('Loaded:', list(os.environ.keys())[:5])"

Production (Railway):

  1. Go to Variables tab
  2. Verify variables are listed
  3. Check for typos in variable names
  4. Redeploy after adding variables

๐Ÿ“Š Monitoring Your Trading

Watch Real-Time Activity

Logs (Local):

# Follow logs in real-time
tail -f logs/nija.log

# Or if logging to console
python3 bot.py  # watch output

Logs (Railway):

  1. Go to Railway dashboard
  2. Click on your service
  3. Click Logs tab
  4. Watch real-time output

Key Log Messages

Message Meaning
๐ŸŽฏ BUY signal detected Found potential entry
โœ… BUY order placed Entered position
๐ŸŽฏ SELL signal detected Time to exit
โœ… SELL order executed Position closed
๐Ÿšซ TRADE VETO Signal blocked (see reason)
๐Ÿ’ฐ Platform Account Balance: $XXX Current capital

Check Positions in Kraken

  1. Go to: https://www.kraken.com/u/trading
  2. Click Positions tab
  3. See all open positions
  4. Review open orders
  5. Check trade history

๐ŸŽ“ Trading Strategy Overview

NIJA uses a dual RSI strategy with intelligent position management:

Signal Generation

Position Management

Risk Controls


๐Ÿ“š Additional Resources

Document Purpose Use When
GETTING_STARTED.md Complete setup guide First-time setup
API_CREDENTIALS_GUIDE.md Credential management API issues
KRAKEN_TRADING_GUIDE.md Kraken-specific help Using Kraken
QUICK_REFERENCE.md General features Feature overview
APEX_V71_DOCUMENTATION.md Strategy details Understanding signals
TRADE_VETO_REFERENCE.md Veto system details Trade not executing
.env.example All config options Configuration help

๐Ÿ†˜ Emergency Controls

Stop All Trading Immediately

Option 1: Kill-Switch (Fastest)

python emergency_kill_switch.py activate emergency

Option 2: Environment Variable

# Set in .env or Railway
LIVE_CAPITAL_VERIFIED=false
# Restart bot

Option 3: File System

touch EMERGENCY_STOP

Close All Positions Manually

If you need to close positions manually:

  1. Go to: https://www.kraken.com/u/trading
  2. Click on each open position
  3. Click Close Position
  4. Confirm closure

Or use Kraken mobile app for quick access.


โœ… Activation Success Checklist

After activation, you should see:

If all checked: Youโ€™re live trading! ๐ŸŽ‰


๐ŸŽฏ Quick Command Reference

# === SETUP ===
git clone https://github.com/dantelrharrell-debug/Nija.git
cd Nija
pip install -r requirements.txt
cp .env.example .env
nano .env  # Add credentials

# === START TRADING ===
python3 bot.py

# === MONITORING ===
tail -f logs/nija.log                              # Watch logs
curl http://localhost:5001/api/last-trade          # Last trade API
curl http://localhost:5001/api/health              # Health check

# === TESTING ===
export HEARTBEAT_TRADE=true && python3 bot.py      # Test trade
export DRY_RUN_MODE=true && python3 bot.py         # Simulate only

# === EMERGENCY ===
python emergency_kill_switch.py activate emergency  # Stop trading

๐Ÿ’ฌ Support & Next Steps

Need Help?

  1. Check logs for specific error messages
  2. Review this guide and troubleshooting section
  3. Check documentation in Additional Resources
  4. Open issue on GitHub (remove credentials from logs!)

Next Steps After Activation

  1. โœ… Monitor first 24 hours closely
  2. โœ… Review trades in Kraken dashboard
  3. โœ… Adjust configuration if needed (risk levels, RSI ranges)
  4. โœ… Set up alerts (email/SMS for important events)
  5. โœ… Read strategy docs (APEX_V71_DOCUMENTATION.md)
  6. โœ… Consider TradingView webhooks (TRADINGVIEW_SETUP.md)

Version: 1.0
Last Updated: February 7, 2026
Status: Ready for Production Use


โš ๏ธ Trading Disclaimer: Cryptocurrency trading carries substantial risk. Only trade with capital you can afford to lose. Past performance does not guarantee future results. NIJA is provided as-is without warranty.