Version: 1.2
Last Updated: March 2026
Status: REQUIRED β without Platform account, new entries are blocked (standalone mode)
When running NIJA with only user accounts (no Platform account), you will see:
Step 1: Connect Platform Kraken Account
Set the following environment variables for your Platform Kraken account:
KRAKEN_PLATFORM_API_KEY=<your-platform-api-key>
KRAKEN_PLATFORM_API_SECRET=<your-platform-api-secret>
Step 2: Restart NIJA
After setting the variables, restart the bot:
./start.sh
Result:
Step 3: Monitor Exit Cycles
While you are in standalone mode (before Platform account is connected), NIJA automatically manages your existing positions for profit exits and risk:
When the Platform account is not connected and a user account is connected, NIJA automatically enforces standalone mode (RECOVERY) for the affected user:
β οΈ HIERARCHY ISSUE β STANDALONE MODE ACTIVE
Platform account NOT connected: KRAKEN
User accounts are temporarily acting as primary.
π NEW ENTRIES BLOCKED (exits still work).
Connect the Platform account first, then configure users as secondary.
Standalone mode means:
This protects capital and prevents incorrect exposure while the hierarchy is misconfigured.
NIJA enforces a strict account hierarchy:
π· PLATFORM ACCOUNT (PRIMARY)
β Must be connected first
β Routes trades and maintains correct exposure limits
β Enables unified reporting and risk aggregation
β Enables capital orchestration
π€ USER ACCOUNT (SECONDARY)
β Connects after Platform
β Adopts positions and risk limits from Platform context
β Trades with its own capital under Platform oversight
Without Platform account:
.env file):# Platform Kraken credentials (REQUIRED for new entries)
KRAKEN_PLATFORM_API_KEY=your-api-key-here
KRAKEN_PLATFORM_API_SECRET=your-api-secret-here
Add these environment variables:
KRAKEN_PLATFORM_API_KEY = your API keyKRAKEN_PLATFORM_API_SECRET = your API secretKRAKEN_PLATFORM_API_KEY with your API keyKRAKEN_PLATFORM_API_SECRET with your API secretAfter setting credentials, restart the bot and check logs:
Quick Check (Recommended):
# Run the credential validation script
python3 check_platform_credentials.py
This script will:
Manual Check in Logs:
β Success indicators:
β
Kraken Platform credentials detected
π· PLATFORM ACCOUNTS (Primary Trading Accounts):
β’ KRAKEN: β
CONNECTED
β
HIERARCHY VALID: Platform is PRIMARY, all users are SECONDARY
β Still in standalone mode?
β οΈ HIERARCHY ISSUE β STANDALONE MODE ACTIVE
Platform account NOT connected: KRAKEN
π NEW ENTRIES BLOCKED (exits still work).
If you see warnings, verify:
A: Yes, for new entries. Without Platform account:
For full trading capability, Platform account is required.
A: NIJA continues to manage them automatically:
A: No disruption to existing positions. Platform account connection:
A: Configure that one account as the Platform account:
KRAKEN_PLATFORM_API_KEY and KRAKEN_PLATFORM_API_SECRETA: Yes. For example:
Each exchange can have its own Platform account if needed.
A: You only need Platform account for exchanges where you have user accounts. For example:
Scenario A: Only user accounts on Kraken
KRAKEN_PLATFORM_API_KEY/SECRET (required for new entries)Scenario B: User accounts on Kraken AND Alpaca
KRAKEN_PLATFORM_API_KEY/SECRET (required)ALPACA_API_KEY/SECRET (Platform account, required)A: Check logs for specific errors:
System will continue attempting connection and display warnings until Platform account connects successfully. Users remain in standalone mode (exits only) until Platform connects.
Solution:
# Local development
cat .env | grep KRAKEN_PLATFORM
# Production (Railway)
# Check Variables tab in Railway dashboard
Solution: This happens when credentials contain only whitespace:
Solution: Check if Platform account is actually connected:
π· PLATFORM ACCOUNTS (Primary Trading Accounts):
β’ KRAKEN: β NOT CONNECTED β Should be β
CONNECTED
If showing βNOT CONNECTEDβ, check:
1. Set KRAKEN_PLATFORM_API_KEY=<key>
2. Set KRAKEN_PLATFORM_API_SECRET=<secret>
3. Restart NIJA
Result:
NIJA automatically monitors your existing positions: