โฑ๏ธ Target: 10-minute activation
๐ฐ Minimum Balance: $25 USD (or $15 for small accounts)
Before activating trading, ensure you have:
git clone https://github.com/dantelrharrell-debug/Nija.gitpip install -r requirements.txt# 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
KRAKEN_PLATFORM_API_KEY = your-api-keyKRAKEN_PLATFORM_API_SECRET = your-api-secretLIVE_CAPITAL_VERIFIED = trueLocal:
python3 bot.py
Railway:
โ
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!
# 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
๐ฏ BUY signal detected for BTC-USD๐ซ TRADE VETO - Signal Blocked from ExecutionTest that everything works with a single small trade:
# In .env or Railway Variables
HEARTBEAT_TRADE=true
What it does:
After verification:
HEARTBEAT_TRADE=falseTest 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
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 |
# === 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)
Symptom: Error on startup or immediate exit
Solutions:
KRAKEN_PLATFORM_API_KEY is set correctlyKRAKEN_PLATFORM_API_SECRET is set correctly.env file exists (local) or variables set (Railway)python3 -c "from dotenv import load_dotenv; load_dotenv(); import os; print('Key:', bool(os.getenv('KRAKEN_PLATFORM_API_KEY')))"Symptom: Bot runs but never places orders
Check logs for:
๐ซ TRADE VETO - Signal Blocked from Execution
Veto Reason: [reason listed here]
Common reasons:
LIVE_CAPITAL_VERIFIED=false โ Set to trueDRY_RUN_MODE=true โ Set to false for real tradingSymptom: API errors about permissions
Solution:
Symptom: Error during heartbeat verification
Solutions:
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):
Logs (Local):
# Follow logs in real-time
tail -f logs/nija.log
# Or if logging to console
python3 bot.py # watch output
Logs (Railway):
| 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 |
NIJA uses a dual RSI strategy with intelligent position management:
| 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 |
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
If you need to close positions manually:
Or use Kraken mobile app for quick access.
After activation, you should see:
If all checked: Youโre live trading! ๐
# === 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
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.