BleedingOnTheEdge.Sdk
1.0.0
dotnet add package BleedingOnTheEdge.Sdk --version 1.0.0
NuGet\Install-Package BleedingOnTheEdge.Sdk -Version 1.0.0
<PackageReference Include="BleedingOnTheEdge.Sdk" Version="1.0.0" />
<PackageVersion Include="BleedingOnTheEdge.Sdk" Version="1.0.0" />
<PackageReference Include="BleedingOnTheEdge.Sdk" />
paket add BleedingOnTheEdge.Sdk --version 1.0.0
#r "nuget: BleedingOnTheEdge.Sdk, 1.0.0"
#:package BleedingOnTheEdge.Sdk@1.0.0
#addin nuget:?package=BleedingOnTheEdge.Sdk&version=1.0.0
#tool nuget:?package=BleedingOnTheEdge.Sdk&version=1.0.0
Razor SDK (BleedingOnTheEdge.Sdk)
The official developer SDK for building plugins, adapters, execution hooks, slots, and strategies for the Razor algorithmic trading platform.
🏛 Organization Context & Cross-Repo Topology
This repository is part of the BleedingOnTheEdge open and proprietary trading infrastructure:
- Orchestrator:
BleedingOnTheEdge/razor(Central scripts, organization bootstrap, and cross-repo coordination) - Engine Runtime:
BleedingOnTheEdge/razor-engine(Headless execution engine running SDK-compliant strategies and adapters) - Control Panel:
BleedingOnTheEdge/razor-panel(SaaS control plane & marketplace where SDK extensions are distributed) - Reference Samples:
BleedingOnTheEdge/razor-samples(Working broker adapters, multi-asset strategies, and polyglot bridge templates) - Documentation:
BleedingOnTheEdge/razor-docs(Technical architecture documents, contract specs, and developer guides)
📦 Overview & Architectural Role
The Razor SDK provides pure public contracts, domain types, hook interfaces (IHook, ISlot), and decorator attributes. It is completely decoupled from engine execution internals, providing a stable public API surface for extension developers and broker integrations.
Key Capabilities
- Extension Interfaces: Build custom broker adapters (
IBrokerAdapter), strategy models (StrategyBase), indicators (IIndicator), and neural network signal filters (INeuralNetworkModel). - Hook Framework: Intercept orders, ticks, bar closes, and lifecycle events (
IOrderValidationHook,IOrderExecutionHook,ITickFilterHook). - Slot System: Inject custom behavior dynamically into predefined execution slots.
- Zero Overhead: Engineered for ultra-low latency, cache-friendly memory layouts, and zero GC allocation in hot trading loops.
🚀 Installation
Add the package via the .NET CLI:
dotnet add package BleedingOnTheEdge.Sdk
Or reference it in your .csproj:
<PackageReference Include="BleedingOnTheEdge.Sdk" Version="1.0.0" />
💡 Quick Start: Developing an Adapter or Strategy
Creating a Custom Strategy
using Sdk;
public class MyCustomStrategy : StrategyBase
{
public override void OnTick(in Tick tick)
{
// High-frequency market tick processing
}
}
Implementing an Execution Hook
using Sdk;
using Sdk.Hooks;
[SdkVersion("1.0.0")]
public class RiskAuditHook : IOrderValidationHook
{
public FilterResult ValidateOrder(in OrderRequest order, in HookContext context)
{
if (order.Quantity <= 0)
{
return FilterResult.Reject("Quantity must be positive");
}
return FilterResult.Accept();
}
}
For full reference implementations including MetaTrader 5 and Nobitex adapters, see BleedingOnTheEdge/razor-samples.
💻 Building and Testing Locally
Prerequisites
# Build SDK solution and test projects
dotnet build Sdk.slnx
# Run all 583 unit and integration tests
dotnet test Sdk.slnx
🤝 Contributing & License
Contributions, issues, and feature requests are welcome!
Distributed under the MIT License. See LICENSE for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 101 | 11/6/2026 |