OrderlyAPI2.0 is a .NET 8 WPF desktop client for interacting with the Orderly exchange. It provides public/private WebSocket connectivity, signed REST requests, symbol and position monitoring, and order placement utilities (including batch operations).
- Public and private WebSocket connections to Orderly endpoints
- Ed25519-signed REST calls for authenticated API operations
- Live market BBO stream handling
- Position retrieval and refresh helpers
- Single order creation support
- Batch order creation support (up to 10 orders per request)
- Batch market order helper
- Close-all positions helper via reduce-only market orders
- Local credential persistence to
credentials.txtin the app directory - Standalone single-file Windows publish configuration
- .NET 8 (
net8.0-windows) - WPF (standard controls)
- NSec.Cryptography (Ed25519 signing)
For development:
- Windows machine
- .NET 8 SDK
- Visual Studio 2022 or VS Code
For end users of the standalone executable:
- Windows x64
- No .NET installation required when using the self-contained build
From the repository root:
dotnet restore
dotnet build OrderlyAPI2.0/OrderlyAPI2.0.csproj
dotnet run --project OrderlyAPI2.0/OrderlyAPI2.0.csprojQuick build:
.\build-standalone.ps1Or with batch script:
build-standalone.batManual publish command:
dotnet publish OrderlyAPI2.0/OrderlyAPI2.0.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:EnableCompressionInSingleFile=true -o ./publishExpected output:
publish/OrderlyAPI.exe
Credentials are stored in a local text file next to the executable:
credentials.txt
Current format uses Base64 encoding for basic obfuscation. It is not strong encryption.
OrderlyAPI2.0/- WPF application sourcebuild-standalone.bat- standalone build (CMD)build-standalone.ps1- standalone build (PowerShell)create-distribution.bat- creates distribution package artifactsBUILD-GUIDE.md- detailed build/deployment guideSTANDALONE-BUILD-SUMMARY.md- standalone build summaryMIGRATION-TO-TEXTFILE.md- credential storage migration notesCREDENTIALS-LOCATION-CHANGE.md- credentials path change detailsWPF-UI-REMOVAL.md- UI dependency removal notes
- The project solution file is
OrderlyAPI2.0.sln. - Target runtime for standalone publish is currently Windows x64 (
win-x64). - Batch order requests are limited to 10 orders per API call.