- Windows 10/11
- ATAS Platform installed and launched at least once
- The build script requires the ATAS Strategies folder to exist
- This folder is created when ATAS is first launched
- .NET 8.0 SDK (automatically installed by build script if missing)
-
Install ATAS Platform
- Download and install ATAS from https://atas.net
- Important: Launch ATAS at least once to create the user folders
- You can close ATAS after the initial launch
-
Clone the repository
git clone <repository-url> cd sadnerd.io.atas.tradecopy
-
Run the build script
.\build.ps1
(or right-click the
build.ps1-file and choose 'Run with PowerShell')The script will:
- Validate ATAS installation
- Download and install the latest .NET 8 SDK if needed
- Build all projects
- Deploy files to the correct locations
-
Start ATAS Platform
- Open ATAS
- Add the "BroadcastOrderEvents" strategy to your chart
- Configure the strategy settings
-
Start the Order Event Hub
cd publish\OrderEventHub sadnerd.io.ATAS.OrderEventHub.exe -
Open the web interface
- Navigate to
http://localhost:15420 - Complete the initial setup
- Navigate to
The build.ps1 script includes several safety checks and features:
- ATAS Validation: Ensures ATAS Strategies folder exists before proceeding
- Latest .NET SDK: Downloads the most recent .NET 8 SDK version
- Automatic Installation: Installs .NET 8 SDK if not present
- Comprehensive Validation: Verifies each step completes successfully
- Clear Error Messages: Provides actionable guidance when issues occur
If you prefer to install manually or the build script fails:
-
Ensure ATAS is properly installed:
- Verify the folder exists:
%APPDATA%\ATAS\Strategies - If not, launch ATAS at least once
- Verify the folder exists:
-
Copy the following files to
%APPDATA%\ATAS\Strategies:- CommandLine.dll
- log4net.dll
- Macross.Json.Extensions.dll
- Newtonsoft.Json.dll
- Pipelines.Sockets.Unofficial.dll
- protobuf-net.Core.dll
- protobuf-net.dll
- sadnerd.io.ATAS.BroadcastOrderEvents.Contracts.dll
- sadnerd.io.ATAS.BroadcastOrderEvents.dll
- ServiceWire.dll
- SkiaSharp.dll
- websocket-sharp.dll
-
Install .NET 8 SDK:
- Download from Microsoft .NET Downloads
- Install the SDK (not just the runtime)
-
Build the project:
dotnet publish solution\sadnerd.io.ATAS.OrderEventHub\sadnerd.io.ATAS.OrderEventHub.csproj -c Release -
Copy the published files to your desired location
"ATAS Strategies folder not found!"
- Solution: Install ATAS Platform and launch it at least once
- The Strategies folder is created during the first launch
- Expected location:
%APPDATA%\ATAS\Strategies
"Failed to download .NET SDK"
- Check your internet connection
- Temporarily disable antivirus/firewall
- Try running PowerShell as Administrator
- Manual download: https://dotnet.microsoft.com/download/dotnet/8.0
"Build failed" or compilation errors
- Ensure .NET 8 SDK is properly installed:
dotnet --version - Try cleaning and rebuilding:
dotnet cleanthendotnet restore - Check that all NuGet packages are restored
"Access denied" when copying files
- Run PowerShell as Administrator
- Check that ATAS is not running (it may lock strategy files)
- Verify antivirus is not blocking the operation
"Strategy not found in ATAS"
- Ensure all DLL files are copied to the correct ATAS Strategies folder
- Restart ATAS after copying files
- Check ATAS logs for loading errors
"Cannot connect to Order Event Hub"
- Verify the Order Event Hub is running
- Check firewall settings
- Ensure the correct port is configured (default: 35144 for ServiceWire, 15420 for web interface)
For additional help, see Configuration Guide.