How to Install and Run the Prime Spot DCA Trading Bot on Windows Server

Overview

This guide explains how to install and run the Server module of the Prime Spot DCA Trading Bot on Windows Server (64-bit). The server package includes a self-contained executable. All logs and configuration files stay inside the same folder for easy deployment.

System Requirements

1. Download & Extract

  1. Download the server.zip provided with your license.
  2. Extract to:
    C:\PrimeTradingBot\server\
  3. Verify:
    C:\PrimeTradingBot\server\server.exe

2. Folder Permissions

Ensure the bot can write logs:

Right-click folder → PropertiesSecurity → Allow Read/Write.

3. Auto Startup Options (Windows Server)

Choose one of the methods below to start the bot automatically after reboot.

Method A — Install as a Windows Service (Recommended)

  1. Download NSSM: https://nssm.cc/download
  2. Run:
    nssm install PrimeTradingBot
  3. Set:
    • Path: C:\PrimeTradingBot\server\server.exe
    • Startup directory: C:\PrimeTradingBot\server\
    • Startup Type: Automatic
  4. Click Install Service

Method B — Create Auto-Startup Task (Manual Only)

Run this in Administrator Command Prompt:

schtasks /create ^
 /sc onstart ^
 /tn "PrimeTradingBotServer" ^
 /tr "C:\PrimeTradingBot\server\server.exe" ^
 /rl highest ^
 /f

Start immediately:

schtasks /run /tn "PrimeTradingBotServer"

Delete if needed:

schtasks /delete /tn "PrimeTradingBotServer" /f

4. Log Files

Located inside server/:

5. Troubleshooting

Server doesn’t start

Client cannot connect

No logs generated

6. Updating the Server

  1. Stop service/task
  2. Replace files (keep config.json)
  3. Restart service/task

7. Uninstalling

Delete the folder to uninstall.

If using NSSM:

nssm remove PrimeTradingBot confirm

If using Task Scheduler:

schtasks /delete /tn "PrimeTradingBotServer" /f