Skip to content

fintech07/OrderlyAPI2.0

Repository files navigation

OrderlyAPI2.0

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).

Key Features

  • 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.txt in the app directory
  • Standalone single-file Windows publish configuration

Tech Stack

  • .NET 8 (net8.0-windows)
  • WPF (standard controls)
  • NSec.Cryptography (Ed25519 signing)

Prerequisites

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

Run From Source

From the repository root:

dotnet restore
dotnet build OrderlyAPI2.0/OrderlyAPI2.0.csproj
dotnet run --project OrderlyAPI2.0/OrderlyAPI2.0.csproj

Build Standalone Executable

Quick build:

.\build-standalone.ps1

Or with batch script:

build-standalone.bat

Manual 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 ./publish

Expected output:

  • publish/OrderlyAPI.exe

Credentials Storage

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.

Repository Layout

  • OrderlyAPI2.0/ - WPF application source
  • build-standalone.bat - standalone build (CMD)
  • build-standalone.ps1 - standalone build (PowerShell)
  • create-distribution.bat - creates distribution package artifacts
  • BUILD-GUIDE.md - detailed build/deployment guide
  • STANDALONE-BUILD-SUMMARY.md - standalone build summary
  • MIGRATION-TO-TEXTFILE.md - credential storage migration notes
  • CREDENTIALS-LOCATION-CHANGE.md - credentials path change details
  • WPF-UI-REMOVAL.md - UI dependency removal notes

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors